Class ImmutableRawCloudPackage
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.adapters.RawCloudEntity<CloudPackage>
-
- com.sap.cloudfoundry.client.facade.adapters.RawCloudPackage
-
- com.sap.cloudfoundry.client.facade.adapters.ImmutableRawCloudPackage
-
- All Implemented Interfaces:
Derivable<CloudPackage>
@Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableRawCloudPackage extends RawCloudPackage
Immutable implementation ofRawCloudPackage.Use the builder to create immutable instances:
ImmutableRawCloudPackage.builder(). Use the static factory method to create immutable instances:ImmutableRawCloudPackage.of().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableRawCloudPackage.BuilderBuilds instances of typeImmutableRawCloudPackage.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableRawCloudPackage.Builderbuilder()Creates a builder forImmutableRawCloudPackage.static ImmutableRawCloudPackagecopyOf(RawCloudPackage instance)Creates an immutable copy of aRawCloudPackagevalue.booleanequals(Object another)This instance is equal to all instances ofImmutableRawCloudPackagethat have equal attribute values.org.cloudfoundry.client.v3.packages.PackagegetResource()inthashCode()Computes a hash code from attributes:resource.static ImmutableRawCloudPackageof(org.cloudfoundry.client.v3.packages.Package resource)Construct a new immutableRawCloudPackageinstance.StringtoString()Prints the immutable valueRawCloudPackagewith attribute values.ImmutableRawCloudPackagewithResource(org.cloudfoundry.client.v3.packages.Package value)Copy the current immutable object by setting a value for theresourceattribute.-
Methods inherited from class com.sap.cloudfoundry.client.facade.adapters.RawCloudPackage
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.packages.Package getResource()
- Specified by:
getResourcein classRawCloudPackage- Returns:
- The value of the
resourceattribute
-
withResource
public final ImmutableRawCloudPackage withResource(org.cloudfoundry.client.v3.packages.Package 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 ofImmutableRawCloudPackagethat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:resource.
-
toString
public String toString()
Prints the immutable valueRawCloudPackagewith attribute values.
-
of
public static ImmutableRawCloudPackage of(org.cloudfoundry.client.v3.packages.Package resource)
Construct a new immutableRawCloudPackageinstance.- Parameters:
resource- The value for theresourceattribute- Returns:
- An immutable RawCloudPackage instance
-
copyOf
public static ImmutableRawCloudPackage copyOf(RawCloudPackage instance)
Creates an immutable copy of aRawCloudPackagevalue. 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 RawCloudPackage instance
-
builder
public static ImmutableRawCloudPackage.Builder builder()
Creates a builder forImmutableRawCloudPackage.ImmutableRawCloudPackage.builder() .resource(org.cloudfoundry.client.v3.packages.Package) // requiredresource.build();- Returns:
- A new ImmutableRawCloudPackage builder
-
-