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