Class Catalog.CatalogBuilder
java.lang.Object
org.springframework.cloud.servicebroker.model.catalog.Catalog.CatalogBuilder
- Enclosing class:
- Catalog
Provides a fluent API for constructing a Catalog.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Construct aCatalog
from the provided values.serviceDefinitions
(List<ServiceDefinition> serviceDefinitions) Add a set of service offerings from the provided List to the service offerings provided by the service broker.serviceDefinitions
(ServiceDefinition... serviceDefinitions) Add a set of service offerings from the provided array to the service offerings provided by the service broker.
-
Method Details
-
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
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
Construct aCatalog
from the provided values.- Returns:
- the newly constructed Catalog
-