Class ImmutableCloudInfo.Builder
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.domain.ImmutableCloudInfo.Builder
-
- Enclosing class:
- ImmutableCloudInfo
public static final class ImmutableCloudInfo.Builder extends Object
Builds instances of typeImmutableCloudInfo. Initialize attributes and then invoke thebuild()method to create an immutable instance.Builderis not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImmutableCloudInfo.BuilderauthorizationEndpoint(String authorizationEndpoint)Initializes the value for theauthorizationEndpointattribute.ImmutableCloudInfobuild()Builds a newImmutableCloudInfo.ImmutableCloudInfo.Builderbuild(String build)Initializes the value for thebuildattribute.ImmutableCloudInfo.Builderdescription(String description)Initializes the value for thedescriptionattribute.ImmutableCloudInfo.Builderfrom(CloudInfo instance)Fill a builder with attribute values from the providedCloudInfoinstance.ImmutableCloudInfo.BuilderloggingEndpoint(String loggingEndpoint)Initializes the value for theloggingEndpointattribute.ImmutableCloudInfo.Buildername(String name)Initializes the value for thenameattribute.ImmutableCloudInfo.Buildersupport(String support)Initializes the value for thesupportattribute.ImmutableCloudInfo.Builderuser(String user)Initializes the value for theuserattribute.ImmutableCloudInfo.Builderversion(String version)Initializes the value for theversionattribute.
-
-
-
Method Detail
-
from
public final ImmutableCloudInfo.Builder from(CloudInfo instance)
Fill a builder with attribute values from the providedCloudInfoinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
authorizationEndpoint
public final ImmutableCloudInfo.Builder authorizationEndpoint(String authorizationEndpoint)
Initializes the value for theauthorizationEndpointattribute.- Parameters:
authorizationEndpoint- The value for authorizationEndpoint (can benull)- Returns:
thisbuilder for use in a chained invocation
-
loggingEndpoint
public final ImmutableCloudInfo.Builder loggingEndpoint(String loggingEndpoint)
Initializes the value for theloggingEndpointattribute.- Parameters:
loggingEndpoint- The value for loggingEndpoint (can benull)- Returns:
thisbuilder for use in a chained invocation
-
build
public final ImmutableCloudInfo.Builder build(String build)
Initializes the value for thebuildattribute.- Parameters:
build- The value for build (can benull)- Returns:
thisbuilder for use in a chained invocation
-
description
public final ImmutableCloudInfo.Builder description(String description)
Initializes the value for thedescriptionattribute.- Parameters:
description- The value for description (can benull)- Returns:
thisbuilder for use in a chained invocation
-
name
public final ImmutableCloudInfo.Builder name(String name)
Initializes the value for thenameattribute.- Parameters:
name- The value for name (can benull)- Returns:
thisbuilder for use in a chained invocation
-
user
public final ImmutableCloudInfo.Builder user(String user)
Initializes the value for theuserattribute.- Parameters:
user- The value for user (can benull)- Returns:
thisbuilder for use in a chained invocation
-
support
public final ImmutableCloudInfo.Builder support(String support)
Initializes the value for thesupportattribute.- Parameters:
support- The value for support (can benull)- Returns:
thisbuilder for use in a chained invocation
-
version
public final ImmutableCloudInfo.Builder version(String version)
Initializes the value for theversionattribute.- Parameters:
version- The value for version (can benull)- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableCloudInfo build()
Builds a newImmutableCloudInfo.- Returns:
- An immutable instance of CloudInfo
- Throws:
IllegalStateException- if any required attributes are missing
-
-