Class Plan.Builder
- java.lang.Object
-
- com.ibm.cloud.platform_services.catalog_management.v1.model.Plan.Builder
-
- Enclosing class:
- Plan
public static class Plan.Builder extends java.lang.ObjectBuilder.
-
-
Constructor Summary
Constructors Constructor Description Builder()Instantiates a new builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Plan.BuilderaddAdditionalFeatures(Feature additionalFeatures)Adds an additionalFeatures to additionalFeatures.Plan.BuilderaddDeployments(Deployment deployments)Adds an deployments to deployments.Plan.BuilderadditionalFeatures(java.util.List<Feature> additionalFeatures)Set the additionalFeatures.Plan.BuilderaddTags(java.lang.String tags)Adds an tags to tags.Planbuild()Builds a Plan.Plan.Buildercreated(java.util.Date created)Set the created.Plan.Builderdeployments(java.util.List<Deployment> deployments)Set the deployments.Plan.Builderid(java.lang.String id)Set the id.Plan.Builderlabel(java.lang.String label)Set the label.Plan.BuilderlongDescription(java.lang.String longDescription)Set the longDescription.Plan.Buildermetadata(java.util.Map<java.lang.String,java.lang.Object> metadata)Set the metadata.Plan.Buildername(java.lang.String name)Set the name.Plan.BuildershortDescription(java.lang.String shortDescription)Set the shortDescription.Plan.Buildertags(java.util.List<java.lang.String> tags)Set the tags.Plan.Builderupdated(java.util.Date updated)Set the updated.
-
-
-
Method Detail
-
build
public Plan build()
Builds a Plan.- Returns:
- the new Plan instance
-
addTags
public Plan.Builder addTags(java.lang.String tags)
Adds an tags to tags.- Parameters:
tags- the new tags- Returns:
- the Plan builder
-
addAdditionalFeatures
public Plan.Builder addAdditionalFeatures(Feature additionalFeatures)
Adds an additionalFeatures to additionalFeatures.- Parameters:
additionalFeatures- the new additionalFeatures- Returns:
- the Plan builder
-
addDeployments
public Plan.Builder addDeployments(Deployment deployments)
Adds an deployments to deployments.- Parameters:
deployments- the new deployments- Returns:
- the Plan builder
-
id
public Plan.Builder id(java.lang.String id)
Set the id.- Parameters:
id- the id- Returns:
- the Plan builder
-
label
public Plan.Builder label(java.lang.String label)
Set the label.- Parameters:
label- the label- Returns:
- the Plan builder
-
name
public Plan.Builder name(java.lang.String name)
Set the name.- Parameters:
name- the name- Returns:
- the Plan builder
-
shortDescription
public Plan.Builder shortDescription(java.lang.String shortDescription)
Set the shortDescription.- Parameters:
shortDescription- the shortDescription- Returns:
- the Plan builder
-
longDescription
public Plan.Builder longDescription(java.lang.String longDescription)
Set the longDescription.- Parameters:
longDescription- the longDescription- Returns:
- the Plan builder
-
metadata
public Plan.Builder metadata(java.util.Map<java.lang.String,java.lang.Object> metadata)
Set the metadata.- Parameters:
metadata- the metadata- Returns:
- the Plan builder
-
tags
public Plan.Builder tags(java.util.List<java.lang.String> tags)
Set the tags. Existing tags will be replaced.- Parameters:
tags- the tags- Returns:
- the Plan builder
-
additionalFeatures
public Plan.Builder additionalFeatures(java.util.List<Feature> additionalFeatures)
Set the additionalFeatures. Existing additionalFeatures will be replaced.- Parameters:
additionalFeatures- the additionalFeatures- Returns:
- the Plan builder
-
created
public Plan.Builder created(java.util.Date created)
Set the created.- Parameters:
created- the created- Returns:
- the Plan builder
-
updated
public Plan.Builder updated(java.util.Date updated)
Set the updated.- Parameters:
updated- the updated- Returns:
- the Plan builder
-
deployments
public Plan.Builder deployments(java.util.List<Deployment> deployments)
Set the deployments. Existing deployments will be replaced.- Parameters:
deployments- the deployments- Returns:
- the Plan builder
-
-