Class Context.ContextBaseBuilder<R extends Context,B extends Context.ContextBaseBuilder<R,B>>

java.lang.Object
org.springframework.cloud.servicebroker.model.Context.ContextBaseBuilder<R,B>
Type Parameters:
R - the type of Context
B - the implementing Builder
Direct Known Subclasses:
CloudFoundryContext.CloudFoundryContextBuilder, KubernetesContext.KubernetesContextBuilder, PlatformContext.PlatformContextBuilder
Enclosing class:
Context

protected abstract static class Context.ContextBaseBuilder<R extends Context,B extends Context.ContextBaseBuilder<R,B>> extends Object
Builder class for Context.
  • Field Details

  • Constructor Details

    • ContextBaseBuilder

      protected ContextBaseBuilder()
      Construct a new ContextBaseBuilder.
  • Method Details

    • createBuilder

      protected abstract B createBuilder()
      Construct a builder.
      Returns:
      the builder
    • platform

      public B platform(String platform)
      Set the name of the platform as would be provided in the request from the platform.
      Parameters:
      platform - the platform name
      Returns:
      the builder
    • properties

      public B properties(Map<String,Object> properties)
      Add a set of properties from the provided Map to the context properties as would be provided in the request from the platform.
      Parameters:
      properties - the properties to add
      Returns:
      the builder
      See Also:
    • property

      public B property(String key, Object value)
      Add a key/value pair to the context properties as would be provided in the request from the platform.
      Parameters:
      key - the parameter key to add
      value - the parameter value to add
      Returns:
      the builder
      See Also:
    • build

      public abstract R build()
      Construct an implementing Context.ContextBaseBuilder.
      Returns:
      the newly constructed Context implementation