Class ImmutableCloudPackage
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.domain.CloudEntity
-
- com.sap.cloudfoundry.client.facade.domain.CloudPackage
-
- com.sap.cloudfoundry.client.facade.domain.ImmutableCloudPackage
-
- All Implemented Interfaces:
Derivable<CloudPackage>
@Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableCloudPackage extends CloudPackage
Immutable implementation ofCloudPackage.Use the builder to create immutable instances:
ImmutableCloudPackage.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableCloudPackage.BuilderBuilds instances of typeImmutableCloudPackage.static classImmutableCloudPackage.ImmutableChecksumImmutable implementation ofCloudPackage.Checksum.static classImmutableCloudPackage.ImmutableDataImmutable implementation ofCloudPackage.Data.-
Nested classes/interfaces inherited from class com.sap.cloudfoundry.client.facade.domain.CloudPackage
CloudPackage.Checksum, CloudPackage.Data, CloudPackage.Type
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableCloudPackage.Builderbuilder()Creates a builder forImmutableCloudPackage.static ImmutableCloudPackagecopyOf(CloudPackage instance)Creates an immutable copy of aCloudPackagevalue.booleanequals(Object another)This instance is equal to all instances ofImmutableCloudPackagethat have equal attribute values.CloudPackage.DatagetData()CloudMetadatagetMetadata()StringgetName()StatusgetStatus()CloudPackage.TypegetType()org.cloudfoundry.client.v3.MetadatagetV3Metadata()inthashCode()Computes a hash code from attributes:name,metadata,v3Metadata,type,data,status.StringtoString()Prints the immutable valueCloudPackagewith attribute values.ImmutableCloudPackagewithData(CloudPackage.Data value)Copy the current immutable object by setting a value for thedataattribute.ImmutableCloudPackagewithMetadata(CloudMetadata value)Copy the current immutable object by setting a value for themetadataattribute.ImmutableCloudPackagewithName(String value)Copy the current immutable object by setting a value for thenameattribute.ImmutableCloudPackagewithStatus(Status value)Copy the current immutable object by setting a value for thestatusattribute.ImmutableCloudPackagewithType(CloudPackage.Type value)Copy the current immutable object by setting a value for thetypeattribute.ImmutableCloudPackagewithV3Metadata(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.CloudPackage
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
-
getType
public CloudPackage.Type getType()
- Specified by:
getTypein classCloudPackage- Returns:
- The value of the
typeattribute
-
getData
public CloudPackage.Data getData()
- Specified by:
getDatain classCloudPackage- Returns:
- The value of the
dataattribute
-
getStatus
public Status getStatus()
- Specified by:
getStatusin classCloudPackage- Returns:
- The value of the
statusattribute
-
withName
public final ImmutableCloudPackage 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 ImmutableCloudPackage 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 ImmutableCloudPackage 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
-
withType
public final ImmutableCloudPackage withType(CloudPackage.Type value)
Copy the current immutable object by setting a value for thetypeattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for type (can benull)- Returns:
- A modified copy of the
thisobject
-
withData
public final ImmutableCloudPackage withData(CloudPackage.Data value)
Copy the current immutable object by setting a value for thedataattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for data (can benull)- Returns:
- A modified copy of the
thisobject
-
withStatus
public final ImmutableCloudPackage withStatus(Status value)
Copy the current immutable object by setting a value for thestatusattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for status (can benull)- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(Object another)
This instance is equal to all instances ofImmutableCloudPackagethat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:name,metadata,v3Metadata,type,data,status.
-
toString
public String toString()
Prints the immutable valueCloudPackagewith attribute values.
-
copyOf
public static ImmutableCloudPackage copyOf(CloudPackage instance)
Creates an immutable copy of aCloudPackagevalue. 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 CloudPackage instance
-
builder
public static ImmutableCloudPackage.Builder builder()
Creates a builder forImmutableCloudPackage.ImmutableCloudPackage.builder() .name(String | null) // nullablename.metadata(com.sap.cloudfoundry.client.facade.domain.CloudMetadata | null) // nullablemetadata.v3Metadata(org.cloudfoundry.client.v3.Metadata | null) // nullablev3Metadata.type(com.sap.cloudfoundry.client.facade.domain.CloudPackage.Type | null) // nullabletype.data(com.sap.cloudfoundry.client.facade.domain.CloudPackage.Data | null) // nullabledata.status(com.sap.cloudfoundry.client.facade.domain.Status | null) // nullablestatus.build();- Returns:
- A new ImmutableCloudPackage builder
-
-