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.org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.servicekeys.ServiceKeyEntity>getResource()Derivable<CloudServiceInstance>getServiceInstance()inthashCode()Computes a hash code from attributes:resource,serviceInstance.StringtoString()Prints the immutable valueRawCloudServiceKeywith attribute values.ImmutableRawCloudServiceKeywithResource(org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.servicekeys.ServiceKeyEntity> value)Copy the current immutable object by setting a value for theresourceattribute.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, parseResourceMetadata
-
-
-
-
Method Detail
-
getResource
public org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.servicekeys.ServiceKeyEntity> getResource()
- Specified by:
getResourcein classRawCloudServiceKey- Returns:
- The value of the
resourceattribute
-
getServiceInstance
public Derivable<CloudServiceInstance> getServiceInstance()
- Specified by:
getServiceInstancein classRawCloudServiceKey- Returns:
- The value of the
serviceInstanceattribute
-
withResource
public final ImmutableRawCloudServiceKey withResource(org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.servicekeys.ServiceKeyEntity> 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
-
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:resource,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() .resource(org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.servicekeys.ServiceKeyEntity>) // requiredresource.serviceInstance(com.sap.cloudfoundry.client.facade.domain.Derivable<com.sap.cloudfoundry.client.facade.domain.CloudServiceInstance>) // requiredserviceInstance.build();- Returns:
- A new ImmutableRawCloudServiceKey builder
-
-