Class Catalog.CatalogBuilder

java.lang.Object
org.springframework.cloud.servicebroker.model.catalog.Catalog.CatalogBuilder
Enclosing class:
Catalog

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

    • serviceDefinitions

      public Catalog.CatalogBuilder serviceDefinitions(List<ServiceDefinition> serviceDefinitions)
      Add a set of service offerings from the provided List to the service offerings provided by the service broker.

      This value sets the services field in the response to the platform.

      Parameters:
      serviceDefinitions - a List of service offerings
      Returns:
      the catalog builder instance
    • serviceDefinitions

      public Catalog.CatalogBuilder serviceDefinitions(ServiceDefinition... serviceDefinitions)
      Add a set of service offerings from the provided array to the service offerings provided by the service broker.

      This value sets the services field in the response to the platform.

      Parameters:
      serviceDefinitions - an array of service offerings
      Returns:
      the catalog builder instance
    • build

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