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