Class ImmutableCloudTask
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.domain.CloudEntity
-
- com.sap.cloudfoundry.client.facade.domain.CloudTask
-
- com.sap.cloudfoundry.client.facade.domain.ImmutableCloudTask
-
@Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableCloudTask extends CloudTask
Immutable implementation ofCloudTask.Use the builder to create immutable instances:
ImmutableCloudTask.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableCloudTask.BuilderBuilds instances of typeImmutableCloudTask.static classImmutableCloudTask.ImmutableLimitsImmutable implementation ofCloudTask.Limits.static classImmutableCloudTask.ImmutableResultImmutable implementation ofCloudTask.Result.-
Nested classes/interfaces inherited from class com.sap.cloudfoundry.client.facade.domain.CloudTask
CloudTask.Limits, CloudTask.Result, CloudTask.State
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableCloudTask.Builderbuilder()Creates a builder forImmutableCloudTask.static ImmutableCloudTaskcopyOf(CloudTask instance)Creates an immutable copy of aCloudTaskvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableCloudTaskthat have equal attribute values.StringgetCommand()CloudTask.LimitsgetLimits()CloudMetadatagetMetadata()StringgetName()CloudTask.ResultgetResult()CloudTask.StategetState()org.cloudfoundry.client.v3.MetadatagetV3Metadata()inthashCode()Computes a hash code from attributes:name,metadata,v3Metadata,command,limits,result,state.StringtoString()Prints the immutable valueCloudTaskwith attribute values.ImmutableCloudTaskwithCommand(String value)Copy the current immutable object by setting a value for thecommandattribute.ImmutableCloudTaskwithLimits(CloudTask.Limits value)Copy the current immutable object by setting a value for thelimitsattribute.ImmutableCloudTaskwithMetadata(CloudMetadata value)Copy the current immutable object by setting a value for themetadataattribute.ImmutableCloudTaskwithName(String value)Copy the current immutable object by setting a value for thenameattribute.ImmutableCloudTaskwithResult(CloudTask.Result value)Copy the current immutable object by setting a value for theresultattribute.ImmutableCloudTaskwithState(CloudTask.State value)Copy the current immutable object by setting a value for thestateattribute.ImmutableCloudTaskwithV3Metadata(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
-
getCommand
public String getCommand()
- Specified by:
getCommandin classCloudTask- Returns:
- The value of the
commandattribute
-
getLimits
public CloudTask.Limits getLimits()
-
getResult
public CloudTask.Result getResult()
-
getState
public CloudTask.State getState()
-
withName
public final ImmutableCloudTask 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 ImmutableCloudTask 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 ImmutableCloudTask 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
-
withCommand
public final ImmutableCloudTask withCommand(String value)
Copy the current immutable object by setting a value for thecommandattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for command (can benull)- Returns:
- A modified copy of the
thisobject
-
withLimits
public final ImmutableCloudTask withLimits(CloudTask.Limits value)
Copy the current immutable object by setting a value for thelimitsattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for limits (can benull)- Returns:
- A modified copy of the
thisobject
-
withResult
public final ImmutableCloudTask withResult(CloudTask.Result value)
Copy the current immutable object by setting a value for theresultattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for result (can benull)- Returns:
- A modified copy of the
thisobject
-
withState
public final ImmutableCloudTask withState(CloudTask.State 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 (can benull)- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(Object another)
This instance is equal to all instances ofImmutableCloudTaskthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:name,metadata,v3Metadata,command,limits,result,state.
-
toString
public String toString()
Prints the immutable valueCloudTaskwith attribute values.
-
copyOf
public static ImmutableCloudTask copyOf(CloudTask instance)
Creates an immutable copy of aCloudTaskvalue. 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 CloudTask instance
-
builder
public static ImmutableCloudTask.Builder builder()
Creates a builder forImmutableCloudTask.ImmutableCloudTask.builder() .name(String | null) // nullablename.metadata(com.sap.cloudfoundry.client.facade.domain.CloudMetadata | null) // nullablemetadata.v3Metadata(org.cloudfoundry.client.v3.Metadata | null) // nullablev3Metadata.command(String | null) // nullablecommand.limits(com.sap.cloudfoundry.client.facade.domain.CloudTask.Limits | null) // nullablelimits.result(com.sap.cloudfoundry.client.facade.domain.CloudTask.Result | null) // nullableresult.state(com.sap.cloudfoundry.client.facade.domain.CloudTask.State | null) // nullablestate.build();- Returns:
- A new ImmutableCloudTask builder
-
-