@Generated(value="org.immutables.processor.ProxyProcessor") public final class ImmutableCloudSpace extends Object implements CloudSpace
CloudSpace.
Use the builder to create immutable instances:
ImmutableCloudSpace.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableCloudSpace.Builder
Builds instances of type
ImmutableCloudSpace. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableCloudSpace.Builder |
builder()
Creates a builder for
ImmutableCloudSpace. |
static ImmutableCloudSpace |
copyOf(CloudSpace instance)
Creates an immutable copy of a
CloudSpace value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableCloudSpace that have equal attribute values. |
CloudMetadata |
getMetadata() |
String |
getName() |
CloudOrganization |
getOrganization() |
org.cloudfoundry.client.v3.Metadata |
getV3Metadata() |
int |
hashCode()
Computes a hash code from attributes:
name, metadata, v3Metadata, organization. |
String |
toString()
Prints the immutable value
CloudSpace with attribute values. |
ImmutableCloudSpace |
withMetadata(CloudMetadata value)
Copy the current immutable object by setting a value for the
metadata attribute. |
ImmutableCloudSpace |
withName(String value)
Copy the current immutable object by setting a value for the
name attribute. |
ImmutableCloudSpace |
withOrganization(CloudOrganization value)
Copy the current immutable object by setting a value for the
organization attribute. |
ImmutableCloudSpace |
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 CloudOrganization getOrganization()
getOrganization in interface CloudSpaceorganization attributepublic final ImmutableCloudSpace 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 ImmutableCloudSpace 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 ImmutableCloudSpace 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 ImmutableCloudSpace withOrganization(CloudOrganization value)
organization attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for organization (can be null)this objectpublic boolean equals(Object another)
ImmutableCloudSpace that have equal attribute values.public int hashCode()
name, metadata, v3Metadata, organization.public String toString()
CloudSpace with attribute values.public static ImmutableCloudSpace copyOf(CloudSpace instance)
CloudSpace 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 ImmutableCloudSpace.Builder builder()
ImmutableCloudSpace.
ImmutableCloudSpace.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
.organization(org.cloudfoundry.client.lib.domain.CloudOrganization | null) // nullable organization
.build();
Copyright © 2020 SAP SE. All rights reserved.