Class ImmutableRawCloudSpace
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.adapters.RawCloudEntity<CloudSpace>
-
- com.sap.cloudfoundry.client.facade.adapters.RawCloudSpace
-
- com.sap.cloudfoundry.client.facade.adapters.ImmutableRawCloudSpace
-
- All Implemented Interfaces:
Derivable<CloudSpace>
@Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableRawCloudSpace extends RawCloudSpace
Immutable implementation ofRawCloudSpace.Use the builder to create immutable instances:
ImmutableRawCloudSpace.builder(). Use the static factory method to create immutable instances:ImmutableRawCloudSpace.of().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableRawCloudSpace.BuilderBuilds instances of typeImmutableRawCloudSpace.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableRawCloudSpace.Builderbuilder()Creates a builder forImmutableRawCloudSpace.static ImmutableRawCloudSpacecopyOf(RawCloudSpace instance)Creates an immutable copy of aRawCloudSpacevalue.booleanequals(Object another)This instance is equal to all instances ofImmutableRawCloudSpacethat have equal attribute values.Derivable<CloudOrganization>getOrganization()org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.spaces.SpaceEntity>getResource()inthashCode()Computes a hash code from attributes:resource,organization.static ImmutableRawCloudSpaceof(org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.spaces.SpaceEntity> resource)Construct a new immutableRawCloudSpaceinstance.StringtoString()Prints the immutable valueRawCloudSpacewith attribute values.ImmutableRawCloudSpacewithOrganization(Derivable<CloudOrganization> value)Copy the current immutable object by setting a value for theorganizationattribute.ImmutableRawCloudSpacewithResource(org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.spaces.SpaceEntity> value)Copy the current immutable object by setting a value for theresourceattribute.-
Methods inherited from class com.sap.cloudfoundry.client.facade.adapters.RawCloudSpace
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.spaces.SpaceEntity> getResource()
- Specified by:
getResourcein classRawCloudSpace- Returns:
- The value of the
resourceattribute
-
getOrganization
public Derivable<CloudOrganization> getOrganization()
- Specified by:
getOrganizationin classRawCloudSpace- Returns:
- The value of the
organizationattribute
-
withResource
public final ImmutableRawCloudSpace withResource(org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.spaces.SpaceEntity> 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
-
withOrganization
public final ImmutableRawCloudSpace withOrganization(Derivable<CloudOrganization> value)
Copy the current immutable object by setting a value for theorganizationattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for organization (can benull)- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(Object another)
This instance is equal to all instances ofImmutableRawCloudSpacethat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:resource,organization.
-
toString
public String toString()
Prints the immutable valueRawCloudSpacewith attribute values.
-
of
public static ImmutableRawCloudSpace of(org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.spaces.SpaceEntity> resource)
Construct a new immutableRawCloudSpaceinstance.- Parameters:
resource- The value for theresourceattribute- Returns:
- An immutable RawCloudSpace instance
-
copyOf
public static ImmutableRawCloudSpace copyOf(RawCloudSpace instance)
Creates an immutable copy of aRawCloudSpacevalue. 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 RawCloudSpace instance
-
builder
public static ImmutableRawCloudSpace.Builder builder()
Creates a builder forImmutableRawCloudSpace.ImmutableRawCloudSpace.builder() .resource(org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.spaces.SpaceEntity>) // requiredresource.organization(com.sap.cloudfoundry.client.facade.domain.Derivable<com.sap.cloudfoundry.client.facade.domain.CloudOrganization> | null) // nullableorganization.build();- Returns:
- A new ImmutableRawCloudSpace builder
-
-