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.v3.applications.ApplicationgetApplication()Derivable<CloudSpace>getSpace()inthashCode()Computes a hash code from attributes:application,space.StringtoString()Prints the immutable valueRawCloudApplicationwith attribute values.ImmutableRawCloudApplicationwithApplication(org.cloudfoundry.client.v3.applications.Application value)Copy the current immutable object by setting a value for theapplicationattribute.ImmutableRawCloudApplicationwithSpace(Derivable<CloudSpace> value)Copy the current immutable object by setting a value for thespaceattribute.-
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
-
-
-
-
Method Detail
-
getApplication
public org.cloudfoundry.client.v3.applications.Application getApplication()
- Specified by:
getApplicationin classRawCloudApplication- Returns:
- The value of the
applicationattribute
-
getSpace
public Derivable<CloudSpace> getSpace()
- Specified by:
getSpacein classRawCloudApplication- Returns:
- The value of the
spaceattribute
-
withApplication
public final ImmutableRawCloudApplication withApplication(org.cloudfoundry.client.v3.applications.Application value)
Copy the current immutable object by setting a value for theapplicationattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for application- 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:application,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() .application(org.cloudfoundry.client.v3.applications.Application) // requiredapplication.space(com.sap.cloudfoundry.client.facade.domain.Derivable<com.sap.cloudfoundry.client.facade.domain.CloudSpace>) // requiredspace.build();- Returns:
- A new ImmutableRawCloudApplication builder
-
-