@Generated(value="org.immutables.processor.ProxyProcessor") public final class ImmutableCloudService extends Object implements CloudService
CloudService.
Use the builder to create immutable instances:
ImmutableCloudService.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableCloudService.Builder
Builds instances of type
ImmutableCloudService. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableCloudService.Builder |
builder()
Creates a builder for
ImmutableCloudService. |
static ImmutableCloudService |
copyOf(CloudService instance)
Creates an immutable copy of a
CloudService value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableCloudService that have equal attribute values. |
Map<String,Object> |
getCredentials() |
String |
getLabel() |
CloudMetadata |
getMetadata() |
String |
getName() |
String |
getPlan() |
String |
getProvider() |
List<String> |
getTags() |
ServiceInstanceType |
getType() |
org.cloudfoundry.client.v3.Metadata |
getV3Metadata() |
String |
getVersion() |
int |
hashCode()
Computes a hash code from attributes:
name, metadata, v3Metadata, label, plan, provider, version, credentials, tags, type. |
String |
toString()
Prints the immutable value
CloudService with attribute values. |
ImmutableCloudService |
withCredentials(Map<String,? extends Object> entries)
Copy the current immutable object by replacing the
credentials map with the specified map. |
ImmutableCloudService |
withLabel(String value)
Copy the current immutable object by setting a value for the
label attribute. |
ImmutableCloudService |
withMetadata(CloudMetadata value)
Copy the current immutable object by setting a value for the
metadata attribute. |
ImmutableCloudService |
withName(String value)
Copy the current immutable object by setting a value for the
name attribute. |
ImmutableCloudService |
withPlan(String value)
Copy the current immutable object by setting a value for the
plan attribute. |
ImmutableCloudService |
withProvider(String value)
Copy the current immutable object by setting a value for the
provider attribute. |
ImmutableCloudService |
withTags(Iterable<String> elements)
Copy the current immutable object with elements that replace the content of
tags. |
ImmutableCloudService |
withTags(String... elements)
Copy the current immutable object with elements that replace the content of
tags. |
ImmutableCloudService |
withType(ServiceInstanceType value)
Copy the current immutable object by setting a value for the
type attribute. |
ImmutableCloudService |
withV3Metadata(org.cloudfoundry.client.v3.Metadata value)
Copy the current immutable object by setting a value for the
v3Metadata attribute. |
ImmutableCloudService |
withVersion(String value)
Copy the current immutable object by setting a value for the
version attribute. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitderive, isUserProvidedpublic 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 getLabel()
getLabel in interface CloudServicelabel attributepublic String getPlan()
getPlan in interface CloudServiceplan attributepublic String getProvider()
getProvider in interface CloudServiceprovider attributepublic String getVersion()
getVersion in interface CloudServiceversion attributepublic Map<String,Object> getCredentials()
getCredentials in interface CloudServicecredentials attributepublic List<String> getTags()
getTags in interface CloudServicetags attributepublic ServiceInstanceType getType()
getType in interface CloudServicetype attributepublic final ImmutableCloudService 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 ImmutableCloudService 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 ImmutableCloudService 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 ImmutableCloudService withLabel(String value)
label attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for label (can be null)this objectpublic final ImmutableCloudService withPlan(String value)
plan attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for plan (can be null)this objectpublic final ImmutableCloudService withProvider(String value)
provider attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for provider (can be null)this objectpublic final ImmutableCloudService withVersion(String value)
version attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for version (can be null)this objectpublic final ImmutableCloudService 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 ImmutableCloudService withTags(String... elements)
tags.elements - The elements to setthis objectpublic final ImmutableCloudService withTags(Iterable<String> elements)
tags.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of tags elements to setthis objectpublic final ImmutableCloudService withType(ServiceInstanceType 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 boolean equals(Object another)
ImmutableCloudService that have equal attribute values.public int hashCode()
name, metadata, v3Metadata, label, plan, provider, version, credentials, tags, type.public String toString()
CloudService with attribute values.public static ImmutableCloudService copyOf(CloudService instance)
CloudService 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 ImmutableCloudService.Builder builder()
ImmutableCloudService.
ImmutableCloudService.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
.label(String | null) // nullable label
.plan(String | null) // nullable plan
.provider(String | null) // nullable provider
.version(String | null) // nullable version
.putCredential|putAllCredentials(String => Object) // credentials mappings
.addTag|addAllTags(String) // tags elements
.type(org.cloudfoundry.client.lib.domain.ServiceInstanceType | null) // nullable type
.build();
Copyright © 2020 SAP SE. All rights reserved.