Class ImmutableCloudAsyncJob
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.domain.CloudEntity
-
- com.sap.cloudfoundry.client.facade.domain.CloudAsyncJob
-
- com.sap.cloudfoundry.client.facade.domain.ImmutableCloudAsyncJob
-
- All Implemented Interfaces:
Derivable<CloudAsyncJob>
@Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableCloudAsyncJob extends CloudAsyncJob
Immutable implementation ofCloudAsyncJob.Use the builder to create immutable instances:
ImmutableCloudAsyncJob.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableCloudAsyncJob.BuilderBuilds instances of typeImmutableCloudAsyncJob.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableCloudAsyncJob.Builderbuilder()Creates a builder forImmutableCloudAsyncJob.static ImmutableCloudAsyncJobcopyOf(CloudAsyncJob instance)Creates an immutable copy of aCloudAsyncJobvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableCloudAsyncJobthat have equal attribute values.StringgetErrors()CloudMetadatagetMetadata()StringgetName()StringgetOperation()org.cloudfoundry.client.v3.jobs.JobStategetState()org.cloudfoundry.client.v3.MetadatagetV3Metadata()StringgetWarnings()inthashCode()Computes a hash code from attributes:name,metadata,v3Metadata,state,operation,warnings,errors.StringtoString()Prints the immutable valueCloudAsyncJobwith attribute values.ImmutableCloudAsyncJobwithErrors(String value)Copy the current immutable object by setting a value for theerrorsattribute.ImmutableCloudAsyncJobwithMetadata(CloudMetadata value)Copy the current immutable object by setting a value for themetadataattribute.ImmutableCloudAsyncJobwithName(String value)Copy the current immutable object by setting a value for thenameattribute.ImmutableCloudAsyncJobwithOperation(String value)Copy the current immutable object by setting a value for theoperationattribute.ImmutableCloudAsyncJobwithState(org.cloudfoundry.client.v3.jobs.JobState value)Copy the current immutable object by setting a value for thestateattribute.ImmutableCloudAsyncJobwithV3Metadata(org.cloudfoundry.client.v3.Metadata value)Copy the current immutable object by setting a value for thev3Metadataattribute.ImmutableCloudAsyncJobwithWarnings(String value)Copy the current immutable object by setting a value for thewarningsattribute.-
Methods inherited from class com.sap.cloudfoundry.client.facade.domain.CloudAsyncJob
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
-
getState
public org.cloudfoundry.client.v3.jobs.JobState getState()
- Specified by:
getStatein classCloudAsyncJob- Returns:
- The value of the
stateattribute
-
getOperation
public String getOperation()
- Specified by:
getOperationin classCloudAsyncJob- Returns:
- The value of the
operationattribute
-
getWarnings
public String getWarnings()
- Specified by:
getWarningsin classCloudAsyncJob- Returns:
- The value of the
warningsattribute
-
getErrors
public String getErrors()
- Specified by:
getErrorsin classCloudAsyncJob- Returns:
- The value of the
errorsattribute
-
withName
public final ImmutableCloudAsyncJob 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 ImmutableCloudAsyncJob 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 ImmutableCloudAsyncJob 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
-
withState
public final ImmutableCloudAsyncJob withState(org.cloudfoundry.client.v3.jobs.JobState value)
Copy the current immutable object by setting a value for thestateattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for state- Returns:
- A modified copy of the
thisobject
-
withOperation
public final ImmutableCloudAsyncJob withOperation(String value)
Copy the current immutable object by setting a value for theoperationattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for operation (can benull)- Returns:
- A modified copy of the
thisobject
-
withWarnings
public final ImmutableCloudAsyncJob withWarnings(String value)
Copy the current immutable object by setting a value for thewarningsattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for warnings (can benull)- Returns:
- A modified copy of the
thisobject
-
withErrors
public final ImmutableCloudAsyncJob withErrors(String value)
Copy the current immutable object by setting a value for theerrorsattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for errors (can benull)- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(Object another)
This instance is equal to all instances ofImmutableCloudAsyncJobthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:name,metadata,v3Metadata,state,operation,warnings,errors.
-
toString
public String toString()
Prints the immutable valueCloudAsyncJobwith attribute values.
-
copyOf
public static ImmutableCloudAsyncJob copyOf(CloudAsyncJob instance)
Creates an immutable copy of aCloudAsyncJobvalue. 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 CloudAsyncJob instance
-
builder
public static ImmutableCloudAsyncJob.Builder builder()
Creates a builder forImmutableCloudAsyncJob.ImmutableCloudAsyncJob.builder() .name(String | null) // nullablename.metadata(com.sap.cloudfoundry.client.facade.domain.CloudMetadata | null) // nullablemetadata.v3Metadata(org.cloudfoundry.client.v3.Metadata | null) // nullablev3Metadata.state(org.cloudfoundry.client.v3.jobs.JobState) // requiredstate.operation(String | null) // nullableoperation.warnings(String | null) // nullablewarnings.errors(String | null) // nullableerrors.build();- Returns:
- A new ImmutableCloudAsyncJob builder
-
-