public static final class ImmutableCloudService.Builder extends Object
ImmutableCloudService.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Modifier and Type | Method and Description |
|---|---|
ImmutableCloudService.Builder |
addAllTags(Iterable<String> elements)
Adds elements to
tags list. |
ImmutableCloudService.Builder |
addTag(String element)
Adds one element to
tags list. |
ImmutableCloudService.Builder |
addTags(String... elements)
Adds elements to
tags list. |
ImmutableCloudService |
build()
Builds a new
ImmutableCloudService. |
ImmutableCloudService.Builder |
credentials(Map<String,? extends Object> entries)
Sets or replaces all mappings from the specified map as entries for the
credentials map. |
ImmutableCloudService.Builder |
from(CloudEntity instance)
Fill a builder with attribute values from the provided
org.cloudfoundry.client.lib.domain.CloudEntity instance. |
ImmutableCloudService.Builder |
from(CloudService instance)
Fill a builder with attribute values from the provided
org.cloudfoundry.client.lib.domain.CloudService instance. |
ImmutableCloudService.Builder |
label(String label)
Initializes the value for the
label attribute. |
ImmutableCloudService.Builder |
metadata(CloudMetadata metadata)
Initializes the value for the
metadata attribute. |
ImmutableCloudService.Builder |
name(String name)
Initializes the value for the
name attribute. |
ImmutableCloudService.Builder |
plan(String plan)
Initializes the value for the
plan attribute. |
ImmutableCloudService.Builder |
provider(String provider)
Initializes the value for the
provider attribute. |
ImmutableCloudService.Builder |
putAllCredentials(Map<String,? extends Object> entries)
Put all mappings from the specified map as entries to
credentials map. |
ImmutableCloudService.Builder |
putCredential(Map.Entry<String,? extends Object> entry)
Put one entry to the
credentials map. |
ImmutableCloudService.Builder |
putCredential(String key,
Object value)
Put one entry to the
credentials map. |
ImmutableCloudService.Builder |
tags(Iterable<String> elements)
Sets or replaces all elements for
tags list. |
ImmutableCloudService.Builder |
type(ServiceInstanceType type)
Initializes the value for the
type attribute. |
ImmutableCloudService.Builder |
v3Metadata(org.cloudfoundry.client.v3.Metadata v3Metadata)
Initializes the value for the
v3Metadata attribute. |
ImmutableCloudService.Builder |
version(String version)
Initializes the value for the
version attribute. |
public final ImmutableCloudService.Builder from(CloudEntity instance)
org.cloudfoundry.client.lib.domain.CloudEntity instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutableCloudService.Builder from(CloudService instance)
org.cloudfoundry.client.lib.domain.CloudService instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutableCloudService.Builder name(String name)
name attribute.name - The value for name (can be null)this builder for use in a chained invocationpublic final ImmutableCloudService.Builder metadata(CloudMetadata metadata)
metadata attribute.metadata - The value for metadata (can be null)this builder for use in a chained invocationpublic final ImmutableCloudService.Builder v3Metadata(org.cloudfoundry.client.v3.Metadata v3Metadata)
v3Metadata attribute.v3Metadata - The value for v3Metadata (can be null)this builder for use in a chained invocationpublic final ImmutableCloudService.Builder label(String label)
label attribute.label - The value for label (can be null)this builder for use in a chained invocationpublic final ImmutableCloudService.Builder plan(String plan)
plan attribute.plan - The value for plan (can be null)this builder for use in a chained invocationpublic final ImmutableCloudService.Builder provider(String provider)
provider attribute.provider - The value for provider (can be null)this builder for use in a chained invocationpublic final ImmutableCloudService.Builder version(String version)
version attribute.version - The value for version (can be null)this builder for use in a chained invocationpublic final ImmutableCloudService.Builder putCredential(String key, Object value)
credentials map.key - The key in the credentials mapvalue - The associated value in the credentials mapthis builder for use in a chained invocationpublic final ImmutableCloudService.Builder putCredential(Map.Entry<String,? extends Object> entry)
credentials map. Nulls are not permittedentry - The key and value entrythis builder for use in a chained invocationpublic final ImmutableCloudService.Builder credentials(Map<String,? extends Object> entries)
credentials map. Nulls are not permittedentries - The entries that will be added to the credentials mapthis builder for use in a chained invocationpublic final ImmutableCloudService.Builder putAllCredentials(Map<String,? extends Object> entries)
credentials map. Nulls are not permittedentries - The entries that will be added to the credentials mapthis builder for use in a chained invocationpublic final ImmutableCloudService.Builder addTag(String element)
tags list.element - A tags elementthis builder for use in a chained invocationpublic final ImmutableCloudService.Builder addTags(String... elements)
tags list.elements - An array of tags elementsthis builder for use in a chained invocationpublic final ImmutableCloudService.Builder tags(Iterable<String> elements)
tags list.elements - An iterable of tags elementsthis builder for use in a chained invocationpublic final ImmutableCloudService.Builder addAllTags(Iterable<String> elements)
tags list.elements - An iterable of tags elementsthis builder for use in a chained invocationpublic final ImmutableCloudService.Builder type(ServiceInstanceType type)
type attribute.type - The value for type (can be null)this builder for use in a chained invocationpublic ImmutableCloudService build()
ImmutableCloudService.IllegalStateException - if any required attributes are missingCopyright © 2020 SAP SE. All rights reserved.