Class ServiceDefinition
java.lang.Object
org.springframework.cloud.servicebroker.model.catalog.ServiceDefinition
A service offered by this broker.
- Author:
- S Greenberg, Scott Frederick
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Provides a fluent API for constructing a ServiceDefinition. -
Constructor Summary
ConstructorDescriptionConstruct a newServiceDefinition
.ServiceDefinition
(String id, String name, String description, boolean bindable, Boolean planUpdateable, Boolean instancesRetrievable, Boolean bindingsRetrievable, Boolean allowContextUpdates, List<Plan> plans, List<String> tags, Map<String, Object> metadata, List<String> requires, DashboardClient dashboardClient) Construct a newServiceDefinition
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Create a builder that provides a fluent API for constructing a ServiceDefinition.final boolean
Data necessary to activate the Dashboard SSO feature for this service.A user-friendly short description of the service that will appear in the catalog.getId()
An identifier used to correlate this service in future requests to the catalog.A map of metadata to further describe a service offering.getName()
A CLI-friendly name of the service that will appear in the catalog.getPlans()
A list of plans for this service.A list of permissions that the user would have to give the service, if they provision it.getTags()
A list of tags to aid in categorizing and classifying services with similar characteristics.final int
hashCode()
Indicates whether a service instance supports update requests when contextual data for the service instance in the platform changes.boolean
Indicates whether the service can be bound to applications.Indicates whether the service broker supports retrieving service bindings.Indicates whether the service broker supports retrieving service instances.Indicates whether the service supports requests to update instances to use a different plan from the one used to provision a service instance.toString()
-
Constructor Details
-
ServiceDefinition
public ServiceDefinition()Construct a newServiceDefinition
. -
ServiceDefinition
public ServiceDefinition(String id, String name, String description, boolean bindable, Boolean planUpdateable, Boolean instancesRetrievable, Boolean bindingsRetrievable, Boolean allowContextUpdates, List<Plan> plans, List<String> tags, Map<String, Object> metadata, List<String> requires, DashboardClient dashboardClient) Construct a newServiceDefinition
.- Parameters:
id
- the service IDname
- the service namedescription
- the service descriptionbindable
- true if the service may be boundplanUpdateable
- true if the plan may be updatedinstancesRetrievable
- true if the service instances may be retrievedbindingsRetrievable
- true if the service bindings may be retrievedallowContextUpdates
- true if the service instance supports context updatesplans
- the service planstags
- the tagsmetadata
- the service metadatarequires
- the required permissionsdashboardClient
- the service dashboard URI
-
-
Method Details
-
getId
An identifier used to correlate this service in future requests to the catalog. This must be unique within the platform. Using a GUID is recommended.- Returns:
- the service ID
-
getName
A CLI-friendly name of the service that will appear in the catalog. The value should be all lowercase, with no spaces.- Returns:
- the service name
-
getDescription
A user-friendly short description of the service that will appear in the catalog.- Returns:
- the service description
-
isBindable
public boolean isBindable()Indicates whether the service can be bound to applications.- Returns:
- true if the service may be bound
-
isPlanUpdateable
Indicates whether the service supports requests to update instances to use a different plan from the one used to provision a service instance.- Returns:
- true if the plan may be updated
-
isInstancesRetrievable
Indicates whether the service broker supports retrieving service instances.- Returns:
- true if the service instances may be retrieved
-
isBindingsRetrievable
Indicates whether the service broker supports retrieving service bindings.- Returns:
- true if the service bindings may be retrieved
-
isAllowContextUpdates
Indicates whether a service instance supports update requests when contextual data for the service instance in the platform changes.- Returns:
- true if the service instances supports context updates
-
getPlans
A list of plans for this service.- Returns:
- the service plans
-
getTags
A list of tags to aid in categorizing and classifying services with similar characteristics.- Returns:
- the tags
-
getMetadata
A map of metadata to further describe a service offering.- Returns:
- the service metadata
-
getRequires
A list of permissions that the user would have to give the service, if they provision it.- Returns:
- the required permissions
- See Also:
-
getDashboardClient
Data necessary to activate the Dashboard SSO feature for this service.- Returns:
- the service dashboard URI
-
builder
Create a builder that provides a fluent API for constructing a ServiceDefinition.- Returns:
- the builder
-
equals
-
hashCode
public final int hashCode() -
toString
-