Class ImmutableRawV2CloudDomain
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.adapters.RawCloudEntity<CloudDomain>
-
- com.sap.cloudfoundry.client.facade.adapters.RawV2CloudDomain
-
- com.sap.cloudfoundry.client.facade.adapters.ImmutableRawV2CloudDomain
-
- All Implemented Interfaces:
Derivable<CloudDomain>
@Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableRawV2CloudDomain extends RawV2CloudDomain
Immutable implementation ofRawV2CloudDomain.Use the builder to create immutable instances:
ImmutableRawV2CloudDomain.builder(). Use the static factory method to create immutable instances:ImmutableRawV2CloudDomain.of().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableRawV2CloudDomain.BuilderBuilds instances of typeImmutableRawV2CloudDomain.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableRawV2CloudDomain.Builderbuilder()Creates a builder forImmutableRawV2CloudDomain.static ImmutableRawV2CloudDomaincopyOf(RawV2CloudDomain instance)Creates an immutable copy of aRawV2CloudDomainvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableRawV2CloudDomainthat have equal attribute values.org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.domains.DomainEntity>getResource()inthashCode()Computes a hash code from attributes:resource.static ImmutableRawV2CloudDomainof(org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.domains.DomainEntity> resource)Construct a new immutableRawV2CloudDomaininstance.StringtoString()Prints the immutable valueRawV2CloudDomainwith attribute values.ImmutableRawV2CloudDomainwithResource(org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.domains.DomainEntity> value)Copy the current immutable object by setting a value for theresourceattribute.-
Methods inherited from class com.sap.cloudfoundry.client.facade.adapters.RawV2CloudDomain
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.domains.DomainEntity> getResource()
- Specified by:
getResourcein classRawV2CloudDomain- Returns:
- The value of the
resourceattribute
-
withResource
public final ImmutableRawV2CloudDomain withResource(org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.domains.DomainEntity> 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 ofImmutableRawV2CloudDomainthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:resource.
-
toString
public String toString()
Prints the immutable valueRawV2CloudDomainwith attribute values.
-
of
public static ImmutableRawV2CloudDomain of(org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.domains.DomainEntity> resource)
Construct a new immutableRawV2CloudDomaininstance.- Parameters:
resource- The value for theresourceattribute- Returns:
- An immutable RawV2CloudDomain instance
-
copyOf
public static ImmutableRawV2CloudDomain copyOf(RawV2CloudDomain instance)
Creates an immutable copy of aRawV2CloudDomainvalue. 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 RawV2CloudDomain instance
-
builder
public static ImmutableRawV2CloudDomain.Builder builder()
Creates a builder forImmutableRawV2CloudDomain.ImmutableRawV2CloudDomain.builder() .resource(org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.domains.DomainEntity>) // requiredresource.build();- Returns:
- A new ImmutableRawV2CloudDomain builder
-
-