public static final class ImmutableCloudPackage.ImmutableData extends Object implements CloudPackage.Data
CloudPackage.Data.
Use the builder to create immutable instances:
ImmutableCloudPackage.ImmutableData.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableCloudPackage.ImmutableData.Builder
Builds instances of type
ImmutableData. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableCloudPackage.ImmutableData.Builder |
builder()
Creates a builder for
ImmutableData. |
static ImmutableCloudPackage.ImmutableData |
copyOf(CloudPackage.Data instance)
Creates an immutable copy of a
CloudPackage.Data value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableData that have equal attribute values. |
CloudPackage.Checksum |
getChecksum() |
String |
getError() |
int |
hashCode()
Computes a hash code from attributes:
checksum, error. |
String |
toString()
Prints the immutable value
Data with attribute values. |
ImmutableCloudPackage.ImmutableData |
withChecksum(CloudPackage.Checksum value)
Copy the current immutable object by setting a value for the
checksum attribute. |
ImmutableCloudPackage.ImmutableData |
withError(String value)
Copy the current immutable object by setting a value for the
error attribute. |
public CloudPackage.Checksum getChecksum()
getChecksum in interface CloudPackage.Datachecksum attributepublic String getError()
getError in interface CloudPackage.Dataerror attributepublic final ImmutableCloudPackage.ImmutableData withChecksum(CloudPackage.Checksum value)
checksum attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for checksum (can be null)this objectpublic final ImmutableCloudPackage.ImmutableData withError(String value)
error attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for error (can be null)this objectpublic boolean equals(Object another)
ImmutableData that have equal attribute values.public int hashCode()
checksum, error.public String toString()
Data with attribute values.public static ImmutableCloudPackage.ImmutableData copyOf(CloudPackage.Data instance)
CloudPackage.Data 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.ImmutableData.Builder builder()
ImmutableData.
ImmutableCloudPackage.ImmutableData.builder()
.checksum(org.cloudfoundry.client.lib.domain.CloudPackage.Checksum | null) // nullable checksum
.error(String | null) // nullable error
.build();
Copyright © 2020 SAP SE. All rights reserved.