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(Map<String,? extends Object> entries)Sets or replaces all mappings from the specified map as entries for theextramap.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.BuilderputAllExtra(Map<String,? extends Object> entries)Put all mappings from the specified map as entries toextramap.ImmutableCloudServicePlan.BuilderputExtra(String key, Object value)Put one entry to theextramap.ImmutableCloudServicePlan.BuilderputExtra(Map.Entry<String,? extends Object> entry)Put one entry to theextramap.ImmutableCloudServicePlan.BuilderserviceOfferingId(String serviceOfferingId)Initializes the value for theserviceOfferingIdattribute.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
-
putExtra
public final ImmutableCloudServicePlan.Builder putExtra(String key, Object value)
Put one entry to theextramap.- Parameters:
key- The key in the extra mapvalue- The associated value in the extra map- Returns:
thisbuilder for use in a chained invocation
-
putExtra
public final ImmutableCloudServicePlan.Builder putExtra(Map.Entry<String,? extends Object> entry)
Put one entry to theextramap. Nulls are not permitted- Parameters:
entry- The key and value entry- Returns:
thisbuilder for use in a chained invocation
-
extra
public final ImmutableCloudServicePlan.Builder extra(Map<String,? extends Object> entries)
Sets or replaces all mappings from the specified map as entries for theextramap. Nulls are not permitted as keys or values, but parameter itself can be null- Parameters:
entries- The entries that will be added to the extra map- Returns:
thisbuilder for use in a chained invocation
-
putAllExtra
public final ImmutableCloudServicePlan.Builder putAllExtra(Map<String,? extends Object> entries)
Put all mappings from the specified map as entries toextramap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the extra map- 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
-
serviceOfferingId
public final ImmutableCloudServicePlan.Builder serviceOfferingId(String serviceOfferingId)
Initializes the value for theserviceOfferingIdattribute.- Parameters:
serviceOfferingId- The value for serviceOfferingId (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
-
-