Class ImmutableCloudJob
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.domain.CloudEntity
-
- com.sap.cloudfoundry.client.facade.domain.CloudJob
-
- com.sap.cloudfoundry.client.facade.domain.ImmutableCloudJob
-
@Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableCloudJob extends CloudJob
Immutable implementation ofCloudJob.Use the builder to create immutable instances:
ImmutableCloudJob.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableCloudJob.BuilderBuilds instances of typeImmutableCloudJob.-
Nested classes/interfaces inherited from class com.sap.cloudfoundry.client.facade.domain.CloudJob
CloudJob.Status
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableCloudJob.Builderbuilder()Creates a builder forImmutableCloudJob.static ImmutableCloudJobcopyOf(CloudJob instance)Creates an immutable copy of aCloudJobvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableCloudJobthat have equal attribute values.ErrorDetailsgetErrorDetails()CloudMetadatagetMetadata()StringgetName()CloudJob.StatusgetStatus()org.cloudfoundry.client.v3.MetadatagetV3Metadata()inthashCode()Computes a hash code from attributes:name,metadata,v3Metadata,status,errorDetails.StringtoString()Prints the immutable valueCloudJobwith attribute values.ImmutableCloudJobwithErrorDetails(ErrorDetails value)Copy the current immutable object by setting a value for theerrorDetailsattribute.ImmutableCloudJobwithMetadata(CloudMetadata value)Copy the current immutable object by setting a value for themetadataattribute.ImmutableCloudJobwithName(String value)Copy the current immutable object by setting a value for thenameattribute.ImmutableCloudJobwithStatus(CloudJob.Status value)Copy the current immutable object by setting a value for thestatusattribute.ImmutableCloudJobwithV3Metadata(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.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
-
getStatus
public CloudJob.Status getStatus()
-
getErrorDetails
public ErrorDetails getErrorDetails()
- Specified by:
getErrorDetailsin classCloudJob- Returns:
- The value of the
errorDetailsattribute
-
withName
public final ImmutableCloudJob 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 ImmutableCloudJob 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 ImmutableCloudJob 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
-
withStatus
public final ImmutableCloudJob withStatus(CloudJob.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
-
withErrorDetails
public final ImmutableCloudJob withErrorDetails(ErrorDetails value)
Copy the current immutable object by setting a value for theerrorDetailsattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for errorDetails (can benull)- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(Object another)
This instance is equal to all instances ofImmutableCloudJobthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:name,metadata,v3Metadata,status,errorDetails.
-
toString
public String toString()
Prints the immutable valueCloudJobwith attribute values.
-
copyOf
public static ImmutableCloudJob copyOf(CloudJob instance)
Creates an immutable copy of aCloudJobvalue. 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 CloudJob instance
-
builder
public static ImmutableCloudJob.Builder builder()
Creates a builder forImmutableCloudJob.ImmutableCloudJob.builder() .name(String | null) // nullablename.metadata(com.sap.cloudfoundry.client.facade.domain.CloudMetadata | null) // nullablemetadata.v3Metadata(org.cloudfoundry.client.v3.Metadata | null) // nullablev3Metadata.status(com.sap.cloudfoundry.client.facade.domain.CloudJob.Status | null) // nullablestatus.errorDetails(com.sap.cloudfoundry.client.facade.domain.ErrorDetails | null) // nullableerrorDetails.build();- Returns:
- A new ImmutableCloudJob builder
-
-