public class Plan extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Plan.PlanBuilder
Provides a fluent API for constructing a Plan.
|
| Constructor and Description |
|---|
Plan()
Construct a new
Plan |
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 new
Plan |
| Modifier and Type | Method and Description |
|---|---|
static Plan.PlanBuilder |
builder()
Create a builder that provides a fluent API for constructing a Plan.
|
boolean |
equals(Object o) |
String |
getDescription()
A user-friendly short description of the plan that will appear in the catalog.
|
String |
getId()
An identifier used to correlate this plan in future requests to the catalog.
|
MaintenanceInfo |
getMaintenanceInfo()
Maintenance information for a Service Instance which is provisioned using the Service Plan.
|
Integer |
getMaximumPollingDuration()
A duration, in seconds, that the Platform SHOULD use as the Service's maximum polling duration.
|
Map<String,Object> |
getMetadata()
A map of metadata to further describe a service plan.
|
String |
getName()
A CLI-friendly name of the plan that will appear in the catalog.
|
Schemas |
getSchemas()
The schemas for this plan.
|
int |
hashCode() |
Boolean |
isBindable()
Indicates whether the service with this plan can be bound to applications.
|
Boolean |
isFree()
Indicates whether the plan can be limited by the non_basic_services_allowed field in a platform quota.
|
Boolean |
isPlanUpdateable()
Whether the Plan supports upgrade/downgrade/sidegrade to another version.
|
String |
toString() |
public Plan()
Planpublic Plan(String id, String name, String description, Map<String,Object> metadata, Boolean free, Boolean bindable, Boolean planUpdateable, Schemas schemas, Integer maximumPollingDuration, MaintenanceInfo maintenanceInfo)
Planid - 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 informationpublic String getId()
public String getName()
public String getDescription()
public Map<String,Object> getMetadata()
public Boolean isFree()
public Boolean isBindable()
null, the field will be omitted from the serialized JSON.public Boolean isPlanUpdateable()
null, the field will be omitted from the serialized
JSON.public Schemas getSchemas()
public Integer getMaximumPollingDuration()
null, the field will be omitted from the serialized JSON.public MaintenanceInfo getMaintenanceInfo()
public static Plan.PlanBuilder builder()