Class ImmutableCloudServiceKey
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.domain.CloudEntity
-
- com.sap.cloudfoundry.client.facade.domain.CloudServiceKey
-
- com.sap.cloudfoundry.client.facade.domain.ImmutableCloudServiceKey
-
- All Implemented Interfaces:
Derivable<CloudServiceKey>
@Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableCloudServiceKey extends CloudServiceKey
Immutable implementation ofCloudServiceKey.Use the builder to create immutable instances:
ImmutableCloudServiceKey.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableCloudServiceKey.BuilderBuilds instances of typeImmutableCloudServiceKey.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableCloudServiceKey.Builderbuilder()Creates a builder forImmutableCloudServiceKey.static ImmutableCloudServiceKeycopyOf(CloudServiceKey instance)Creates an immutable copy of aCloudServiceKeyvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableCloudServiceKeythat have equal attribute values.Map<String,Object>getCredentials()CloudMetadatagetMetadata()StringgetName()CloudServiceInstancegetServiceInstance()ServiceCredentialBindingOperationgetServiceKeyOperation()org.cloudfoundry.client.v3.MetadatagetV3Metadata()inthashCode()Computes a hash code from attributes:name,metadata,v3Metadata,credentials,serviceInstance,serviceKeyOperation.StringtoString()Prints the immutable valueCloudServiceKeywith attribute values.ImmutableCloudServiceKeywithCredentials(Map<String,? extends Object> entries)Copy the current immutable object by replacing thecredentialsmap with the specified map.ImmutableCloudServiceKeywithMetadata(CloudMetadata value)Copy the current immutable object by setting a value for themetadataattribute.ImmutableCloudServiceKeywithName(String value)Copy the current immutable object by setting a value for thenameattribute.ImmutableCloudServiceKeywithServiceInstance(CloudServiceInstance value)Copy the current immutable object by setting a value for theserviceInstanceattribute.ImmutableCloudServiceKeywithServiceKeyOperation(ServiceCredentialBindingOperation value)Copy the current immutable object by setting a value for theserviceKeyOperationattribute.ImmutableCloudServiceKeywithV3Metadata(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.CloudServiceKey
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
-
getCredentials
public Map<String,Object> getCredentials()
- Specified by:
getCredentialsin classCloudServiceKey- Returns:
- The value of the
credentialsattribute
-
getServiceInstance
public CloudServiceInstance getServiceInstance()
- Specified by:
getServiceInstancein classCloudServiceKey- Returns:
- The value of the
serviceInstanceattribute
-
getServiceKeyOperation
public ServiceCredentialBindingOperation getServiceKeyOperation()
- Specified by:
getServiceKeyOperationin classCloudServiceKey- Returns:
- The value of the
serviceKeyOperationattribute
-
withName
public final ImmutableCloudServiceKey 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 ImmutableCloudServiceKey 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 ImmutableCloudServiceKey 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
-
withCredentials
public final ImmutableCloudServiceKey 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
-
withServiceInstance
public final ImmutableCloudServiceKey withServiceInstance(CloudServiceInstance 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 (can benull)- Returns:
- A modified copy of the
thisobject
-
withServiceKeyOperation
public final ImmutableCloudServiceKey withServiceKeyOperation(ServiceCredentialBindingOperation value)
Copy the current immutable object by setting a value for theserviceKeyOperationattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for serviceKeyOperation (can benull)- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(Object another)
This instance is equal to all instances ofImmutableCloudServiceKeythat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:name,metadata,v3Metadata,credentials,serviceInstance,serviceKeyOperation.
-
toString
public String toString()
Prints the immutable valueCloudServiceKeywith attribute values.
-
copyOf
public static ImmutableCloudServiceKey copyOf(CloudServiceKey instance)
Creates an immutable copy of aCloudServiceKeyvalue. 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 CloudServiceKey instance
-
builder
public static ImmutableCloudServiceKey.Builder builder()
Creates a builder forImmutableCloudServiceKey.ImmutableCloudServiceKey.builder() .name(String | null) // nullablename.metadata(com.sap.cloudfoundry.client.facade.domain.CloudMetadata | null) // nullablemetadata.v3Metadata(org.cloudfoundry.client.v3.Metadata | null) // nullablev3Metadata.credentials(Map<String, Object> | null) // nullablecredentials.serviceInstance(com.sap.cloudfoundry.client.facade.domain.CloudServiceInstance | null) // nullableserviceInstance.serviceKeyOperation(com.sap.cloudfoundry.client.facade.domain.ServiceCredentialBindingOperation | null) // nullableserviceKeyOperation.build();- Returns:
- A new ImmutableCloudServiceKey builder
-
-