Class ImmutableCloudServiceBroker.Builder
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.domain.ImmutableCloudServiceBroker.Builder
-
- Enclosing class:
- ImmutableCloudServiceBroker
public static final class ImmutableCloudServiceBroker.Builder extends Object
Builds instances of typeImmutableCloudServiceBroker. 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 ImmutableCloudServiceBrokerbuild()Builds a newImmutableCloudServiceBroker.ImmutableCloudServiceBroker.Builderfrom(CloudEntity instance)Fill a builder with attribute values from the providedcom.sap.cloudfoundry.client.facade.domain.CloudEntityinstance.ImmutableCloudServiceBroker.Builderfrom(CloudServiceBroker instance)Fill a builder with attribute values from the providedcom.sap.cloudfoundry.client.facade.domain.CloudServiceBrokerinstance.ImmutableCloudServiceBroker.Buildermetadata(CloudMetadata metadata)Initializes the value for themetadataattribute.ImmutableCloudServiceBroker.Buildername(String name)Initializes the value for thenameattribute.ImmutableCloudServiceBroker.Builderpassword(String password)Initializes the value for thepasswordattribute.ImmutableCloudServiceBroker.BuilderspaceGuid(String spaceGuid)Initializes the value for thespaceGuidattribute.ImmutableCloudServiceBroker.Builderurl(String url)Initializes the value for theurlattribute.ImmutableCloudServiceBroker.Builderusername(String username)Initializes the value for theusernameattribute.ImmutableCloudServiceBroker.Builderv3Metadata(org.cloudfoundry.client.v3.Metadata v3Metadata)Initializes the value for thev3Metadataattribute.
-
-
-
Method Detail
-
from
public final ImmutableCloudServiceBroker.Builder from(CloudServiceBroker instance)
Fill a builder with attribute values from the providedcom.sap.cloudfoundry.client.facade.domain.CloudServiceBrokerinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
public final ImmutableCloudServiceBroker.Builder from(CloudEntity instance)
Fill a builder with attribute values from the providedcom.sap.cloudfoundry.client.facade.domain.CloudEntityinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
name
public final ImmutableCloudServiceBroker.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
-
metadata
public final ImmutableCloudServiceBroker.Builder metadata(CloudMetadata metadata)
Initializes the value for themetadataattribute.- Parameters:
metadata- The value for metadata (can benull)- Returns:
thisbuilder for use in a chained invocation
-
v3Metadata
public final ImmutableCloudServiceBroker.Builder v3Metadata(org.cloudfoundry.client.v3.Metadata v3Metadata)
Initializes the value for thev3Metadataattribute.- Parameters:
v3Metadata- The value for v3Metadata (can benull)- Returns:
thisbuilder for use in a chained invocation
-
username
public final ImmutableCloudServiceBroker.Builder username(String username)
Initializes the value for theusernameattribute.- Parameters:
username- The value for username (can benull)- Returns:
thisbuilder for use in a chained invocation
-
password
public final ImmutableCloudServiceBroker.Builder password(String password)
Initializes the value for thepasswordattribute.- Parameters:
password- The value for password (can benull)- Returns:
thisbuilder for use in a chained invocation
-
url
public final ImmutableCloudServiceBroker.Builder url(String url)
Initializes the value for theurlattribute.- Parameters:
url- The value for url (can benull)- Returns:
thisbuilder for use in a chained invocation
-
spaceGuid
public final ImmutableCloudServiceBroker.Builder spaceGuid(String spaceGuid)
Initializes the value for thespaceGuidattribute.- Parameters:
spaceGuid- The value for spaceGuid (can benull)- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableCloudServiceBroker build()
Builds a newImmutableCloudServiceBroker.- Returns:
- An immutable instance of CloudServiceBroker
- Throws:
IllegalStateException- if any required attributes are missing
-
-