Class ImmutableCloudDomain
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.domain.CloudEntity
-
- com.sap.cloudfoundry.client.facade.domain.CloudDomain
-
- com.sap.cloudfoundry.client.facade.domain.ImmutableCloudDomain
-
- All Implemented Interfaces:
Derivable<CloudDomain>
@Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableCloudDomain extends CloudDomain
Immutable implementation ofCloudDomain.Use the builder to create immutable instances:
ImmutableCloudDomain.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableCloudDomain.BuilderBuilds instances of typeImmutableCloudDomain.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableCloudDomain.Builderbuilder()Creates a builder forImmutableCloudDomain.static ImmutableCloudDomaincopyOf(CloudDomain instance)Creates an immutable copy of aCloudDomainvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableCloudDomainthat have equal attribute values.CloudMetadatagetMetadata()StringgetName()org.cloudfoundry.client.v3.MetadatagetV3Metadata()inthashCode()Computes a hash code from attributes:name,metadata,v3Metadata.StringtoString()Prints the immutable valueCloudDomainwith attribute values.ImmutableCloudDomainwithMetadata(CloudMetadata value)Copy the current immutable object by setting a value for themetadataattribute.ImmutableCloudDomainwithName(String value)Copy the current immutable object by setting a value for thenameattribute.ImmutableCloudDomainwithV3Metadata(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.CloudDomain
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
-
withName
public final ImmutableCloudDomain 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 ImmutableCloudDomain 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 ImmutableCloudDomain 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
-
equals
public boolean equals(Object another)
This instance is equal to all instances ofImmutableCloudDomainthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:name,metadata,v3Metadata.
-
toString
public String toString()
Prints the immutable valueCloudDomainwith attribute values.
-
copyOf
public static ImmutableCloudDomain copyOf(CloudDomain instance)
Creates an immutable copy of aCloudDomainvalue. 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 CloudDomain instance
-
builder
public static ImmutableCloudDomain.Builder builder()
Creates a builder forImmutableCloudDomain.ImmutableCloudDomain.builder() .name(String | null) // nullablename.metadata(com.sap.cloudfoundry.client.facade.domain.CloudMetadata | null) // nullablemetadata.v3Metadata(org.cloudfoundry.client.v3.Metadata | null) // nullablev3Metadata.build();- Returns:
- A new ImmutableCloudDomain builder
-
-