Class ImmutableCloudServiceOffering.Builder
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.domain.ImmutableCloudServiceOffering.Builder
-
- Enclosing class:
- ImmutableCloudServiceOffering
public static final class ImmutableCloudServiceOffering.Builder extends Object
Builds instances of typeImmutableCloudServiceOffering. 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 ImmutableCloudServiceOffering.BuilderaddAllServicePlans(Iterable<? extends CloudServicePlan> elements)Adds elements toservicePlanslist.ImmutableCloudServiceOffering.BuilderaddServicePlan(CloudServicePlan element)Adds one element toservicePlanslist.ImmutableCloudServiceOffering.BuilderaddServicePlans(CloudServicePlan... elements)Adds elements toservicePlanslist.ImmutableCloudServiceOffering.BuilderbrokerId(String brokerId)Initializes the value for thebrokerIdattribute.ImmutableCloudServiceOfferingbuild()Builds a newImmutableCloudServiceOffering.ImmutableCloudServiceOffering.Builderdescription(String description)Initializes the value for thedescriptionattribute.ImmutableCloudServiceOffering.BuilderdocUrl(String docUrl)Initializes the value for thedocUrlattribute.ImmutableCloudServiceOffering.Builderextra(Map<String,? extends Object> entries)Sets or replaces all mappings from the specified map as entries for theextramap.ImmutableCloudServiceOffering.Builderfrom(CloudEntity instance)Fill a builder with attribute values from the providedcom.sap.cloudfoundry.client.facade.domain.CloudEntityinstance.ImmutableCloudServiceOffering.Builderfrom(CloudServiceOffering instance)Fill a builder with attribute values from the providedcom.sap.cloudfoundry.client.facade.domain.CloudServiceOfferinginstance.ImmutableCloudServiceOffering.BuilderisAvailable(Boolean isAvailable)Initializes the value for theisAvailableattribute.ImmutableCloudServiceOffering.BuilderisBindable(Boolean isBindable)Initializes the value for theisBindableattribute.ImmutableCloudServiceOffering.BuilderisShareable(Boolean isShareable)Initializes the value for theisShareableattribute.ImmutableCloudServiceOffering.Buildermetadata(CloudMetadata metadata)Initializes the value for themetadataattribute.ImmutableCloudServiceOffering.Buildername(String name)Initializes the value for thenameattribute.ImmutableCloudServiceOffering.BuilderputAllExtra(Map<String,? extends Object> entries)Put all mappings from the specified map as entries toextramap.ImmutableCloudServiceOffering.BuilderputExtra(String key, Object value)Put one entry to theextramap.ImmutableCloudServiceOffering.BuilderputExtra(Map.Entry<String,? extends Object> entry)Put one entry to theextramap.ImmutableCloudServiceOffering.BuilderservicePlans(Iterable<? extends CloudServicePlan> elements)Sets or replaces all elements forservicePlanslist.ImmutableCloudServiceOffering.BuilderuniqueId(String uniqueId)Initializes the value for theuniqueIdattribute.ImmutableCloudServiceOffering.Builderv3Metadata(org.cloudfoundry.client.v3.Metadata v3Metadata)Initializes the value for thev3Metadataattribute.
-
-
-
Method Detail
-
from
public final ImmutableCloudServiceOffering.Builder from(CloudServiceOffering instance)
Fill a builder with attribute values from the providedcom.sap.cloudfoundry.client.facade.domain.CloudServiceOfferinginstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
public final ImmutableCloudServiceOffering.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
-
name
public final ImmutableCloudServiceOffering.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 ImmutableCloudServiceOffering.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 ImmutableCloudServiceOffering.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
-
isAvailable
public final ImmutableCloudServiceOffering.Builder isAvailable(Boolean isAvailable)
Initializes the value for theisAvailableattribute.- Parameters:
isAvailable- The value for isAvailable (can benull)- Returns:
thisbuilder for use in a chained invocation
-
isBindable
public final ImmutableCloudServiceOffering.Builder isBindable(Boolean isBindable)
Initializes the value for theisBindableattribute.- Parameters:
isBindable- The value for isBindable (can benull)- Returns:
thisbuilder for use in a chained invocation
-
isShareable
public final ImmutableCloudServiceOffering.Builder isShareable(Boolean isShareable)
Initializes the value for theisShareableattribute.- Parameters:
isShareable- The value for isShareable (can benull)- Returns:
thisbuilder for use in a chained invocation
-
addServicePlan
public final ImmutableCloudServiceOffering.Builder addServicePlan(CloudServicePlan element)
Adds one element toservicePlanslist.- Parameters:
element- A servicePlans element- Returns:
thisbuilder for use in a chained invocation
-
addServicePlans
public final ImmutableCloudServiceOffering.Builder addServicePlans(CloudServicePlan... elements)
Adds elements toservicePlanslist.- Parameters:
elements- An array of servicePlans elements- Returns:
thisbuilder for use in a chained invocation
-
servicePlans
public final ImmutableCloudServiceOffering.Builder servicePlans(Iterable<? extends CloudServicePlan> elements)
Sets or replaces all elements forservicePlanslist.- Parameters:
elements- An iterable of servicePlans elements- Returns:
thisbuilder for use in a chained invocation
-
addAllServicePlans
public final ImmutableCloudServiceOffering.Builder addAllServicePlans(Iterable<? extends CloudServicePlan> elements)
Adds elements toservicePlanslist.- Parameters:
elements- An iterable of servicePlans elements- Returns:
thisbuilder for use in a chained invocation
-
description
public final ImmutableCloudServiceOffering.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
-
docUrl
public final ImmutableCloudServiceOffering.Builder docUrl(String docUrl)
Initializes the value for thedocUrlattribute.- Parameters:
docUrl- The value for docUrl (can benull)- Returns:
thisbuilder for use in a chained invocation
-
putExtra
public final ImmutableCloudServiceOffering.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 ImmutableCloudServiceOffering.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 ImmutableCloudServiceOffering.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 ImmutableCloudServiceOffering.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
-
brokerId
public final ImmutableCloudServiceOffering.Builder brokerId(String brokerId)
Initializes the value for thebrokerIdattribute.- Parameters:
brokerId- The value for brokerId (can benull)- Returns:
thisbuilder for use in a chained invocation
-
uniqueId
public final ImmutableCloudServiceOffering.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
-
build
public ImmutableCloudServiceOffering build()
Builds a newImmutableCloudServiceOffering.- Returns:
- An immutable instance of CloudServiceOffering
- Throws:
IllegalStateException- if any required attributes are missing
-
-