Class ImmutableCloudServiceBinding
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.domain.CloudEntity
-
- com.sap.cloudfoundry.client.facade.domain.CloudServiceBinding
-
- com.sap.cloudfoundry.client.facade.domain.ImmutableCloudServiceBinding
-
- All Implemented Interfaces:
Derivable<CloudServiceBinding>
@Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableCloudServiceBinding extends CloudServiceBinding
Immutable implementation ofCloudServiceBinding.Use the builder to create immutable instances:
ImmutableCloudServiceBinding.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableCloudServiceBinding.BuilderBuilds instances of typeImmutableCloudServiceBinding.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableCloudServiceBinding.Builderbuilder()Creates a builder forImmutableCloudServiceBinding.static ImmutableCloudServiceBindingcopyOf(CloudServiceBinding instance)Creates an immutable copy of aCloudServiceBindingvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableCloudServiceBindingthat have equal attribute values.UUIDgetApplicationGuid()CloudMetadatagetMetadata()StringgetName()ServiceCredentialBindingOperationgetServiceBindingOperation()UUIDgetServiceInstanceGuid()org.cloudfoundry.client.v3.MetadatagetV3Metadata()inthashCode()Computes a hash code from attributes:name,metadata,v3Metadata,applicationGuid,serviceInstanceGuid,serviceBindingOperation.StringtoString()Prints the immutable valueCloudServiceBindingwith attribute values.ImmutableCloudServiceBindingwithApplicationGuid(UUID value)Copy the current immutable object by setting a value for theapplicationGuidattribute.ImmutableCloudServiceBindingwithMetadata(CloudMetadata value)Copy the current immutable object by setting a value for themetadataattribute.ImmutableCloudServiceBindingwithName(String value)Copy the current immutable object by setting a value for thenameattribute.ImmutableCloudServiceBindingwithServiceBindingOperation(ServiceCredentialBindingOperation value)Copy the current immutable object by setting a value for theserviceBindingOperationattribute.ImmutableCloudServiceBindingwithServiceInstanceGuid(UUID value)Copy the current immutable object by setting a value for theserviceInstanceGuidattribute.ImmutableCloudServiceBindingwithV3Metadata(org.cloudfoundry.client.v3.Metadata value)Copy the current immutable object by setting a value for thev3Metadataattribute.-
Methods inherited from class com.sap.cloudfoundry.client.facade.domain.CloudServiceBinding
derive
-
Methods inherited from class com.sap.cloudfoundry.client.facade.domain.CloudEntity
getGuid
-
-
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein classCloudEntity- Returns:
- The value of the
nameattribute
-
getMetadata
public CloudMetadata getMetadata()
- Specified by:
getMetadatain classCloudEntity- Returns:
- The value of the
metadataattribute
-
getV3Metadata
public org.cloudfoundry.client.v3.Metadata getV3Metadata()
- Specified by:
getV3Metadatain classCloudEntity- Returns:
- The value of the
v3Metadataattribute
-
getApplicationGuid
public UUID getApplicationGuid()
- Specified by:
getApplicationGuidin classCloudServiceBinding- Returns:
- The value of the
applicationGuidattribute
-
getServiceInstanceGuid
public UUID getServiceInstanceGuid()
- Specified by:
getServiceInstanceGuidin classCloudServiceBinding- Returns:
- The value of the
serviceInstanceGuidattribute
-
getServiceBindingOperation
public ServiceCredentialBindingOperation getServiceBindingOperation()
- Specified by:
getServiceBindingOperationin classCloudServiceBinding- Returns:
- The value of the
serviceBindingOperationattribute
-
withName
public final ImmutableCloudServiceBinding withName(String value)
Copy the current immutable object by setting a value for thenameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for name (can benull)- Returns:
- A modified copy of the
thisobject
-
withMetadata
public final ImmutableCloudServiceBinding withMetadata(CloudMetadata value)
Copy the current immutable object by setting a value for themetadataattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for metadata (can benull)- Returns:
- A modified copy of the
thisobject
-
withV3Metadata
public final ImmutableCloudServiceBinding withV3Metadata(org.cloudfoundry.client.v3.Metadata value)
Copy the current immutable object by setting a value for thev3Metadataattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for v3Metadata (can benull)- Returns:
- A modified copy of the
thisobject
-
withApplicationGuid
public final ImmutableCloudServiceBinding withApplicationGuid(UUID value)
Copy the current immutable object by setting a value for theapplicationGuidattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for applicationGuid (can benull)- Returns:
- A modified copy of the
thisobject
-
withServiceInstanceGuid
public final ImmutableCloudServiceBinding withServiceInstanceGuid(UUID value)
Copy the current immutable object by setting a value for theserviceInstanceGuidattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for serviceInstanceGuid- Returns:
- A modified copy of the
thisobject
-
withServiceBindingOperation
public final ImmutableCloudServiceBinding withServiceBindingOperation(ServiceCredentialBindingOperation value)
Copy the current immutable object by setting a value for theserviceBindingOperationattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for serviceBindingOperation (can benull)- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(Object another)
This instance is equal to all instances ofImmutableCloudServiceBindingthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:name,metadata,v3Metadata,applicationGuid,serviceInstanceGuid,serviceBindingOperation.
-
toString
public String toString()
Prints the immutable valueCloudServiceBindingwith attribute values.
-
copyOf
public static ImmutableCloudServiceBinding copyOf(CloudServiceBinding instance)
Creates an immutable copy of aCloudServiceBindingvalue. 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 CloudServiceBinding instance
-
builder
public static ImmutableCloudServiceBinding.Builder builder()
Creates a builder forImmutableCloudServiceBinding.ImmutableCloudServiceBinding.builder() .name(String | null) // nullablename.metadata(com.sap.cloudfoundry.client.facade.domain.CloudMetadata | null) // nullablemetadata.v3Metadata(org.cloudfoundry.client.v3.Metadata | null) // nullablev3Metadata.applicationGuid(UUID | null) // nullableapplicationGuid.serviceInstanceGuid(UUID) // requiredserviceInstanceGuid.serviceBindingOperation(com.sap.cloudfoundry.client.facade.domain.ServiceCredentialBindingOperation | null) // nullableserviceBindingOperation.build();- Returns:
- A new ImmutableCloudServiceBinding builder
-
-