Class DestinationOptions.Builder
java.lang.Object
com.sap.cloud.sdk.cloudplatform.connectivity.DestinationOptions.Builder
- Enclosing class:
- DestinationOptions
Used for setting up new
DestinationOptions
instances.-
Method Summary
Modifier and TypeMethodDescriptionaugmentBuilder
(DestinationOptionsAugmenter augmenter) Use another class that implementsDestinationOptionsAugmenter
to set configuration parameters that are specific to a platform/environment/etc.build()
Creates an immutable instance of {@link DestinationOptions) with whatever parameters have been set through the builder and any augmenters attached to it.Sets a configuration parameter.parameterIfAbsent
(String key, Object value) Sets a configuration parameter.
-
Method Details
-
parameter
Sets a configuration parameter. If the parameter already exists it will be overwritten with the newly provided value.- Parameters:
key
- Name of the configuration parameter to set.value
- Value to assign to the configuration parameter.- Returns:
- The same builder that called this method.
-
parameterIfAbsent
@Nonnull public DestinationOptions.Builder parameterIfAbsent(@Nonnull String key, @Nullable Object value) Sets a configuration parameter. If the parameter already exists it will be not be overwritten.- Parameters:
key
- Name of the configuration parameter to set.value
- Value to assign to the configuration parameter.- Returns:
- The same builder that called this method.
-
augmentBuilder
@Nonnull public DestinationOptions.Builder augmentBuilder(@Nonnull DestinationOptionsAugmenter augmenter) Use another class that implementsDestinationOptionsAugmenter
to set configuration parameters that are specific to a platform/environment/etc. Once called, any parameter setting methods of the augmenter class will affect this builder and the resultingDestinationOptions
object.- Parameters:
augmenter
- An instance of an augmenter class that provides specialized parameter setting- Returns:
- The augmenter class instance, which is now aware of this builder.
-
build
Creates an immutable instance of {@link DestinationOptions) with whatever parameters have been set through the builder and any augmenters attached to it.- Returns:
- An immutable instance of {@link DestinationOptions).
-