public static class Plan.PlanBuilder
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
Plan.PlanBuilder |
bindable(boolean bindable)
Indicates whether the service with this plan can be bound to applications.
|
Plan |
build()
Construct a
Plan from the provided values. |
Plan.PlanBuilder |
description(java.lang.String description)
A user-friendly short description of the plan that will appear in the catalog.
|
Plan.PlanBuilder |
free(boolean free)
Whether the plan has a cost associated with it or not
|
Plan.PlanBuilder |
id(java.lang.String id)
An identifier used to correlate this plan in future requests to the catalog.
|
Plan.PlanBuilder |
metadata(java.util.Map<java.lang.String,java.lang.Object> metadata)
A map of plan metadata to further describe the plan
|
Plan.PlanBuilder |
metadata(java.lang.String key,
java.lang.Object value)
A key/value pair to add to the map of plan metadata
|
Plan.PlanBuilder |
name(java.lang.String name)
A CLI-friendly name of the plan that will appear in the catalog.
|
Plan.PlanBuilder |
schemas(Schemas schemas)
The schemas for this plan
|
public Plan.PlanBuilder id(java.lang.String id)
id - the unique identifier of the planpublic Plan.PlanBuilder name(java.lang.String name)
name - plan namepublic Plan.PlanBuilder description(java.lang.String description)
description - plan descriptionpublic Plan.PlanBuilder metadata(java.util.Map<java.lang.String,java.lang.Object> metadata)
metadata - plan metadatapublic Plan.PlanBuilder metadata(java.lang.String key, java.lang.Object value)
key - a unique keyvalue - the valuepublic Plan.PlanBuilder free(boolean free)
free - true if the plan has no costpublic Plan.PlanBuilder bindable(boolean bindable)
null, the field will be
omitted from the serialized JSON.bindable - true if the service with this plan may be boundpublic Plan.PlanBuilder schemas(Schemas schemas)
schemas - plan schemas