Class ImmutableCloudSpace
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.domain.CloudEntity
-
- com.sap.cloudfoundry.client.facade.domain.CloudSpace
-
- com.sap.cloudfoundry.client.facade.domain.ImmutableCloudSpace
-
- All Implemented Interfaces:
Derivable<CloudSpace>
@Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableCloudSpace extends CloudSpace
Immutable implementation ofCloudSpace.Use the builder to create immutable instances:
ImmutableCloudSpace.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableCloudSpace.BuilderBuilds instances of typeImmutableCloudSpace.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableCloudSpace.Builderbuilder()Creates a builder forImmutableCloudSpace.static ImmutableCloudSpacecopyOf(CloudSpace instance)Creates an immutable copy of aCloudSpacevalue.booleanequals(Object another)This instance is equal to all instances ofImmutableCloudSpacethat have equal attribute values.CloudMetadatagetMetadata()StringgetName()CloudOrganizationgetOrganization()org.cloudfoundry.client.v3.MetadatagetV3Metadata()inthashCode()Computes a hash code from attributes:name,metadata,v3Metadata,organization.StringtoString()Prints the immutable valueCloudSpacewith attribute values.ImmutableCloudSpacewithMetadata(CloudMetadata value)Copy the current immutable object by setting a value for themetadataattribute.ImmutableCloudSpacewithName(String value)Copy the current immutable object by setting a value for thenameattribute.ImmutableCloudSpacewithOrganization(CloudOrganization value)Copy the current immutable object by setting a value for theorganizationattribute.ImmutableCloudSpacewithV3Metadata(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.CloudSpace
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
-
getOrganization
public CloudOrganization getOrganization()
- Specified by:
getOrganizationin classCloudSpace- Returns:
- The value of the
organizationattribute
-
withName
public final ImmutableCloudSpace 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 ImmutableCloudSpace 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 ImmutableCloudSpace 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
-
withOrganization
public final ImmutableCloudSpace withOrganization(CloudOrganization value)
Copy the current immutable object by setting a value for theorganizationattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for organization (can benull)- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(Object another)
This instance is equal to all instances ofImmutableCloudSpacethat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:name,metadata,v3Metadata,organization.
-
toString
public String toString()
Prints the immutable valueCloudSpacewith attribute values.
-
copyOf
public static ImmutableCloudSpace copyOf(CloudSpace instance)
Creates an immutable copy of aCloudSpacevalue. 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 CloudSpace instance
-
builder
public static ImmutableCloudSpace.Builder builder()
Creates a builder forImmutableCloudSpace.ImmutableCloudSpace.builder() .name(String | null) // nullablename.metadata(com.sap.cloudfoundry.client.facade.domain.CloudMetadata | null) // nullablemetadata.v3Metadata(org.cloudfoundry.client.v3.Metadata | null) // nullablev3Metadata.organization(com.sap.cloudfoundry.client.facade.domain.CloudOrganization | null) // nullableorganization.build();- Returns:
- A new ImmutableCloudSpace builder
-
-