Class ImmutableCloudStack
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.domain.CloudEntity
-
- com.sap.cloudfoundry.client.facade.domain.CloudStack
-
- com.sap.cloudfoundry.client.facade.domain.ImmutableCloudStack
-
- All Implemented Interfaces:
Derivable<CloudStack>
@Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableCloudStack extends CloudStack
Immutable implementation ofCloudStack.Use the builder to create immutable instances:
ImmutableCloudStack.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableCloudStack.BuilderBuilds instances of typeImmutableCloudStack.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableCloudStack.Builderbuilder()Creates a builder forImmutableCloudStack.static ImmutableCloudStackcopyOf(CloudStack instance)Creates an immutable copy of aCloudStackvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableCloudStackthat have equal attribute values.StringgetDescription()CloudMetadatagetMetadata()StringgetName()org.cloudfoundry.client.v3.MetadatagetV3Metadata()inthashCode()Computes a hash code from attributes:name,metadata,v3Metadata,description.StringtoString()Prints the immutable valueCloudStackwith attribute values.ImmutableCloudStackwithDescription(String value)Copy the current immutable object by setting a value for thedescriptionattribute.ImmutableCloudStackwithMetadata(CloudMetadata value)Copy the current immutable object by setting a value for themetadataattribute.ImmutableCloudStackwithName(String value)Copy the current immutable object by setting a value for thenameattribute.ImmutableCloudStackwithV3Metadata(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.CloudStack
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 classCloudStack- Returns:
- The value of the
descriptionattribute
-
withName
public final ImmutableCloudStack 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 ImmutableCloudStack 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 ImmutableCloudStack 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 ImmutableCloudStack 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
-
equals
public boolean equals(Object another)
This instance is equal to all instances ofImmutableCloudStackthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:name,metadata,v3Metadata,description.
-
toString
public String toString()
Prints the immutable valueCloudStackwith attribute values.
-
copyOf
public static ImmutableCloudStack copyOf(CloudStack instance)
Creates an immutable copy of aCloudStackvalue. 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 CloudStack instance
-
builder
public static ImmutableCloudStack.Builder builder()
Creates a builder forImmutableCloudStack.ImmutableCloudStack.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.build();- Returns:
- A new ImmutableCloudStack builder
-
-