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.v3.stacks.StackgetStack()inthashCode()Computes a hash code from attributes:stack.static ImmutableRawCloudStackof(org.cloudfoundry.client.v3.stacks.Stack stack)Construct a new immutableRawCloudStackinstance.StringtoString()Prints the immutable valueRawCloudStackwith attribute values.ImmutableRawCloudStackwithStack(org.cloudfoundry.client.v3.stacks.Stack value)Copy the current immutable object by setting a value for thestackattribute.-
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
-
-
-
-
Method Detail
-
getStack
public org.cloudfoundry.client.v3.stacks.Stack getStack()
- Specified by:
getStackin classRawCloudStack- Returns:
- The value of the
stackattribute
-
withStack
public final ImmutableRawCloudStack withStack(org.cloudfoundry.client.v3.stacks.Stack value)
Copy the current immutable object by setting a value for thestackattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for stack- 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:stack.
-
toString
public String toString()
Prints the immutable valueRawCloudStackwith attribute values.
-
of
public static ImmutableRawCloudStack of(org.cloudfoundry.client.v3.stacks.Stack stack)
Construct a new immutableRawCloudStackinstance.- Parameters:
stack- The value for thestackattribute- 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() .stack(org.cloudfoundry.client.v3.stacks.Stack) // requiredstack.build();- Returns:
- A new ImmutableRawCloudStack builder
-
-