Class ImmutableRawCloudTask
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.adapters.RawCloudEntity<CloudTask>
-
- com.sap.cloudfoundry.client.facade.adapters.RawCloudTask
-
- com.sap.cloudfoundry.client.facade.adapters.ImmutableRawCloudTask
-
@Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableRawCloudTask extends RawCloudTask
Immutable implementation ofRawCloudTask.Use the builder to create immutable instances:
ImmutableRawCloudTask.builder(). Use the static factory method to create immutable instances:ImmutableRawCloudTask.of().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableRawCloudTask.BuilderBuilds instances of typeImmutableRawCloudTask.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableRawCloudTask.Builderbuilder()Creates a builder forImmutableRawCloudTask.static ImmutableRawCloudTaskcopyOf(RawCloudTask instance)Creates an immutable copy of aRawCloudTaskvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableRawCloudTaskthat have equal attribute values.org.cloudfoundry.client.v3.tasks.TaskgetResource()inthashCode()Computes a hash code from attributes:resource.static ImmutableRawCloudTaskof(org.cloudfoundry.client.v3.tasks.Task resource)Construct a new immutableRawCloudTaskinstance.StringtoString()Prints the immutable valueRawCloudTaskwith attribute values.ImmutableRawCloudTaskwithResource(org.cloudfoundry.client.v3.tasks.Task value)Copy the current immutable object by setting a value for theresourceattribute.-
Methods inherited from class com.sap.cloudfoundry.client.facade.adapters.RawCloudTask
derive
-
Methods inherited from class com.sap.cloudfoundry.client.facade.adapters.RawCloudEntity
derive, deriveFromNullable, parseDate, parseEnum, parseGuid, parseNullableDate, parseNullableGuid, parseResourceMetadata
-
-
-
-
Method Detail
-
getResource
public org.cloudfoundry.client.v3.tasks.Task getResource()
- Specified by:
getResourcein classRawCloudTask- Returns:
- The value of the
resourceattribute
-
withResource
public final ImmutableRawCloudTask withResource(org.cloudfoundry.client.v3.tasks.Task value)
Copy the current immutable object by setting a value for theresourceattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for resource- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(Object another)
This instance is equal to all instances ofImmutableRawCloudTaskthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:resource.
-
toString
public String toString()
Prints the immutable valueRawCloudTaskwith attribute values.
-
of
public static ImmutableRawCloudTask of(org.cloudfoundry.client.v3.tasks.Task resource)
Construct a new immutableRawCloudTaskinstance.- Parameters:
resource- The value for theresourceattribute- Returns:
- An immutable RawCloudTask instance
-
copyOf
public static ImmutableRawCloudTask copyOf(RawCloudTask instance)
Creates an immutable copy of aRawCloudTaskvalue. 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 RawCloudTask instance
-
builder
public static ImmutableRawCloudTask.Builder builder()
Creates a builder forImmutableRawCloudTask.ImmutableRawCloudTask.builder() .resource(org.cloudfoundry.client.v3.tasks.Task) // requiredresource.build();- Returns:
- A new ImmutableRawCloudTask builder
-
-