Class MethodSchema.MethodSchemaBuilder

java.lang.Object
org.springframework.cloud.servicebroker.model.catalog.MethodSchema.MethodSchemaBuilder
Enclosing class:
MethodSchema

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

    • parameters

      public MethodSchema.MethodSchemaBuilder parameters(Map<String,Object> parameters)
      A map of JSON schema for configuration parameters.
      Parameters:
      parameters - the configuration parameters
      Returns:
      the builder instance
    • parameters

      public MethodSchema.MethodSchemaBuilder parameters(String key, Object value)
      A key/value pair to add to the JSON schema configuration parameters.
      Parameters:
      key - the unique key
      value - the value
      Returns:
      the builder instance
    • build

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