Class ImmutableCloudServicePlan.Builder
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.domain.ImmutableCloudServicePlan.Builder
-
- Enclosing class:
- ImmutableCloudServicePlan
public static final class ImmutableCloudServicePlan.Builder extends Object
Builds instances of typeImmutableCloudServicePlan. Initialize attributes and then invoke thebuild()method to create an immutable instance.Builderis not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImmutableCloudServicePlanbuild()Builds a newImmutableCloudServicePlan.ImmutableCloudServicePlan.Builderdescription(String description)Initializes the value for thedescriptionattribute.ImmutableCloudServicePlan.Builderextra(String extra)Initializes the value for theextraattribute.ImmutableCloudServicePlan.Builderfrom(CloudEntity instance)Fill a builder with attribute values from the providedcom.sap.cloudfoundry.client.facade.domain.CloudEntityinstance.ImmutableCloudServicePlan.Builderfrom(CloudServicePlan instance)Fill a builder with attribute values from the providedcom.sap.cloudfoundry.client.facade.domain.CloudServicePlaninstance.ImmutableCloudServicePlan.BuilderisFree(Boolean isFree)Initializes the value for theisFreeattribute.ImmutableCloudServicePlan.BuilderisPublic(Boolean isPublic)Initializes the value for theisPublicattribute.ImmutableCloudServicePlan.Buildermetadata(CloudMetadata metadata)Initializes the value for themetadataattribute.ImmutableCloudServicePlan.Buildername(String name)Initializes the value for thenameattribute.ImmutableCloudServicePlan.BuilderuniqueId(String uniqueId)Initializes the value for theuniqueIdattribute.ImmutableCloudServicePlan.Builderv3Metadata(org.cloudfoundry.client.v3.Metadata v3Metadata)Initializes the value for thev3Metadataattribute.
-
-
-
Method Detail
-
from
public final ImmutableCloudServicePlan.Builder from(CloudEntity instance)
Fill a builder with attribute values from the providedcom.sap.cloudfoundry.client.facade.domain.CloudEntityinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
public final ImmutableCloudServicePlan.Builder from(CloudServicePlan instance)
Fill a builder with attribute values from the providedcom.sap.cloudfoundry.client.facade.domain.CloudServicePlaninstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
name
public final ImmutableCloudServicePlan.Builder name(String name)
Initializes the value for thenameattribute.- Parameters:
name- The value for name (can benull)- Returns:
thisbuilder for use in a chained invocation
-
metadata
public final ImmutableCloudServicePlan.Builder metadata(CloudMetadata metadata)
Initializes the value for themetadataattribute.- Parameters:
metadata- The value for metadata (can benull)- Returns:
thisbuilder for use in a chained invocation
-
v3Metadata
public final ImmutableCloudServicePlan.Builder v3Metadata(org.cloudfoundry.client.v3.Metadata v3Metadata)
Initializes the value for thev3Metadataattribute.- Parameters:
v3Metadata- The value for v3Metadata (can benull)- Returns:
thisbuilder for use in a chained invocation
-
description
public final ImmutableCloudServicePlan.Builder description(String description)
Initializes the value for thedescriptionattribute.- Parameters:
description- The value for description (can benull)- Returns:
thisbuilder for use in a chained invocation
-
extra
public final ImmutableCloudServicePlan.Builder extra(String extra)
Initializes the value for theextraattribute.- Parameters:
extra- The value for extra (can benull)- Returns:
thisbuilder for use in a chained invocation
-
uniqueId
public final ImmutableCloudServicePlan.Builder uniqueId(String uniqueId)
Initializes the value for theuniqueIdattribute.- Parameters:
uniqueId- The value for uniqueId (can benull)- Returns:
thisbuilder for use in a chained invocation
-
isFree
public final ImmutableCloudServicePlan.Builder isFree(Boolean isFree)
Initializes the value for theisFreeattribute.- Parameters:
isFree- The value for isFree (can benull)- Returns:
thisbuilder for use in a chained invocation
-
isPublic
public final ImmutableCloudServicePlan.Builder isPublic(Boolean isPublic)
Initializes the value for theisPublicattribute.- Parameters:
isPublic- The value for isPublic (can benull)- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableCloudServicePlan build()
Builds a newImmutableCloudServicePlan.- Returns:
- An immutable instance of CloudServicePlan
- Throws:
IllegalStateException- if any required attributes are missing
-
-