Class ImmutableRawCloudServiceKey
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.adapters.RawCloudEntity<CloudServiceKey>
-
- com.sap.cloudfoundry.client.facade.adapters.RawCloudServiceKey
-
- com.sap.cloudfoundry.client.facade.adapters.ImmutableRawCloudServiceKey
-
- All Implemented Interfaces:
Derivable<CloudServiceKey>
@Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableRawCloudServiceKey extends RawCloudServiceKey
Immutable implementation ofRawCloudServiceKey.Use the builder to create immutable instances:
ImmutableRawCloudServiceKey.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableRawCloudServiceKey.BuilderBuilds instances of typeImmutableRawCloudServiceKey.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableRawCloudServiceKey.Builderbuilder()Creates a builder forImmutableRawCloudServiceKey.static ImmutableRawCloudServiceKeycopyOf(RawCloudServiceKey instance)Creates an immutable copy of aRawCloudServiceKeyvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableRawCloudServiceKeythat have equal attribute values.Map<String,Object>getCredentials()org.cloudfoundry.client.v3.servicebindings.ServiceBindingResourcegetServiceBindingResource()Derivable<CloudServiceInstance>getServiceInstance()inthashCode()Computes a hash code from attributes:serviceBindingResource,credentials,serviceInstance.StringtoString()Prints the immutable valueRawCloudServiceKeywith attribute values.ImmutableRawCloudServiceKeywithCredentials(Map<String,? extends Object> entries)Copy the current immutable object by replacing thecredentialsmap with the specified map.ImmutableRawCloudServiceKeywithServiceBindingResource(org.cloudfoundry.client.v3.servicebindings.ServiceBindingResource value)Copy the current immutable object by setting a value for theserviceBindingResourceattribute.ImmutableRawCloudServiceKeywithServiceInstance(Derivable<CloudServiceInstance> value)Copy the current immutable object by setting a value for theserviceInstanceattribute.-
Methods inherited from class com.sap.cloudfoundry.client.facade.adapters.RawCloudServiceKey
derive
-
Methods inherited from class com.sap.cloudfoundry.client.facade.adapters.RawCloudEntity
derive, deriveFromNullable, parseDate, parseEnum, parseGuid, parseNullableDate, parseNullableGuid, parseResourceMetadata
-
-
-
-
Method Detail
-
getServiceBindingResource
public org.cloudfoundry.client.v3.servicebindings.ServiceBindingResource getServiceBindingResource()
- Specified by:
getServiceBindingResourcein classRawCloudServiceKey- Returns:
- The value of the
serviceBindingResourceattribute
-
getCredentials
public Map<String,Object> getCredentials()
- Specified by:
getCredentialsin classRawCloudServiceKey- Returns:
- The value of the
credentialsattribute
-
getServiceInstance
public Derivable<CloudServiceInstance> getServiceInstance()
- Specified by:
getServiceInstancein classRawCloudServiceKey- Returns:
- The value of the
serviceInstanceattribute
-
withServiceBindingResource
public final ImmutableRawCloudServiceKey withServiceBindingResource(org.cloudfoundry.client.v3.servicebindings.ServiceBindingResource value)
Copy the current immutable object by setting a value for theserviceBindingResourceattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for serviceBindingResource- Returns:
- A modified copy of the
thisobject
-
withCredentials
public final ImmutableRawCloudServiceKey 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 ImmutableRawCloudServiceKey withServiceInstance(Derivable<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- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(Object another)
This instance is equal to all instances ofImmutableRawCloudServiceKeythat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:serviceBindingResource,credentials,serviceInstance.
-
toString
public String toString()
Prints the immutable valueRawCloudServiceKeywith attribute values.
-
copyOf
public static ImmutableRawCloudServiceKey copyOf(RawCloudServiceKey instance)
Creates an immutable copy of aRawCloudServiceKeyvalue. 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 RawCloudServiceKey instance
-
builder
public static ImmutableRawCloudServiceKey.Builder builder()
Creates a builder forImmutableRawCloudServiceKey.ImmutableRawCloudServiceKey.builder() .serviceBindingResource(org.cloudfoundry.client.v3.servicebindings.ServiceBindingResource) // requiredserviceBindingResource.credentials(Map<String, Object> | null) // nullablecredentials.serviceInstance(com.sap.cloudfoundry.client.facade.domain.Derivable<com.sap.cloudfoundry.client.facade.domain.CloudServiceInstance>) // requiredserviceInstance.build();- Returns:
- A new ImmutableRawCloudServiceKey builder
-
-