Class ImmutableCloudApplication
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.domain.CloudEntity
-
- com.sap.cloudfoundry.client.facade.domain.CloudApplication
-
- com.sap.cloudfoundry.client.facade.domain.ImmutableCloudApplication
-
- All Implemented Interfaces:
Derivable<CloudApplication>
@Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableCloudApplication extends CloudApplication
Immutable implementation ofCloudApplication.Use the builder to create immutable instances:
ImmutableCloudApplication.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableCloudApplication.BuilderBuilds instances of typeImmutableCloudApplication.-
Nested classes/interfaces inherited from class com.sap.cloudfoundry.client.facade.domain.CloudApplication
CloudApplication.State
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableCloudApplication.Builderbuilder()Creates a builder forImmutableCloudApplication.static ImmutableCloudApplicationcopyOf(CloudApplication instance)Creates an immutable copy of aCloudApplicationvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableCloudApplicationthat have equal attribute values.LifecyclegetLifecycle()CloudMetadatagetMetadata()StringgetName()CloudSpacegetSpace()CloudApplication.StategetState()org.cloudfoundry.client.v3.MetadatagetV3Metadata()inthashCode()Computes a hash code from attributes:name,metadata,v3Metadata,state,lifecycle,space.StringtoString()Prints the immutable valueCloudApplicationwith attribute values.ImmutableCloudApplicationwithLifecycle(Lifecycle value)Copy the current immutable object by setting a value for thelifecycleattribute.ImmutableCloudApplicationwithMetadata(CloudMetadata value)Copy the current immutable object by setting a value for themetadataattribute.ImmutableCloudApplicationwithName(String value)Copy the current immutable object by setting a value for thenameattribute.ImmutableCloudApplicationwithSpace(CloudSpace value)Copy the current immutable object by setting a value for thespaceattribute.ImmutableCloudApplicationwithState(CloudApplication.State value)Copy the current immutable object by setting a value for thestateattribute.ImmutableCloudApplicationwithV3Metadata(org.cloudfoundry.client.v3.Metadata value)Copy the current immutable object by setting a value for thev3Metadataattribute.-
Methods inherited from class com.sap.cloudfoundry.client.facade.domain.CloudApplication
derive
-
Methods inherited from class com.sap.cloudfoundry.client.facade.domain.CloudEntity
getGuid
-
-
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein classCloudEntity- Returns:
- The value of the
nameattribute
-
getMetadata
public CloudMetadata getMetadata()
- Specified by:
getMetadatain classCloudEntity- Returns:
- The value of the
metadataattribute
-
getV3Metadata
public org.cloudfoundry.client.v3.Metadata getV3Metadata()
- Specified by:
getV3Metadatain classCloudEntity- Returns:
- The value of the
v3Metadataattribute
-
getState
public CloudApplication.State getState()
- Specified by:
getStatein classCloudApplication- Returns:
- The value of the
stateattribute
-
getLifecycle
public Lifecycle getLifecycle()
- Specified by:
getLifecyclein classCloudApplication- Returns:
- The value of the
lifecycleattribute
-
getSpace
public CloudSpace getSpace()
- Specified by:
getSpacein classCloudApplication- Returns:
- The value of the
spaceattribute
-
withName
public final ImmutableCloudApplication withName(String value)
Copy the current immutable object by setting a value for thenameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for name (can benull)- Returns:
- A modified copy of the
thisobject
-
withMetadata
public final ImmutableCloudApplication withMetadata(CloudMetadata value)
Copy the current immutable object by setting a value for themetadataattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for metadata (can benull)- Returns:
- A modified copy of the
thisobject
-
withV3Metadata
public final ImmutableCloudApplication withV3Metadata(org.cloudfoundry.client.v3.Metadata value)
Copy the current immutable object by setting a value for thev3Metadataattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for v3Metadata (can benull)- Returns:
- A modified copy of the
thisobject
-
withState
public final ImmutableCloudApplication withState(CloudApplication.State value)
Copy the current immutable object by setting a value for thestateattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for state (can benull)- Returns:
- A modified copy of the
thisobject
-
withLifecycle
public final ImmutableCloudApplication withLifecycle(Lifecycle value)
Copy the current immutable object by setting a value for thelifecycleattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for lifecycle (can benull)- Returns:
- A modified copy of the
thisobject
-
withSpace
public final ImmutableCloudApplication withSpace(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 (can benull)- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(Object another)
This instance is equal to all instances ofImmutableCloudApplicationthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:name,metadata,v3Metadata,state,lifecycle,space.
-
toString
public String toString()
Prints the immutable valueCloudApplicationwith attribute values.
-
copyOf
public static ImmutableCloudApplication copyOf(CloudApplication instance)
Creates an immutable copy of aCloudApplicationvalue. 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 CloudApplication instance
-
builder
public static ImmutableCloudApplication.Builder builder()
Creates a builder forImmutableCloudApplication.ImmutableCloudApplication.builder() .name(String | null) // nullablename.metadata(com.sap.cloudfoundry.client.facade.domain.CloudMetadata | null) // nullablemetadata.v3Metadata(org.cloudfoundry.client.v3.Metadata | null) // nullablev3Metadata.state(com.sap.cloudfoundry.client.facade.domain.CloudApplication.State | null) // nullablestate.lifecycle(com.sap.cloudfoundry.client.facade.domain.Lifecycle | null) // nullablelifecycle.space(com.sap.cloudfoundry.client.facade.domain.CloudSpace | null) // nullablespace.build();- Returns:
- A new ImmutableCloudApplication builder
-
-