Class DestinationServiceOptionsAugmenter
java.lang.Object
com.sap.cloud.sdk.cloudplatform.connectivity.DestinationServiceOptionsAugmenter
- All Implemented Interfaces:
DestinationOptionsAugmenter
public class DestinationServiceOptionsAugmenter
extends Object
implements DestinationOptionsAugmenter
Handles the getting and setting of
DestinationOptions parameters specific to SCP Cloud Foundry platform.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaugmentBuilder(DestinationOptions.Builder builder) Creates instances ofDestinationServiceOptionsAugmenterin a builder-like style.static io.vavr.control.Option<DestinationServiceRetrievalStrategy>getRetrievalStrategy(DestinationOptions options) Retrieves the configured strategy to use when loading destinations in a multi-tenant subscription environment.static io.vavr.control.Option<DestinationServiceTokenExchangeStrategy>Retrieves the configuredDestinationServiceTokenExchangeStrategyto use when loading destinations.Sets the strategy to use when loading destinations in a multi-tenant subscription environment.Sets theDestinationServiceTokenExchangeStrategyto use when loading destinations.
-
Constructor Details
-
DestinationServiceOptionsAugmenter
public DestinationServiceOptionsAugmenter()
-
-
Method Details
-
augmenter
Creates instances ofDestinationServiceOptionsAugmenterin a builder-like style.- Returns:
- A new augmenter instance.
-
retrievalStrategy
@Nonnull public DestinationServiceOptionsAugmenter retrievalStrategy(@Nonnull DestinationServiceRetrievalStrategy strategy) Sets the strategy to use when loading destinations in a multi-tenant subscription environment. Not setting this value or setting to null results in platform default behaviour.- Parameters:
strategy- Strategy to use when loading destinations.- Returns:
- The same augmenter that called this method.
-
tokenExchangeStrategy
@Nonnull public DestinationServiceOptionsAugmenter tokenExchangeStrategy(@Nonnull DestinationServiceTokenExchangeStrategy strategy) Sets theDestinationServiceTokenExchangeStrategyto use when loading destinations. Not setting this value results in the platform default behavior.- Parameters:
strategy- Strategy to use when loading destinations.- Returns:
- The same augmenter that called this method.
-
augmentBuilder
- Specified by:
augmentBuilderin interfaceDestinationOptionsAugmenter
-
getRetrievalStrategy
@Nonnull public static io.vavr.control.Option<DestinationServiceRetrievalStrategy> getRetrievalStrategy(@Nonnull DestinationOptions options) Retrieves the configured strategy to use when loading destinations in a multi-tenant subscription environment.- Parameters:
options- The destination options instance that stores the key/value pair.- Returns:
- An
Optionwrapping the retrieval strategy if the parameter is present, otherwise aOption.None.
-
getTokenExchangeStrategy
@Nonnull public static io.vavr.control.Option<DestinationServiceTokenExchangeStrategy> getTokenExchangeStrategy(@Nonnull DestinationOptions options) Retrieves the configuredDestinationServiceTokenExchangeStrategyto use when loading destinations.- Parameters:
options- The destination options instance that stores the key/value pair.- Returns:
- An
Optionwrapping the token exchange strategy if the parameter is present, otherwise aOption.None.
-