Class ImmutableRawCloudServicePlan
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.adapters.RawCloudEntity<CloudServicePlan>
-
- com.sap.cloudfoundry.client.facade.adapters.RawCloudServicePlan
-
- com.sap.cloudfoundry.client.facade.adapters.ImmutableRawCloudServicePlan
-
- All Implemented Interfaces:
Derivable<CloudServicePlan>
@Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableRawCloudServicePlan extends RawCloudServicePlan
Immutable implementation ofRawCloudServicePlan.Use the builder to create immutable instances:
ImmutableRawCloudServicePlan.builder(). Use the static factory method to create immutable instances:ImmutableRawCloudServicePlan.of().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableRawCloudServicePlan.BuilderBuilds instances of typeImmutableRawCloudServicePlan.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableRawCloudServicePlan.Builderbuilder()Creates a builder forImmutableRawCloudServicePlan.static ImmutableRawCloudServicePlancopyOf(RawCloudServicePlan instance)Creates an immutable copy of aRawCloudServicePlanvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableRawCloudServicePlanthat have equal attribute values.org.cloudfoundry.client.v3.serviceplans.ServicePlangetResource()inthashCode()Computes a hash code from attributes:resource.static ImmutableRawCloudServicePlanof(org.cloudfoundry.client.v3.serviceplans.ServicePlan resource)Construct a new immutableRawCloudServicePlaninstance.StringtoString()Prints the immutable valueRawCloudServicePlanwith attribute values.ImmutableRawCloudServicePlanwithResource(org.cloudfoundry.client.v3.serviceplans.ServicePlan value)Copy the current immutable object by setting a value for theresourceattribute.-
Methods inherited from class com.sap.cloudfoundry.client.facade.adapters.RawCloudServicePlan
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.serviceplans.ServicePlan getResource()
- Specified by:
getResourcein classRawCloudServicePlan- Returns:
- The value of the
resourceattribute
-
withResource
public final ImmutableRawCloudServicePlan withResource(org.cloudfoundry.client.v3.serviceplans.ServicePlan 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 ofImmutableRawCloudServicePlanthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:resource.
-
toString
public String toString()
Prints the immutable valueRawCloudServicePlanwith attribute values.
-
of
public static ImmutableRawCloudServicePlan of(org.cloudfoundry.client.v3.serviceplans.ServicePlan resource)
Construct a new immutableRawCloudServicePlaninstance.- Parameters:
resource- The value for theresourceattribute- Returns:
- An immutable RawCloudServicePlan instance
-
copyOf
public static ImmutableRawCloudServicePlan copyOf(RawCloudServicePlan instance)
Creates an immutable copy of aRawCloudServicePlanvalue. 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 RawCloudServicePlan instance
-
builder
public static ImmutableRawCloudServicePlan.Builder builder()
Creates a builder forImmutableRawCloudServicePlan.ImmutableRawCloudServicePlan.builder() .resource(org.cloudfoundry.client.v3.serviceplans.ServicePlan) // requiredresource.build();- Returns:
- A new ImmutableRawCloudServicePlan builder
-
-