Class ImmutableRawCloudServiceOffering
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.adapters.RawCloudEntity<CloudServiceOffering>
-
- com.sap.cloudfoundry.client.facade.adapters.RawCloudServiceOffering
-
- com.sap.cloudfoundry.client.facade.adapters.ImmutableRawCloudServiceOffering
-
- All Implemented Interfaces:
Derivable<CloudServiceOffering>
@Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableRawCloudServiceOffering extends RawCloudServiceOffering
Immutable implementation ofRawCloudServiceOffering.Use the builder to create immutable instances:
ImmutableRawCloudServiceOffering.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableRawCloudServiceOffering.BuilderBuilds instances of typeImmutableRawCloudServiceOffering.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableRawCloudServiceOffering.Builderbuilder()Creates a builder forImmutableRawCloudServiceOffering.static ImmutableRawCloudServiceOfferingcopyOf(RawCloudServiceOffering instance)Creates an immutable copy of aRawCloudServiceOfferingvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableRawCloudServiceOfferingthat have equal attribute values.org.cloudfoundry.client.v3.serviceofferings.ServiceOfferingResourcegetServiceOffering()List<Derivable<CloudServicePlan>>getServicePlans()inthashCode()Computes a hash code from attributes:serviceOffering,servicePlans.StringtoString()Prints the immutable valueRawCloudServiceOfferingwith attribute values.ImmutableRawCloudServiceOfferingwithServiceOffering(org.cloudfoundry.client.v3.serviceofferings.ServiceOfferingResource value)Copy the current immutable object by setting a value for theserviceOfferingattribute.ImmutableRawCloudServiceOfferingwithServicePlans(Derivable<CloudServicePlan>... elements)Copy the current immutable object with elements that replace the content ofservicePlans.ImmutableRawCloudServiceOfferingwithServicePlans(Iterable<? extends Derivable<CloudServicePlan>> elements)Copy the current immutable object with elements that replace the content ofservicePlans.-
Methods inherited from class com.sap.cloudfoundry.client.facade.adapters.RawCloudServiceOffering
derive
-
Methods inherited from class com.sap.cloudfoundry.client.facade.adapters.RawCloudEntity
derive, deriveFromNullable, parseDate, parseEnum, parseGuid, parseNullableDate, parseNullableGuid, parseResourceMetadata
-
-
-
-
Method Detail
-
getServiceOffering
public org.cloudfoundry.client.v3.serviceofferings.ServiceOfferingResource getServiceOffering()
- Specified by:
getServiceOfferingin classRawCloudServiceOffering- Returns:
- The value of the
serviceOfferingattribute
-
getServicePlans
public List<Derivable<CloudServicePlan>> getServicePlans()
- Specified by:
getServicePlansin classRawCloudServiceOffering- Returns:
- The value of the
servicePlansattribute
-
withServiceOffering
public final ImmutableRawCloudServiceOffering withServiceOffering(org.cloudfoundry.client.v3.serviceofferings.ServiceOfferingResource value)
Copy the current immutable object by setting a value for theserviceOfferingattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for serviceOffering- Returns:
- A modified copy of the
thisobject
-
withServicePlans
@SafeVarargs public final ImmutableRawCloudServiceOffering withServicePlans(Derivable<CloudServicePlan>... elements)
Copy the current immutable object with elements that replace the content ofservicePlans.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withServicePlans
public final ImmutableRawCloudServiceOffering withServicePlans(Iterable<? extends Derivable<CloudServicePlan>> elements)
Copy the current immutable object with elements that replace the content ofservicePlans. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of servicePlans elements to set- Returns:
- A modified copy of
thisobject
-
equals
public boolean equals(Object another)
This instance is equal to all instances ofImmutableRawCloudServiceOfferingthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:serviceOffering,servicePlans.
-
toString
public String toString()
Prints the immutable valueRawCloudServiceOfferingwith attribute values.
-
copyOf
public static ImmutableRawCloudServiceOffering copyOf(RawCloudServiceOffering instance)
Creates an immutable copy of aRawCloudServiceOfferingvalue. 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 RawCloudServiceOffering instance
-
builder
public static ImmutableRawCloudServiceOffering.Builder builder()
Creates a builder forImmutableRawCloudServiceOffering.ImmutableRawCloudServiceOffering.builder() .serviceOffering(org.cloudfoundry.client.v3.serviceofferings.ServiceOfferingResource) // requiredserviceOffering.addServicePlan|addAllServicePlans(com.sap.cloudfoundry.client.facade.domain.Derivable<com.sap.cloudfoundry.client.facade.domain.CloudServicePlan>) //servicePlanselements .build();- Returns:
- A new ImmutableRawCloudServiceOffering builder
-
-