Class ImmutableRawV3CloudServiceInstance
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.adapters.RawCloudEntity<CloudServiceInstance>
-
- com.sap.cloudfoundry.client.facade.adapters.RawV3CloudServiceInstance
-
- com.sap.cloudfoundry.client.facade.adapters.ImmutableRawV3CloudServiceInstance
-
- All Implemented Interfaces:
Derivable<CloudServiceInstance>
@Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableRawV3CloudServiceInstance extends RawV3CloudServiceInstance
Immutable implementation ofRawV3CloudServiceInstance.Use the builder to create immutable instances:
ImmutableRawV3CloudServiceInstance.builder(). Use the static factory method to create immutable instances:ImmutableRawV3CloudServiceInstance.of().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableRawV3CloudServiceInstance.BuilderBuilds instances of typeImmutableRawV3CloudServiceInstance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableRawV3CloudServiceInstance.Builderbuilder()Creates a builder forImmutableRawV3CloudServiceInstance.static ImmutableRawV3CloudServiceInstancecopyOf(RawV3CloudServiceInstance instance)Creates an immutable copy of aRawV3CloudServiceInstancevalue.booleanequals(Object another)This instance is equal to all instances ofImmutableRawV3CloudServiceInstancethat have equal attribute values.org.cloudfoundry.client.v3.serviceinstances.ServiceInstancegetServiceInstance()inthashCode()Computes a hash code from attributes:serviceInstance.static ImmutableRawV3CloudServiceInstanceof(org.cloudfoundry.client.v3.serviceinstances.ServiceInstance serviceInstance)Construct a new immutableRawV3CloudServiceInstanceinstance.StringtoString()Prints the immutable valueRawV3CloudServiceInstancewith attribute values.ImmutableRawV3CloudServiceInstancewithServiceInstance(org.cloudfoundry.client.v3.serviceinstances.ServiceInstance value)Copy the current immutable object by setting a value for theserviceInstanceattribute.-
Methods inherited from class com.sap.cloudfoundry.client.facade.adapters.RawV3CloudServiceInstance
derive
-
Methods inherited from class com.sap.cloudfoundry.client.facade.adapters.RawCloudEntity
derive, deriveFromNullable, parseDate, parseEnum, parseGuid, parseNullableDate, parseNullableGuid, parseResourceMetadata
-
-
-
-
Method Detail
-
getServiceInstance
public org.cloudfoundry.client.v3.serviceinstances.ServiceInstance getServiceInstance()
- Specified by:
getServiceInstancein classRawV3CloudServiceInstance- Returns:
- The value of the
serviceInstanceattribute
-
withServiceInstance
public final ImmutableRawV3CloudServiceInstance withServiceInstance(org.cloudfoundry.client.v3.serviceinstances.ServiceInstance value)
Copy the current immutable object by setting a value for theserviceInstanceattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for serviceInstance- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(Object another)
This instance is equal to all instances ofImmutableRawV3CloudServiceInstancethat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:serviceInstance.
-
toString
public String toString()
Prints the immutable valueRawV3CloudServiceInstancewith attribute values.
-
of
public static ImmutableRawV3CloudServiceInstance of(org.cloudfoundry.client.v3.serviceinstances.ServiceInstance serviceInstance)
Construct a new immutableRawV3CloudServiceInstanceinstance.- Parameters:
serviceInstance- The value for theserviceInstanceattribute- Returns:
- An immutable RawV3CloudServiceInstance instance
-
copyOf
public static ImmutableRawV3CloudServiceInstance copyOf(RawV3CloudServiceInstance instance)
Creates an immutable copy of aRawV3CloudServiceInstancevalue. 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 RawV3CloudServiceInstance instance
-
builder
public static ImmutableRawV3CloudServiceInstance.Builder builder()
Creates a builder forImmutableRawV3CloudServiceInstance.ImmutableRawV3CloudServiceInstance.builder() .serviceInstance(org.cloudfoundry.client.v3.serviceinstances.ServiceInstance) // requiredserviceInstance.build();- Returns:
- A new ImmutableRawV3CloudServiceInstance builder
-
-