@Generated(value="org.immutables.processor.ProxyProcessor") public final class ImmutableCloudApplication extends Object implements CloudApplication
CloudApplication.
Use the builder to create immutable instances:
ImmutableCloudApplication.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableCloudApplication.Builder
Builds instances of type
ImmutableCloudApplication. |
CloudApplication.State| Modifier and Type | Method and Description |
|---|---|
static ImmutableCloudApplication.Builder |
builder()
Creates a builder for
ImmutableCloudApplication. |
static ImmutableCloudApplication |
copyOf(CloudApplication instance)
Creates an immutable copy of a
CloudApplication value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableCloudApplication that have equal attribute values. |
int |
getDiskQuota() |
Map<String,String> |
getEnv() |
int |
getInstances() |
int |
getMemory() |
CloudMetadata |
getMetadata() |
String |
getName() |
PackageState |
getPackageState() |
int |
getRunningInstances() |
List<String> |
getServices() |
CloudSpace |
getSpace() |
Staging |
getStaging() |
String |
getStagingError() |
CloudApplication.State |
getState() |
List<String> |
getUris() |
org.cloudfoundry.client.v3.Metadata |
getV3Metadata() |
int |
hashCode()
Computes a hash code from attributes:
name, metadata, v3Metadata, memory, diskQuota, instances, runningInstances, state, staging, packageState, stagingError, uris, services, env, space. |
String |
toString()
Prints the immutable value
CloudApplication with attribute values. |
ImmutableCloudApplication |
withDiskQuota(int value)
Copy the current immutable object by setting a value for the
diskQuota attribute. |
ImmutableCloudApplication |
withEnv(Map<String,? extends String> entries)
Copy the current immutable object by replacing the
env map with the specified map. |
ImmutableCloudApplication |
withInstances(int value)
Copy the current immutable object by setting a value for the
instances attribute. |
ImmutableCloudApplication |
withMemory(int value)
Copy the current immutable object by setting a value for the
memory attribute. |
ImmutableCloudApplication |
withMetadata(CloudMetadata value)
Copy the current immutable object by setting a value for the
metadata attribute. |
ImmutableCloudApplication |
withName(String value)
Copy the current immutable object by setting a value for the
name attribute. |
ImmutableCloudApplication |
withPackageState(PackageState value)
Copy the current immutable object by setting a value for the
packageState attribute. |
ImmutableCloudApplication |
withRunningInstances(int value)
Copy the current immutable object by setting a value for the
runningInstances attribute. |
ImmutableCloudApplication |
withServices(Iterable<String> elements)
Copy the current immutable object with elements that replace the content of
services. |
ImmutableCloudApplication |
withServices(String... elements)
Copy the current immutable object with elements that replace the content of
services. |
ImmutableCloudApplication |
withSpace(CloudSpace value)
Copy the current immutable object by setting a value for the
space attribute. |
ImmutableCloudApplication |
withStaging(Staging value)
Copy the current immutable object by setting a value for the
staging attribute. |
ImmutableCloudApplication |
withStagingError(String value)
Copy the current immutable object by setting a value for the
stagingError attribute. |
ImmutableCloudApplication |
withState(CloudApplication.State value)
Copy the current immutable object by setting a value for the
state attribute. |
ImmutableCloudApplication |
withUris(Iterable<String> elements)
Copy the current immutable object with elements that replace the content of
uris. |
ImmutableCloudApplication |
withUris(String... elements)
Copy the current immutable object with elements that replace the content of
uris. |
ImmutableCloudApplication |
withV3Metadata(org.cloudfoundry.client.v3.Metadata value)
Copy the current immutable object by setting a value for the
v3Metadata attribute. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitderivepublic String getName()
getName in interface CloudEntityname attributepublic CloudMetadata getMetadata()
getMetadata in interface CloudEntitymetadata attributepublic org.cloudfoundry.client.v3.Metadata getV3Metadata()
getV3Metadata in interface CloudEntityv3Metadata attributepublic int getMemory()
getMemory in interface CloudApplicationmemory attributepublic int getDiskQuota()
getDiskQuota in interface CloudApplicationdiskQuota attributepublic int getInstances()
getInstances in interface CloudApplicationinstances attributepublic int getRunningInstances()
getRunningInstances in interface CloudApplicationrunningInstances attributepublic CloudApplication.State getState()
getState in interface CloudApplicationstate attributepublic Staging getStaging()
getStaging in interface CloudApplicationstaging attributepublic PackageState getPackageState()
getPackageState in interface CloudApplicationpackageState attributepublic String getStagingError()
getStagingError in interface CloudApplicationstagingError attributepublic List<String> getUris()
getUris in interface CloudApplicationuris attributepublic List<String> getServices()
getServices in interface CloudApplicationservices attributepublic Map<String,String> getEnv()
getEnv in interface CloudApplicationenv attributepublic CloudSpace getSpace()
getSpace in interface CloudApplicationspace attributepublic final ImmutableCloudApplication withName(String value)
name attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for name (can be null)this objectpublic final ImmutableCloudApplication withMetadata(CloudMetadata value)
metadata attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for metadata (can be null)this objectpublic final ImmutableCloudApplication withV3Metadata(org.cloudfoundry.client.v3.Metadata value)
v3Metadata attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for v3Metadata (can be null)this objectpublic final ImmutableCloudApplication withMemory(int value)
memory attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for memorythis objectpublic final ImmutableCloudApplication withDiskQuota(int value)
diskQuota attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for diskQuotathis objectpublic final ImmutableCloudApplication withInstances(int value)
instances attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for instancesthis objectpublic final ImmutableCloudApplication withRunningInstances(int value)
runningInstances attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for runningInstancesthis objectpublic final ImmutableCloudApplication withState(CloudApplication.State value)
state attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for state (can be null)this objectpublic final ImmutableCloudApplication withStaging(Staging value)
staging attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for staging (can be null)this objectpublic final ImmutableCloudApplication withPackageState(PackageState value)
packageState attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for packageState (can be null)this objectpublic final ImmutableCloudApplication withStagingError(String value)
stagingError attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for stagingError (can be null)this objectpublic final ImmutableCloudApplication withUris(String... elements)
uris.elements - The elements to setthis objectpublic final ImmutableCloudApplication withUris(Iterable<String> elements)
uris.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of uris elements to setthis objectpublic final ImmutableCloudApplication withServices(String... elements)
services.elements - The elements to setthis objectpublic final ImmutableCloudApplication withServices(Iterable<String> elements)
services.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of services elements to setthis objectpublic final ImmutableCloudApplication withEnv(Map<String,? extends String> entries)
env map with the specified map.
Nulls are not permitted as keys or values.
A shallow reference equality check is used to prevent copying of the same value by returning this.entries - The entries to be added to the env mapthis objectpublic final ImmutableCloudApplication withSpace(CloudSpace value)
space attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for space (can be null)this objectpublic boolean equals(Object another)
ImmutableCloudApplication that have equal attribute values.public int hashCode()
name, metadata, v3Metadata, memory, diskQuota, instances, runningInstances, state, staging, packageState, stagingError, uris, services, env, space.public String toString()
CloudApplication with attribute values.public static ImmutableCloudApplication copyOf(CloudApplication instance)
CloudApplication value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static ImmutableCloudApplication.Builder builder()
ImmutableCloudApplication.
ImmutableCloudApplication.builder()
.name(String | null) // nullable name
.metadata(org.cloudfoundry.client.lib.domain.CloudMetadata | null) // nullable metadata
.v3Metadata(org.cloudfoundry.client.v3.Metadata | null) // nullable v3Metadata
.memory(int) // optional memory
.diskQuota(int) // optional diskQuota
.instances(int) // optional instances
.runningInstances(int) // optional runningInstances
.state(org.cloudfoundry.client.lib.domain.CloudApplication.State | null) // nullable state
.staging(org.cloudfoundry.client.lib.domain.Staging | null) // nullable staging
.packageState(org.cloudfoundry.client.lib.domain.PackageState | null) // nullable packageState
.stagingError(String | null) // nullable stagingError
.addUri|addAllUris(String) // uris elements
.addService|addAllServices(String) // services elements
.putEnv|putAllEnv(String => String) // env mappings
.space(org.cloudfoundry.client.lib.domain.CloudSpace | null) // nullable space
.build();
Copyright © 2020 SAP SE. All rights reserved.