Class ImmutableRawCloudStack
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.adapters.RawCloudEntity<CloudStack>
-
- com.sap.cloudfoundry.client.facade.adapters.RawCloudStack
-
- com.sap.cloudfoundry.client.facade.adapters.ImmutableRawCloudStack
-
- All Implemented Interfaces:
Derivable<CloudStack>
@Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableRawCloudStack extends RawCloudStack
Immutable implementation ofRawCloudStack.Use the builder to create immutable instances:
ImmutableRawCloudStack.builder(). Use the static factory method to create immutable instances:ImmutableRawCloudStack.of().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableRawCloudStack.BuilderBuilds instances of typeImmutableRawCloudStack.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableRawCloudStack.Builderbuilder()Creates a builder forImmutableRawCloudStack.static ImmutableRawCloudStackcopyOf(RawCloudStack instance)Creates an immutable copy of aRawCloudStackvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableRawCloudStackthat have equal attribute values.org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.stacks.StackEntity>getResource()inthashCode()Computes a hash code from attributes:resource.static ImmutableRawCloudStackof(org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.stacks.StackEntity> resource)Construct a new immutableRawCloudStackinstance.StringtoString()Prints the immutable valueRawCloudStackwith attribute values.ImmutableRawCloudStackwithResource(org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.stacks.StackEntity> value)Copy the current immutable object by setting a value for theresourceattribute.-
Methods inherited from class com.sap.cloudfoundry.client.facade.adapters.RawCloudStack
derive
-
Methods inherited from class com.sap.cloudfoundry.client.facade.adapters.RawCloudEntity
derive, deriveFromNullable, parseDate, parseEnum, parseGuid, parseNullableDate, parseNullableGuid, parseResourceMetadata, parseResourceMetadata
-
-
-
-
Method Detail
-
getResource
public org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.stacks.StackEntity> getResource()
- Specified by:
getResourcein classRawCloudStack- Returns:
- The value of the
resourceattribute
-
withResource
public final ImmutableRawCloudStack withResource(org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.stacks.StackEntity> 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 ofImmutableRawCloudStackthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:resource.
-
toString
public String toString()
Prints the immutable valueRawCloudStackwith attribute values.
-
of
public static ImmutableRawCloudStack of(org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.stacks.StackEntity> resource)
Construct a new immutableRawCloudStackinstance.- Parameters:
resource- The value for theresourceattribute- Returns:
- An immutable RawCloudStack instance
-
copyOf
public static ImmutableRawCloudStack copyOf(RawCloudStack instance)
Creates an immutable copy of aRawCloudStackvalue. 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 RawCloudStack instance
-
builder
public static ImmutableRawCloudStack.Builder builder()
Creates a builder forImmutableRawCloudStack.ImmutableRawCloudStack.builder() .resource(org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.stacks.StackEntity>) // requiredresource.build();- Returns:
- A new ImmutableRawCloudStack builder
-
-