Class Plan
java.lang.Object
org.springframework.cloud.servicebroker.model.catalog.Plan
A service plan available for a ServiceDefinition.
- Author:
- S Greenberg, Scott Frederick, Roy Clarkson
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Provides a fluent API for constructing a Plan. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Plan.PlanBuilder
builder()
Create a builder that provides a fluent API for constructing a Plan.final boolean
A user-friendly short description of the plan that will appear in the catalog.getId()
An identifier used to correlate this plan in future requests to the catalog.Maintenance information for a Service Instance which is provisioned using the Service Plan.A duration, in seconds, that the Platform SHOULD use as the Service's maximum polling duration.A map of metadata to further describe a service plan.getName()
A CLI-friendly name of the plan that will appear in the catalog.The schemas for this plan.final int
hashCode()
Indicates whether the service with this plan can be bound to applications.isFree()
Indicates whether the plan can be limited by the non_basic_services_allowed field in a platform quota.Whether the Plan supports upgrade/downgrade/sidegrade to another version.toString()
-
Constructor Details
-
Plan
public Plan()Construct a newPlan
. -
Plan
public Plan(String id, String name, String description, Map<String, Object> metadata, Boolean free, Boolean bindable, Boolean planUpdateable, Schemas schemas, Integer maximumPollingDuration, MaintenanceInfo maintenanceInfo) Construct a newPlan
.- Parameters:
id
- the plan IDname
- the plan namedescription
- the plan descriptionmetadata
- the plan metadatafree
- true if the plan has no costbindable
- true if the service with this plan may be boundplanUpdateable
- true if the plan may be updatedschemas
- the plan schemasmaximumPollingDuration
- the maximum polling duration in secondsmaintenanceInfo
- the maintentance information
-
-
Method Details
-
getId
An identifier used to correlate this plan in future requests to the catalog. This must be unique within the platform. Using a GUID is recommended.- Returns:
- the plan ID
-
getName
A CLI-friendly name of the plan that will appear in the catalog. The value should be all lowercase, with no spaces.- Returns:
- the plan name
-
getDescription
A user-friendly short description of the plan that will appear in the catalog.- Returns:
- the plan description
-
getMetadata
A map of metadata to further describe a service plan.- Returns:
- the plan metadata
- See Also:
-
isFree
Indicates whether the plan can be limited by the non_basic_services_allowed field in a platform quota.- Returns:
- true if the plan has no cost
-
isBindable
Indicates whether the service with this plan can be bound to applications. This is an optional field. If the value isnull
, the field will be omitted from the serialized JSON.- Returns:
- true if the service with this plan may be bound
-
isPlanUpdateable
Whether the Plan supports upgrade/downgrade/sidegrade to another version. This field is OPTIONAL. If specified, this takes precedence over the Service Offering's plan_updateable field. If not specified, the default is derived from the Service Offering. If the value isnull
, the field will be omitted from the serialized JSON.- Returns:
- true if the plan may be updated
-
getSchemas
The schemas for this plan.- Returns:
- the plan schemas
-
getMaximumPollingDuration
A duration, in seconds, that the Platform SHOULD use as the Service's maximum polling duration. If the maximum polling duration is reached, the platform should cease polling and the operation state MUST be considered failed. If the value isnull
, the field will be omitted from the serialized JSON.- Returns:
- the maximum polling duration
-
getMaintenanceInfo
Maintenance information for a Service Instance which is provisioned using the Service Plan. If provided, a version string MUST be provided and platforms MAY use this when Provisioning or Updating a Service Instance.- Returns:
- the maintenance info
-
builder
Create a builder that provides a fluent API for constructing a Plan.- Returns:
- the builder
-
equals
-
hashCode
public final int hashCode() -
toString
-