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