Class BindResource
java.lang.Object
org.springframework.cloud.servicebroker.model.binding.BindResource
Details of any platform resources that a service binding will be associated with.
Objects of this type are constructed by the framework from the message body passed to the service broker by the platform in a service binding request.
- Author:
- Scott Frederick
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Provides a fluent API for constructing a BindResource. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Create a builder that provides a fluent API for constructing aBindResource
.final boolean
Get the GUID of an application associated with the binding.Get all properties in the bind resource.getProperty
(String key) Get the value of a property in the bind resource with the given key.getRoute()
Get the URL of an application to be intermediated.final int
hashCode()
toString()
-
Constructor Details
-
BindResource
Construct a newBindResource
.- Parameters:
appGuid
- the application GUIDroute
- the application URLproperties
- a collection of properties
-
-
Method Details
-
getProperty
Get the value of a property in the bind resource with the given key.- Parameters:
key
- the key of the value to retrieve- Returns:
- the value of the property, or null if the key is not present in the bind resource
-
getProperties
Get all properties in the bind resource.- Returns:
- the set of bind resource properties
-
getAppGuid
Get the GUID of an application associated with the binding. May be provided for credentials bindings.- Returns:
- the application GUID
-
getRoute
Get the URL of an application to be intermediated. May be provided for route services bindings.- Returns:
- the application route
-
builder
Create a builder that provides a fluent API for constructing aBindResource
.This builder is provided to support testing of
ServiceInstanceBindingService
implementations.- Returns:
- the builder
-
equals
-
hashCode
public final int hashCode() -
toString
-