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