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()Map<String,Object>getBindingOptions()Map<String,Object>getCredentials()CloudMetadatagetMetadata()StringgetName()StringgetSyslogDrainUrl()org.cloudfoundry.client.v3.MetadatagetV3Metadata()inthashCode()Computes a hash code from attributes:name,metadata,v3Metadata,applicationGuid,bindingOptions,credentials,syslogDrainUrl.StringtoString()Prints the immutable valueCloudServiceBindingwith attribute values.ImmutableCloudServiceBindingwithApplicationGuid(UUID value)Copy the current immutable object by setting a value for theapplicationGuidattribute.ImmutableCloudServiceBindingwithBindingOptions(Map<String,? extends Object> entries)Copy the current immutable object by replacing thebindingOptionsmap with the specified map.ImmutableCloudServiceBindingwithCredentials(Map<String,? extends Object> entries)Copy the current immutable object by replacing thecredentialsmap with the specified map.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.ImmutableCloudServiceBindingwithSyslogDrainUrl(String value)Copy the current immutable object by setting a value for thesyslogDrainUrlattribute.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
-
getBindingOptions
public Map<String,Object> getBindingOptions()
- Specified by:
getBindingOptionsin classCloudServiceBinding- Returns:
- The value of the
bindingOptionsattribute
-
getCredentials
public Map<String,Object> getCredentials()
- Specified by:
getCredentialsin classCloudServiceBinding- Returns:
- The value of the
credentialsattribute
-
getSyslogDrainUrl
public String getSyslogDrainUrl()
- Specified by:
getSyslogDrainUrlin classCloudServiceBinding- Returns:
- The value of the
syslogDrainUrlattribute
-
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- Returns:
- A modified copy of the
thisobject
-
withBindingOptions
public final ImmutableCloudServiceBinding withBindingOptions(Map<String,? extends Object> entries)
Copy the current immutable object by replacing thebindingOptionsmap with the specified map. Nulls are not permitted as keys or values. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
entries- The entries to be added to the bindingOptions map- Returns:
- A modified copy of
thisobject
-
withCredentials
public final ImmutableCloudServiceBinding withCredentials(Map<String,? extends Object> entries)
Copy the current immutable object by replacing thecredentialsmap with the specified map. Nulls are not permitted as keys or values. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
entries- The entries to be added to the credentials map- Returns:
- A modified copy of
thisobject
-
withSyslogDrainUrl
public final ImmutableCloudServiceBinding withSyslogDrainUrl(String value)
Copy the current immutable object by setting a value for thesyslogDrainUrlattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for syslogDrainUrl (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,bindingOptions,credentials,syslogDrainUrl.
-
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) // requiredapplicationGuid.bindingOptions(Map<String, Object> | null) // nullablebindingOptions.credentials(Map<String, Object> | null) // nullablecredentials.syslogDrainUrl(String | null) // nullablesyslogDrainUrl.build();- Returns:
- A new ImmutableCloudServiceBinding builder
-
-