Class ImmutableRawCloudInfo
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.adapters.RawCloudEntity<CloudInfo>
-
- com.sap.cloudfoundry.client.facade.adapters.RawCloudInfo
-
- com.sap.cloudfoundry.client.facade.adapters.ImmutableRawCloudInfo
-
@Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableRawCloudInfo extends RawCloudInfo
Immutable implementation ofRawCloudInfo.Use the builder to create immutable instances:
ImmutableRawCloudInfo.builder(). Use the static factory method to create immutable instances:ImmutableRawCloudInfo.of().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableRawCloudInfo.BuilderBuilds instances of typeImmutableRawCloudInfo.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableRawCloudInfo.Builderbuilder()Creates a builder forImmutableRawCloudInfo.static ImmutableRawCloudInfocopyOf(RawCloudInfo instance)Creates an immutable copy of aRawCloudInfovalue.booleanequals(Object another)This instance is equal to all instances ofImmutableRawCloudInfothat have equal attribute values.org.cloudfoundry.client.v2.info.GetInfoResponsegetResource()inthashCode()Computes a hash code from attributes:resource.static ImmutableRawCloudInfoof(org.cloudfoundry.client.v2.info.GetInfoResponse resource)Construct a new immutableRawCloudInfoinstance.StringtoString()Prints the immutable valueRawCloudInfowith attribute values.ImmutableRawCloudInfowithResource(org.cloudfoundry.client.v2.info.GetInfoResponse value)Copy the current immutable object by setting a value for theresourceattribute.-
Methods inherited from class com.sap.cloudfoundry.client.facade.adapters.RawCloudInfo
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.info.GetInfoResponse getResource()
- Specified by:
getResourcein classRawCloudInfo- Returns:
- The value of the
resourceattribute
-
withResource
public final ImmutableRawCloudInfo withResource(org.cloudfoundry.client.v2.info.GetInfoResponse 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 ofImmutableRawCloudInfothat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:resource.
-
toString
public String toString()
Prints the immutable valueRawCloudInfowith attribute values.
-
of
public static ImmutableRawCloudInfo of(org.cloudfoundry.client.v2.info.GetInfoResponse resource)
Construct a new immutableRawCloudInfoinstance.- Parameters:
resource- The value for theresourceattribute- Returns:
- An immutable RawCloudInfo instance
-
copyOf
public static ImmutableRawCloudInfo copyOf(RawCloudInfo instance)
Creates an immutable copy of aRawCloudInfovalue. 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 RawCloudInfo instance
-
builder
public static ImmutableRawCloudInfo.Builder builder()
Creates a builder forImmutableRawCloudInfo.ImmutableRawCloudInfo.builder() .resource(org.cloudfoundry.client.v2.info.GetInfoResponse) // requiredresource.build();- Returns:
- A new ImmutableRawCloudInfo builder
-
-