Class BindResource.BindResourceBuilder
java.lang.Object
org.springframework.cloud.servicebroker.model.binding.BindResource.BindResourceBuilder
- Enclosing class:
- BindResource
Provides a fluent API for constructing a BindResource.
-
Method Summary
Modifier and TypeMethodDescriptionSet an application GUID as would be provided in an app binding request from the platform.build()
Construct aBindResource
from the provided values.properties
(String key, Object value) Add a key/value pair to the bind resource properties as would be provided in the request from the platform.properties
(Map<String, Object> properties) Add a set of properties from the provided Map to the bind resource properties as would be provided in the request from the platform.Set an application route as would be provided in a route binding request from the platform.
-
Method Details
-
appGuid
Set an application GUID as would be provided in an app binding request from the platform.- Parameters:
appGuid
- the application GUID- Returns:
- the builder
-
route
Set an application route as would be provided in a route binding request from the platform.- Parameters:
route
- the application GUID- Returns:
- the builder
-
properties
Add a set of properties from the provided Map to the bind resource properties as would be provided in the request from the platform.- Parameters:
properties
- the properties to add- Returns:
- the builder
- See Also:
-
properties
Add a key/value pair to the bind resource properties as would be provided in the request from the platform.- Parameters:
key
- the property key to addvalue
- the property value to add- Returns:
- the builder
- See Also:
-
build
Construct aBindResource
from the provided values.- Returns:
- the newly constructed BindResource
-