Class ImmutableRawCloudServiceBinding
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.adapters.RawCloudEntity<CloudServiceBinding>
-
- com.sap.cloudfoundry.client.facade.adapters.RawCloudServiceBinding
-
- com.sap.cloudfoundry.client.facade.adapters.ImmutableRawCloudServiceBinding
-
- All Implemented Interfaces:
Derivable<CloudServiceBinding>
@Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableRawCloudServiceBinding extends RawCloudServiceBinding
Immutable implementation ofRawCloudServiceBinding.Use the builder to create immutable instances:
ImmutableRawCloudServiceBinding.builder(). Use the static factory method to create immutable instances:ImmutableRawCloudServiceBinding.of().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableRawCloudServiceBinding.BuilderBuilds instances of typeImmutableRawCloudServiceBinding.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableRawCloudServiceBinding.Builderbuilder()Creates a builder forImmutableRawCloudServiceBinding.static ImmutableRawCloudServiceBindingcopyOf(RawCloudServiceBinding instance)Creates an immutable copy of aRawCloudServiceBindingvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableRawCloudServiceBindingthat have equal attribute values.org.cloudfoundry.client.v3.servicebindings.ServiceBindingResourcegetServiceBinding()inthashCode()Computes a hash code from attributes:serviceBinding.static ImmutableRawCloudServiceBindingof(org.cloudfoundry.client.v3.servicebindings.ServiceBindingResource serviceBinding)Construct a new immutableRawCloudServiceBindinginstance.StringtoString()Prints the immutable valueRawCloudServiceBindingwith attribute values.ImmutableRawCloudServiceBindingwithServiceBinding(org.cloudfoundry.client.v3.servicebindings.ServiceBindingResource value)Copy the current immutable object by setting a value for theserviceBindingattribute.-
Methods inherited from class com.sap.cloudfoundry.client.facade.adapters.RawCloudServiceBinding
derive
-
Methods inherited from class com.sap.cloudfoundry.client.facade.adapters.RawCloudEntity
derive, deriveFromNullable, parseDate, parseEnum, parseGuid, parseNullableDate, parseNullableGuid, parseResourceMetadata
-
-
-
-
Method Detail
-
getServiceBinding
public org.cloudfoundry.client.v3.servicebindings.ServiceBindingResource getServiceBinding()
- Specified by:
getServiceBindingin classRawCloudServiceBinding- Returns:
- The value of the
serviceBindingattribute
-
withServiceBinding
public final ImmutableRawCloudServiceBinding withServiceBinding(org.cloudfoundry.client.v3.servicebindings.ServiceBindingResource value)
Copy the current immutable object by setting a value for theserviceBindingattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for serviceBinding- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(Object another)
This instance is equal to all instances ofImmutableRawCloudServiceBindingthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:serviceBinding.
-
toString
public String toString()
Prints the immutable valueRawCloudServiceBindingwith attribute values.
-
of
public static ImmutableRawCloudServiceBinding of(org.cloudfoundry.client.v3.servicebindings.ServiceBindingResource serviceBinding)
Construct a new immutableRawCloudServiceBindinginstance.- Parameters:
serviceBinding- The value for theserviceBindingattribute- Returns:
- An immutable RawCloudServiceBinding instance
-
copyOf
public static ImmutableRawCloudServiceBinding copyOf(RawCloudServiceBinding instance)
Creates an immutable copy of aRawCloudServiceBindingvalue. 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 RawCloudServiceBinding instance
-
builder
public static ImmutableRawCloudServiceBinding.Builder builder()
Creates a builder forImmutableRawCloudServiceBinding.ImmutableRawCloudServiceBinding.builder() .serviceBinding(org.cloudfoundry.client.v3.servicebindings.ServiceBindingResource) // requiredserviceBinding.build();- Returns:
- A new ImmutableRawCloudServiceBinding builder
-
-