Class BindResource.BindResourceBuilder

java.lang.Object
org.springframework.cloud.servicebroker.model.binding.BindResource.BindResourceBuilder
Enclosing class:
BindResource

public static final class BindResource.BindResourceBuilder extends Object
Provides a fluent API for constructing a BindResource.
  • Method Details

    • appGuid

      public BindResource.BindResourceBuilder appGuid(String 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

      public BindResource.BindResourceBuilder 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.
      Parameters:
      properties - the properties to add
      Returns:
      the builder
      See Also:
    • properties

      public BindResource.BindResourceBuilder 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.
      Parameters:
      key - the property key to add
      value - the property value to add
      Returns:
      the builder
      See Also:
    • build

      public BindResource build()
      Construct a BindResource from the provided values.
      Returns:
      the newly constructed BindResource