Class ImmutableCloudServiceBinding.Builder
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.domain.ImmutableCloudServiceBinding.Builder
-
- Enclosing class:
- ImmutableCloudServiceBinding
public static final class ImmutableCloudServiceBinding.Builder extends Object
Builds instances of typeImmutableCloudServiceBinding. 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 ImmutableCloudServiceBinding.BuilderapplicationGuid(UUID applicationGuid)Initializes the value for theapplicationGuidattribute.ImmutableCloudServiceBinding.BuilderbindingOptions(Map<String,? extends Object> entries)Sets or replaces all mappings from the specified map as entries for thebindingOptionsmap.ImmutableCloudServiceBindingbuild()Builds a newImmutableCloudServiceBinding.ImmutableCloudServiceBinding.Buildercredentials(Map<String,? extends Object> entries)Sets or replaces all mappings from the specified map as entries for thecredentialsmap.ImmutableCloudServiceBinding.Builderfrom(CloudEntity instance)Fill a builder with attribute values from the providedcom.sap.cloudfoundry.client.facade.domain.CloudEntityinstance.ImmutableCloudServiceBinding.Builderfrom(CloudServiceBinding instance)Fill a builder with attribute values from the providedcom.sap.cloudfoundry.client.facade.domain.CloudServiceBindinginstance.ImmutableCloudServiceBinding.Buildermetadata(CloudMetadata metadata)Initializes the value for themetadataattribute.ImmutableCloudServiceBinding.Buildername(String name)Initializes the value for thenameattribute.ImmutableCloudServiceBinding.BuilderputAllBindingOptions(Map<String,? extends Object> entries)Put all mappings from the specified map as entries tobindingOptionsmap.ImmutableCloudServiceBinding.BuilderputAllCredentials(Map<String,? extends Object> entries)Put all mappings from the specified map as entries tocredentialsmap.ImmutableCloudServiceBinding.BuilderputBindingOption(String key, Object value)Put one entry to thebindingOptionsmap.ImmutableCloudServiceBinding.BuilderputBindingOption(Map.Entry<String,? extends Object> entry)Put one entry to thebindingOptionsmap.ImmutableCloudServiceBinding.BuilderputCredential(String key, Object value)Put one entry to thecredentialsmap.ImmutableCloudServiceBinding.BuilderputCredential(Map.Entry<String,? extends Object> entry)Put one entry to thecredentialsmap.ImmutableCloudServiceBinding.BuildersyslogDrainUrl(String syslogDrainUrl)Initializes the value for thesyslogDrainUrlattribute.ImmutableCloudServiceBinding.Builderv3Metadata(org.cloudfoundry.client.v3.Metadata v3Metadata)Initializes the value for thev3Metadataattribute.
-
-
-
Method Detail
-
from
public final ImmutableCloudServiceBinding.Builder from(CloudServiceBinding instance)
Fill a builder with attribute values from the providedcom.sap.cloudfoundry.client.facade.domain.CloudServiceBindinginstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
public final ImmutableCloudServiceBinding.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 ImmutableCloudServiceBinding.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 ImmutableCloudServiceBinding.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 ImmutableCloudServiceBinding.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
-
applicationGuid
public final ImmutableCloudServiceBinding.Builder applicationGuid(UUID applicationGuid)
Initializes the value for theapplicationGuidattribute.- Parameters:
applicationGuid- The value for applicationGuid- Returns:
thisbuilder for use in a chained invocation
-
putBindingOption
public final ImmutableCloudServiceBinding.Builder putBindingOption(String key, Object value)
Put one entry to thebindingOptionsmap.- Parameters:
key- The key in the bindingOptions mapvalue- The associated value in the bindingOptions map- Returns:
thisbuilder for use in a chained invocation
-
putBindingOption
public final ImmutableCloudServiceBinding.Builder putBindingOption(Map.Entry<String,? extends Object> entry)
Put one entry to thebindingOptionsmap. Nulls are not permitted- Parameters:
entry- The key and value entry- Returns:
thisbuilder for use in a chained invocation
-
bindingOptions
public final ImmutableCloudServiceBinding.Builder bindingOptions(Map<String,? extends Object> entries)
Sets or replaces all mappings from the specified map as entries for thebindingOptionsmap. Nulls are not permitted as keys or values, but parameter itself can be null- Parameters:
entries- The entries that will be added to the bindingOptions map- Returns:
thisbuilder for use in a chained invocation
-
putAllBindingOptions
public final ImmutableCloudServiceBinding.Builder putAllBindingOptions(Map<String,? extends Object> entries)
Put all mappings from the specified map as entries tobindingOptionsmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the bindingOptions map- Returns:
thisbuilder for use in a chained invocation
-
putCredential
public final ImmutableCloudServiceBinding.Builder putCredential(String key, Object value)
Put one entry to thecredentialsmap.- Parameters:
key- The key in the credentials mapvalue- The associated value in the credentials map- Returns:
thisbuilder for use in a chained invocation
-
putCredential
public final ImmutableCloudServiceBinding.Builder putCredential(Map.Entry<String,? extends Object> entry)
Put one entry to thecredentialsmap. Nulls are not permitted- Parameters:
entry- The key and value entry- Returns:
thisbuilder for use in a chained invocation
-
credentials
public final ImmutableCloudServiceBinding.Builder credentials(Map<String,? extends Object> entries)
Sets or replaces all mappings from the specified map as entries for thecredentialsmap. Nulls are not permitted as keys or values, but parameter itself can be null- Parameters:
entries- The entries that will be added to the credentials map- Returns:
thisbuilder for use in a chained invocation
-
putAllCredentials
public final ImmutableCloudServiceBinding.Builder putAllCredentials(Map<String,? extends Object> entries)
Put all mappings from the specified map as entries tocredentialsmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the credentials map- Returns:
thisbuilder for use in a chained invocation
-
syslogDrainUrl
public final ImmutableCloudServiceBinding.Builder syslogDrainUrl(String syslogDrainUrl)
Initializes the value for thesyslogDrainUrlattribute.- Parameters:
syslogDrainUrl- The value for syslogDrainUrl (can benull)- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableCloudServiceBinding build()
Builds a newImmutableCloudServiceBinding.- Returns:
- An immutable instance of CloudServiceBinding
- Throws:
IllegalStateException- if any required attributes are missing
-
-