Class ImmutableCloudServicePlan
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.domain.CloudEntity
-
- com.sap.cloudfoundry.client.facade.domain.CloudServicePlan
-
- com.sap.cloudfoundry.client.facade.domain.ImmutableCloudServicePlan
-
- All Implemented Interfaces:
Derivable<CloudServicePlan>
@Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableCloudServicePlan extends CloudServicePlan
Immutable implementation ofCloudServicePlan.Use the builder to create immutable instances:
ImmutableCloudServicePlan.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableCloudServicePlan.BuilderBuilds instances of typeImmutableCloudServicePlan.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableCloudServicePlan.Builderbuilder()Creates a builder forImmutableCloudServicePlan.static ImmutableCloudServicePlancopyOf(CloudServicePlan instance)Creates an immutable copy of aCloudServicePlanvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableCloudServicePlanthat have equal attribute values.StringgetDescription()StringgetExtra()CloudMetadatagetMetadata()StringgetName()StringgetUniqueId()org.cloudfoundry.client.v3.MetadatagetV3Metadata()inthashCode()Computes a hash code from attributes:name,metadata,v3Metadata,description,extra,uniqueId,isFree,isPublic.BooleanisFree()BooleanisPublic()StringtoString()Prints the immutable valueCloudServicePlanwith attribute values.ImmutableCloudServicePlanwithDescription(String value)Copy the current immutable object by setting a value for thedescriptionattribute.ImmutableCloudServicePlanwithExtra(String value)Copy the current immutable object by setting a value for theextraattribute.ImmutableCloudServicePlanwithIsFree(Boolean value)Copy the current immutable object by setting a value for theisFreeattribute.ImmutableCloudServicePlanwithIsPublic(Boolean value)Copy the current immutable object by setting a value for theisPublicattribute.ImmutableCloudServicePlanwithMetadata(CloudMetadata value)Copy the current immutable object by setting a value for themetadataattribute.ImmutableCloudServicePlanwithName(String value)Copy the current immutable object by setting a value for thenameattribute.ImmutableCloudServicePlanwithUniqueId(String value)Copy the current immutable object by setting a value for theuniqueIdattribute.ImmutableCloudServicePlanwithV3Metadata(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.CloudServicePlan
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
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin classCloudServicePlan- Returns:
- The value of the
descriptionattribute
-
getExtra
public String getExtra()
- Specified by:
getExtrain classCloudServicePlan- Returns:
- The value of the
extraattribute
-
getUniqueId
public String getUniqueId()
- Specified by:
getUniqueIdin classCloudServicePlan- Returns:
- The value of the
uniqueIdattribute
-
isFree
public Boolean isFree()
- Specified by:
isFreein classCloudServicePlan- Returns:
- The value of the
isFreeattribute
-
isPublic
public Boolean isPublic()
- Specified by:
isPublicin classCloudServicePlan- Returns:
- The value of the
isPublicattribute
-
withName
public final ImmutableCloudServicePlan 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 ImmutableCloudServicePlan 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 ImmutableCloudServicePlan 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
-
withDescription
public final ImmutableCloudServicePlan 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
-
withExtra
public final ImmutableCloudServicePlan withExtra(String value)
Copy the current immutable object by setting a value for theextraattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for extra (can benull)- Returns:
- A modified copy of the
thisobject
-
withUniqueId
public final ImmutableCloudServicePlan 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
-
withIsFree
public final ImmutableCloudServicePlan withIsFree(Boolean value)
Copy the current immutable object by setting a value for theisFreeattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for isFree (can benull)- Returns:
- A modified copy of the
thisobject
-
withIsPublic
public final ImmutableCloudServicePlan withIsPublic(Boolean value)
Copy the current immutable object by setting a value for theisPublicattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for isPublic (can benull)- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(Object another)
This instance is equal to all instances ofImmutableCloudServicePlanthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:name,metadata,v3Metadata,description,extra,uniqueId,isFree,isPublic.
-
toString
public String toString()
Prints the immutable valueCloudServicePlanwith attribute values.
-
copyOf
public static ImmutableCloudServicePlan copyOf(CloudServicePlan instance)
Creates an immutable copy of aCloudServicePlanvalue. 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 CloudServicePlan instance
-
builder
public static ImmutableCloudServicePlan.Builder builder()
Creates a builder forImmutableCloudServicePlan.ImmutableCloudServicePlan.builder() .name(String | null) // nullablename.metadata(com.sap.cloudfoundry.client.facade.domain.CloudMetadata | null) // nullablemetadata.v3Metadata(org.cloudfoundry.client.v3.Metadata | null) // nullablev3Metadata.description(String | null) // nullabledescription.extra(String | null) // nullableextra.uniqueId(String | null) // nullableuniqueId.isFree(Boolean | null) // nullableisFree.isPublic(Boolean | null) // nullableisPublic.build();- Returns:
- A new ImmutableCloudServicePlan builder
-
-