Class ImmutableRawCloudServiceInstance
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.adapters.RawCloudEntity<CloudServiceInstance>
-
- com.sap.cloudfoundry.client.facade.adapters.RawCloudServiceInstance
-
- com.sap.cloudfoundry.client.facade.adapters.ImmutableRawCloudServiceInstance
-
- All Implemented Interfaces:
Derivable<CloudServiceInstance>
@Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableRawCloudServiceInstance extends RawCloudServiceInstance
Immutable implementation ofRawCloudServiceInstance.Use the builder to create immutable instances:
ImmutableRawCloudServiceInstance.builder(). Use the static factory method to create immutable instances:ImmutableRawCloudServiceInstance.of().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableRawCloudServiceInstance.BuilderBuilds instances of typeImmutableRawCloudServiceInstance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableRawCloudServiceInstance.Builderbuilder()Creates a builder forImmutableRawCloudServiceInstance.static ImmutableRawCloudServiceInstancecopyOf(RawCloudServiceInstance instance)Creates an immutable copy of aRawCloudServiceInstancevalue.booleanequals(Object another)This instance is equal to all instances ofImmutableRawCloudServiceInstancethat have equal attribute values.org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.serviceinstances.UnionServiceInstanceEntity>getResource()org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.serviceplans.ServicePlanEntity>getServicePlanResource()org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.services.ServiceEntity>getServiceResource()inthashCode()Computes a hash code from attributes:resource,servicePlanResource,serviceResource.static ImmutableRawCloudServiceInstanceof(org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.serviceinstances.UnionServiceInstanceEntity> resource)Construct a new immutableRawCloudServiceInstanceinstance.StringtoString()Prints the immutable valueRawCloudServiceInstancewith attribute values.ImmutableRawCloudServiceInstancewithResource(org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.serviceinstances.UnionServiceInstanceEntity> value)Copy the current immutable object by setting a value for theresourceattribute.ImmutableRawCloudServiceInstancewithServicePlanResource(org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.serviceplans.ServicePlanEntity> value)Copy the current immutable object by setting a value for theservicePlanResourceattribute.ImmutableRawCloudServiceInstancewithServiceResource(org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.services.ServiceEntity> value)Copy the current immutable object by setting a value for theserviceResourceattribute.-
Methods inherited from class com.sap.cloudfoundry.client.facade.adapters.RawCloudServiceInstance
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.serviceinstances.UnionServiceInstanceEntity> getResource()
- Specified by:
getResourcein classRawCloudServiceInstance- Returns:
- The value of the
resourceattribute
-
getServicePlanResource
public org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.serviceplans.ServicePlanEntity> getServicePlanResource()
- Specified by:
getServicePlanResourcein classRawCloudServiceInstance- Returns:
- The value of the
servicePlanResourceattribute
-
getServiceResource
public org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.services.ServiceEntity> getServiceResource()
- Specified by:
getServiceResourcein classRawCloudServiceInstance- Returns:
- The value of the
serviceResourceattribute
-
withResource
public final ImmutableRawCloudServiceInstance withResource(org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.serviceinstances.UnionServiceInstanceEntity> 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
-
withServicePlanResource
public final ImmutableRawCloudServiceInstance withServicePlanResource(org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.serviceplans.ServicePlanEntity> value)
Copy the current immutable object by setting a value for theservicePlanResourceattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for servicePlanResource (can benull)- Returns:
- A modified copy of the
thisobject
-
withServiceResource
public final ImmutableRawCloudServiceInstance withServiceResource(org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.services.ServiceEntity> value)
Copy the current immutable object by setting a value for theserviceResourceattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for serviceResource (can benull)- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(Object another)
This instance is equal to all instances ofImmutableRawCloudServiceInstancethat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:resource,servicePlanResource,serviceResource.
-
toString
public String toString()
Prints the immutable valueRawCloudServiceInstancewith attribute values.
-
of
public static ImmutableRawCloudServiceInstance of(org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.serviceinstances.UnionServiceInstanceEntity> resource)
Construct a new immutableRawCloudServiceInstanceinstance.- Parameters:
resource- The value for theresourceattribute- Returns:
- An immutable RawCloudServiceInstance instance
-
copyOf
public static ImmutableRawCloudServiceInstance copyOf(RawCloudServiceInstance instance)
Creates an immutable copy of aRawCloudServiceInstancevalue. 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 RawCloudServiceInstance instance
-
builder
public static ImmutableRawCloudServiceInstance.Builder builder()
Creates a builder forImmutableRawCloudServiceInstance.ImmutableRawCloudServiceInstance.builder() .resource(org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.serviceinstances.UnionServiceInstanceEntity>) // requiredresource.servicePlanResource(org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.serviceplans.ServicePlanEntity> | null) // nullableservicePlanResource.serviceResource(org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.services.ServiceEntity> | null) // nullableserviceResource.build();- Returns:
- A new ImmutableRawCloudServiceInstance builder
-
-