Class ImmutableRawCloudApplication
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.adapters.RawCloudEntity<CloudApplication>
-
- com.sap.cloudfoundry.client.facade.adapters.RawCloudApplication
-
- com.sap.cloudfoundry.client.facade.adapters.ImmutableRawCloudApplication
-
- All Implemented Interfaces:
Derivable<CloudApplication>
@Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableRawCloudApplication extends RawCloudApplication
Immutable implementation ofRawCloudApplication.Use the builder to create immutable instances:
ImmutableRawCloudApplication.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableRawCloudApplication.BuilderBuilds instances of typeImmutableRawCloudApplication.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableRawCloudApplication.Builderbuilder()Creates a builder forImmutableRawCloudApplication.static ImmutableRawCloudApplicationcopyOf(RawCloudApplication instance)Creates an immutable copy of aRawCloudApplicationvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableRawCloudApplicationthat have equal attribute values.org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.applications.ApplicationEntity>getResource()Derivable<CloudSpace>getSpace()Derivable<CloudStack>getStack()org.cloudfoundry.client.v2.applications.SummaryApplicationResponsegetSummary()inthashCode()Computes a hash code from attributes:resource,summary,stack,space.StringtoString()Prints the immutable valueRawCloudApplicationwith attribute values.ImmutableRawCloudApplicationwithResource(org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.applications.ApplicationEntity> value)Copy the current immutable object by setting a value for theresourceattribute.ImmutableRawCloudApplicationwithSpace(Derivable<CloudSpace> value)Copy the current immutable object by setting a value for thespaceattribute.ImmutableRawCloudApplicationwithStack(Derivable<CloudStack> value)Copy the current immutable object by setting a value for thestackattribute.ImmutableRawCloudApplicationwithSummary(org.cloudfoundry.client.v2.applications.SummaryApplicationResponse value)Copy the current immutable object by setting a value for thesummaryattribute.-
Methods inherited from class com.sap.cloudfoundry.client.facade.adapters.RawCloudApplication
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.applications.ApplicationEntity> getResource()
- Specified by:
getResourcein classRawCloudApplication- Returns:
- The value of the
resourceattribute
-
getSummary
public org.cloudfoundry.client.v2.applications.SummaryApplicationResponse getSummary()
- Specified by:
getSummaryin classRawCloudApplication- Returns:
- The value of the
summaryattribute
-
getStack
public Derivable<CloudStack> getStack()
- Specified by:
getStackin classRawCloudApplication- Returns:
- The value of the
stackattribute
-
getSpace
public Derivable<CloudSpace> getSpace()
- Specified by:
getSpacein classRawCloudApplication- Returns:
- The value of the
spaceattribute
-
withResource
public final ImmutableRawCloudApplication withResource(org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.applications.ApplicationEntity> 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
-
withSummary
public final ImmutableRawCloudApplication withSummary(org.cloudfoundry.client.v2.applications.SummaryApplicationResponse value)
Copy the current immutable object by setting a value for thesummaryattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for summary- Returns:
- A modified copy of the
thisobject
-
withStack
public final ImmutableRawCloudApplication withStack(Derivable<CloudStack> value)
Copy the current immutable object by setting a value for thestackattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for stack- Returns:
- A modified copy of the
thisobject
-
withSpace
public final ImmutableRawCloudApplication withSpace(Derivable<CloudSpace> value)
Copy the current immutable object by setting a value for thespaceattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for space- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(Object another)
This instance is equal to all instances ofImmutableRawCloudApplicationthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:resource,summary,stack,space.
-
toString
public String toString()
Prints the immutable valueRawCloudApplicationwith attribute values.
-
copyOf
public static ImmutableRawCloudApplication copyOf(RawCloudApplication instance)
Creates an immutable copy of aRawCloudApplicationvalue. 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 RawCloudApplication instance
-
builder
public static ImmutableRawCloudApplication.Builder builder()
Creates a builder forImmutableRawCloudApplication.ImmutableRawCloudApplication.builder() .resource(org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.applications.ApplicationEntity>) // requiredresource.summary(org.cloudfoundry.client.v2.applications.SummaryApplicationResponse) // requiredsummary.stack(com.sap.cloudfoundry.client.facade.domain.Derivable<com.sap.cloudfoundry.client.facade.domain.CloudStack>) // requiredstack.space(com.sap.cloudfoundry.client.facade.domain.Derivable<com.sap.cloudfoundry.client.facade.domain.CloudSpace>) // requiredspace.build();- Returns:
- A new ImmutableRawCloudApplication builder
-
-