Class ImmutableCloudServiceOffering
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.domain.CloudEntity
-
- com.sap.cloudfoundry.client.facade.domain.CloudServiceOffering
-
- com.sap.cloudfoundry.client.facade.domain.ImmutableCloudServiceOffering
-
- All Implemented Interfaces:
Derivable<CloudServiceOffering>
@Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableCloudServiceOffering extends CloudServiceOffering
Immutable implementation ofCloudServiceOffering.Use the builder to create immutable instances:
ImmutableCloudServiceOffering.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableCloudServiceOffering.BuilderBuilds instances of typeImmutableCloudServiceOffering.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableCloudServiceOffering.Builderbuilder()Creates a builder forImmutableCloudServiceOffering.static ImmutableCloudServiceOfferingcopyOf(CloudServiceOffering instance)Creates an immutable copy of aCloudServiceOfferingvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableCloudServiceOfferingthat have equal attribute values.StringgetBrokerId()StringgetDescription()StringgetDocUrl()Map<String,Object>getExtra()CloudMetadatagetMetadata()StringgetName()List<CloudServicePlan>getServicePlans()StringgetUniqueId()org.cloudfoundry.client.v3.MetadatagetV3Metadata()inthashCode()Computes a hash code from attributes:name,metadata,v3Metadata,isAvailable,isBindable,isShareable,servicePlans,description,docUrl,extra,brokerId,uniqueId.BooleanisAvailable()BooleanisBindable()BooleanisShareable()StringtoString()Prints the immutable valueCloudServiceOfferingwith attribute values.ImmutableCloudServiceOfferingwithBrokerId(String value)Copy the current immutable object by setting a value for thebrokerIdattribute.ImmutableCloudServiceOfferingwithDescription(String value)Copy the current immutable object by setting a value for thedescriptionattribute.ImmutableCloudServiceOfferingwithDocUrl(String value)Copy the current immutable object by setting a value for thedocUrlattribute.ImmutableCloudServiceOfferingwithExtra(Map<String,? extends Object> entries)Copy the current immutable object by replacing theextramap with the specified map.ImmutableCloudServiceOfferingwithIsAvailable(Boolean value)Copy the current immutable object by setting a value for theisAvailableattribute.ImmutableCloudServiceOfferingwithIsBindable(Boolean value)Copy the current immutable object by setting a value for theisBindableattribute.ImmutableCloudServiceOfferingwithIsShareable(Boolean value)Copy the current immutable object by setting a value for theisShareableattribute.ImmutableCloudServiceOfferingwithMetadata(CloudMetadata value)Copy the current immutable object by setting a value for themetadataattribute.ImmutableCloudServiceOfferingwithName(String value)Copy the current immutable object by setting a value for thenameattribute.ImmutableCloudServiceOfferingwithServicePlans(CloudServicePlan... elements)Copy the current immutable object with elements that replace the content ofservicePlans.ImmutableCloudServiceOfferingwithServicePlans(Iterable<? extends CloudServicePlan> elements)Copy the current immutable object with elements that replace the content ofservicePlans.ImmutableCloudServiceOfferingwithUniqueId(String value)Copy the current immutable object by setting a value for theuniqueIdattribute.ImmutableCloudServiceOfferingwithV3Metadata(org.cloudfoundry.client.v3.Metadata value)Copy the current immutable object by setting a value for thev3Metadataattribute.-
Methods inherited from class com.sap.cloudfoundry.client.facade.domain.CloudServiceOffering
derive
-
Methods inherited from class com.sap.cloudfoundry.client.facade.domain.CloudEntity
getGuid
-
-
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein classCloudEntity- Returns:
- The value of the
nameattribute
-
getMetadata
public CloudMetadata getMetadata()
- Specified by:
getMetadatain classCloudEntity- Returns:
- The value of the
metadataattribute
-
getV3Metadata
public org.cloudfoundry.client.v3.Metadata getV3Metadata()
- Specified by:
getV3Metadatain classCloudEntity- Returns:
- The value of the
v3Metadataattribute
-
isAvailable
public Boolean isAvailable()
- Specified by:
isAvailablein classCloudServiceOffering- Returns:
- The value of the
isAvailableattribute
-
isBindable
public Boolean isBindable()
- Specified by:
isBindablein classCloudServiceOffering- Returns:
- The value of the
isBindableattribute
-
isShareable
public Boolean isShareable()
- Specified by:
isShareablein classCloudServiceOffering- Returns:
- The value of the
isShareableattribute
-
getServicePlans
public List<CloudServicePlan> getServicePlans()
- Specified by:
getServicePlansin classCloudServiceOffering- Returns:
- The value of the
servicePlansattribute
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin classCloudServiceOffering- Returns:
- The value of the
descriptionattribute
-
getDocUrl
public String getDocUrl()
- Specified by:
getDocUrlin classCloudServiceOffering- Returns:
- The value of the
docUrlattribute
-
getExtra
public Map<String,Object> getExtra()
- Specified by:
getExtrain classCloudServiceOffering- Returns:
- The value of the
extraattribute
-
getBrokerId
public String getBrokerId()
- Specified by:
getBrokerIdin classCloudServiceOffering- Returns:
- The value of the
brokerIdattribute
-
getUniqueId
public String getUniqueId()
- Specified by:
getUniqueIdin classCloudServiceOffering- Returns:
- The value of the
uniqueIdattribute
-
withName
public final ImmutableCloudServiceOffering withName(String value)
Copy the current immutable object by setting a value for thenameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for name (can benull)- Returns:
- A modified copy of the
thisobject
-
withMetadata
public final ImmutableCloudServiceOffering withMetadata(CloudMetadata value)
Copy the current immutable object by setting a value for themetadataattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for metadata (can benull)- Returns:
- A modified copy of the
thisobject
-
withV3Metadata
public final ImmutableCloudServiceOffering withV3Metadata(org.cloudfoundry.client.v3.Metadata value)
Copy the current immutable object by setting a value for thev3Metadataattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for v3Metadata (can benull)- Returns:
- A modified copy of the
thisobject
-
withIsAvailable
public final ImmutableCloudServiceOffering withIsAvailable(Boolean value)
Copy the current immutable object by setting a value for theisAvailableattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for isAvailable (can benull)- Returns:
- A modified copy of the
thisobject
-
withIsBindable
public final ImmutableCloudServiceOffering withIsBindable(Boolean value)
Copy the current immutable object by setting a value for theisBindableattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for isBindable (can benull)- Returns:
- A modified copy of the
thisobject
-
withIsShareable
public final ImmutableCloudServiceOffering withIsShareable(Boolean value)
Copy the current immutable object by setting a value for theisShareableattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for isShareable (can benull)- Returns:
- A modified copy of the
thisobject
-
withServicePlans
public final ImmutableCloudServiceOffering withServicePlans(CloudServicePlan... elements)
Copy the current immutable object with elements that replace the content ofservicePlans.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withServicePlans
public final ImmutableCloudServiceOffering withServicePlans(Iterable<? extends CloudServicePlan> elements)
Copy the current immutable object with elements that replace the content ofservicePlans. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of servicePlans elements to set- Returns:
- A modified copy of
thisobject
-
withDescription
public final ImmutableCloudServiceOffering withDescription(String value)
Copy the current immutable object by setting a value for thedescriptionattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for description (can benull)- Returns:
- A modified copy of the
thisobject
-
withDocUrl
public final ImmutableCloudServiceOffering withDocUrl(String value)
Copy the current immutable object by setting a value for thedocUrlattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for docUrl (can benull)- Returns:
- A modified copy of the
thisobject
-
withExtra
public final ImmutableCloudServiceOffering withExtra(Map<String,? extends Object> entries)
Copy the current immutable object by replacing theextramap with the specified map. Nulls are not permitted as keys or values. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
entries- The entries to be added to the extra map- Returns:
- A modified copy of
thisobject
-
withBrokerId
public final ImmutableCloudServiceOffering withBrokerId(String value)
Copy the current immutable object by setting a value for thebrokerIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for brokerId (can benull)- Returns:
- A modified copy of the
thisobject
-
withUniqueId
public final ImmutableCloudServiceOffering withUniqueId(String value)
Copy the current immutable object by setting a value for theuniqueIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for uniqueId (can benull)- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(Object another)
This instance is equal to all instances ofImmutableCloudServiceOfferingthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:name,metadata,v3Metadata,isAvailable,isBindable,isShareable,servicePlans,description,docUrl,extra,brokerId,uniqueId.
-
toString
public String toString()
Prints the immutable valueCloudServiceOfferingwith attribute values.
-
copyOf
public static ImmutableCloudServiceOffering copyOf(CloudServiceOffering instance)
Creates an immutable copy of aCloudServiceOfferingvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable CloudServiceOffering instance
-
builder
public static ImmutableCloudServiceOffering.Builder builder()
Creates a builder forImmutableCloudServiceOffering.ImmutableCloudServiceOffering.builder() .name(String | null) // nullablename.metadata(com.sap.cloudfoundry.client.facade.domain.CloudMetadata | null) // nullablemetadata.v3Metadata(org.cloudfoundry.client.v3.Metadata | null) // nullablev3Metadata.isAvailable(Boolean | null) // nullableisAvailable.isBindable(Boolean | null) // nullableisBindable.isShareable(Boolean | null) // nullableisShareable.addServicePlan|addAllServicePlans(com.sap.cloudfoundry.client.facade.domain.CloudServicePlan) //servicePlanselements .description(String | null) // nullabledescription.docUrl(String | null) // nullabledocUrl.extra(Map<String, Object> | null) // nullableextra.brokerId(String | null) // nullablebrokerId.uniqueId(String | null) // nullableuniqueId.build();- Returns:
- A new ImmutableCloudServiceOffering builder
-
-