Class ImmutableRawCloudOrganization
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.adapters.RawCloudEntity<CloudOrganization>
-
- com.sap.cloudfoundry.client.facade.adapters.RawCloudOrganization
-
- com.sap.cloudfoundry.client.facade.adapters.ImmutableRawCloudOrganization
-
- All Implemented Interfaces:
Derivable<CloudOrganization>
@Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableRawCloudOrganization extends RawCloudOrganization
Immutable implementation ofRawCloudOrganization.Use the builder to create immutable instances:
ImmutableRawCloudOrganization.builder(). Use the static factory method to create immutable instances:ImmutableRawCloudOrganization.of().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableRawCloudOrganization.BuilderBuilds instances of typeImmutableRawCloudOrganization.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableRawCloudOrganization.Builderbuilder()Creates a builder forImmutableRawCloudOrganization.static ImmutableRawCloudOrganizationcopyOf(RawCloudOrganization instance)Creates an immutable copy of aRawCloudOrganizationvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableRawCloudOrganizationthat have equal attribute values.org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.organizations.OrganizationEntity>getResource()inthashCode()Computes a hash code from attributes:resource.static ImmutableRawCloudOrganizationof(org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.organizations.OrganizationEntity> resource)Construct a new immutableRawCloudOrganizationinstance.StringtoString()Prints the immutable valueRawCloudOrganizationwith attribute values.ImmutableRawCloudOrganizationwithResource(org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.organizations.OrganizationEntity> value)Copy the current immutable object by setting a value for theresourceattribute.-
Methods inherited from class com.sap.cloudfoundry.client.facade.adapters.RawCloudOrganization
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.organizations.OrganizationEntity> getResource()
- Specified by:
getResourcein classRawCloudOrganization- Returns:
- The value of the
resourceattribute
-
withResource
public final ImmutableRawCloudOrganization withResource(org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.organizations.OrganizationEntity> 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
-
equals
public boolean equals(Object another)
This instance is equal to all instances ofImmutableRawCloudOrganizationthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:resource.
-
toString
public String toString()
Prints the immutable valueRawCloudOrganizationwith attribute values.
-
of
public static ImmutableRawCloudOrganization of(org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.organizations.OrganizationEntity> resource)
Construct a new immutableRawCloudOrganizationinstance.- Parameters:
resource- The value for theresourceattribute- Returns:
- An immutable RawCloudOrganization instance
-
copyOf
public static ImmutableRawCloudOrganization copyOf(RawCloudOrganization instance)
Creates an immutable copy of aRawCloudOrganizationvalue. 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 RawCloudOrganization instance
-
builder
public static ImmutableRawCloudOrganization.Builder builder()
Creates a builder forImmutableRawCloudOrganization.ImmutableRawCloudOrganization.builder() .resource(org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.organizations.OrganizationEntity>) // requiredresource.build();- Returns:
- A new ImmutableRawCloudOrganization builder
-
-