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.v2.Resource<org.cloudfoundry.client.v2.servicebindings.ServiceBindingEntity>getResource()inthashCode()Computes a hash code from attributes:resource.static ImmutableRawCloudServiceBindingof(org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.servicebindings.ServiceBindingEntity> resource)Construct a new immutableRawCloudServiceBindinginstance.StringtoString()Prints the immutable valueRawCloudServiceBindingwith attribute values.ImmutableRawCloudServiceBindingwithResource(org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.servicebindings.ServiceBindingEntity> value)Copy the current immutable object by setting a value for theresourceattribute.-
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, parseResourceMetadata
-
-
-
-
Method Detail
-
getResource
public org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.servicebindings.ServiceBindingEntity> getResource()
- Specified by:
getResourcein classRawCloudServiceBinding- Returns:
- The value of the
resourceattribute
-
withResource
public final ImmutableRawCloudServiceBinding withResource(org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.servicebindings.ServiceBindingEntity> 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 ofImmutableRawCloudServiceBindingthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:resource.
-
toString
public String toString()
Prints the immutable valueRawCloudServiceBindingwith attribute values.
-
of
public static ImmutableRawCloudServiceBinding of(org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.servicebindings.ServiceBindingEntity> resource)
Construct a new immutableRawCloudServiceBindinginstance.- Parameters:
resource- The value for theresourceattribute- 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() .resource(org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.servicebindings.ServiceBindingEntity>) // requiredresource.build();- Returns:
- A new ImmutableRawCloudServiceBinding builder
-
-