public static final class ImmutableCloudInfo.Builder extends Object
ImmutableCloudInfo.
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 |
|---|---|
ImmutableCloudInfo.Builder |
authorizationEndpoint(String authorizationEndpoint)
Initializes the value for the
authorizationEndpoint attribute. |
ImmutableCloudInfo |
build()
Builds a new
ImmutableCloudInfo. |
ImmutableCloudInfo.Builder |
build(String build)
Initializes the value for the
build attribute. |
ImmutableCloudInfo.Builder |
description(String description)
Initializes the value for the
description attribute. |
ImmutableCloudInfo.Builder |
from(CloudInfo instance)
Fill a builder with attribute values from the provided
CloudInfo instance. |
ImmutableCloudInfo.Builder |
loggingEndpoint(String loggingEndpoint)
Initializes the value for the
loggingEndpoint attribute. |
ImmutableCloudInfo.Builder |
name(String name)
Initializes the value for the
name attribute. |
ImmutableCloudInfo.Builder |
support(String support)
Initializes the value for the
support attribute. |
ImmutableCloudInfo.Builder |
user(String user)
Initializes the value for the
user attribute. |
ImmutableCloudInfo.Builder |
version(String version)
Initializes the value for the
version attribute. |
public final ImmutableCloudInfo.Builder from(CloudInfo instance)
CloudInfo instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutableCloudInfo.Builder authorizationEndpoint(String authorizationEndpoint)
authorizationEndpoint attribute.authorizationEndpoint - The value for authorizationEndpoint (can be null)this builder for use in a chained invocationpublic final ImmutableCloudInfo.Builder loggingEndpoint(String loggingEndpoint)
loggingEndpoint attribute.loggingEndpoint - The value for loggingEndpoint (can be null)this builder for use in a chained invocationpublic final ImmutableCloudInfo.Builder build(String build)
build attribute.build - The value for build (can be null)this builder for use in a chained invocationpublic final ImmutableCloudInfo.Builder description(String description)
description attribute.description - The value for description (can be null)this builder for use in a chained invocationpublic final ImmutableCloudInfo.Builder name(String name)
name attribute.name - The value for name (can be null)this builder for use in a chained invocationpublic final ImmutableCloudInfo.Builder user(String user)
user attribute.user - The value for user (can be null)this builder for use in a chained invocationpublic final ImmutableCloudInfo.Builder support(String support)
support attribute.support - The value for support (can be null)this builder for use in a chained invocationpublic final ImmutableCloudInfo.Builder version(String version)
version attribute.version - The value for version (can be null)this builder for use in a chained invocationpublic ImmutableCloudInfo build()
ImmutableCloudInfo.IllegalStateException - if any required attributes are missingCopyright © 2020 SAP SE. All rights reserved.