public class ScpNeoDestinationOptionsAugmenter extends Object implements DestinationOptionsAugmenter
DestinationOptions
parameters specific to SCP Neo platform.Constructor and Description |
---|
ScpNeoDestinationOptionsAugmenter() |
Modifier and Type | Method and Description |
---|---|
void |
augmentBuilder(DestinationOptions.Builder builder)
Use this class to set configuration parameters that are specific to a platform/environment/etc.
|
static ScpNeoDestinationOptionsAugmenter |
augmenter()
Creates instances of
ScpNeoDestinationOptionsAugmenter in a builder-like style. |
static io.vavr.control.Option<ScpNeoDestinationRetrievalStrategy> |
getRetrievalStrategy(DestinationOptions options)
Retrieves the configured strategy to use when loading destinations in a multi-tenant subscription environment.
|
ScpNeoDestinationOptionsAugmenter |
retrievalStrategy(ScpNeoDestinationRetrievalStrategy strategy)
Sets the strategy to use when loading destinations in a multi-tenant subscription environment.
|
@Nonnull public static ScpNeoDestinationOptionsAugmenter augmenter()
ScpNeoDestinationOptionsAugmenter
in a builder-like style.public ScpNeoDestinationOptionsAugmenter retrievalStrategy(@Nonnull ScpNeoDestinationRetrievalStrategy strategy)
strategy
- Strategy to use when loading destinations.public void augmentBuilder(@Nonnull DestinationOptions.Builder builder)
DestinationOptions.Builder
and the resulting
DestinationOptions
object that the builder creates.augmentBuilder
in interface DestinationOptionsAugmenter
builder
- The builder to attach this augmenter to@Nonnull public static io.vavr.control.Option<ScpNeoDestinationRetrievalStrategy> getRetrievalStrategy(@Nonnull DestinationOptions options)
options
- The destination options instance that stores the key/value pair.Option
wrapping the retrieval strategy if the parameter is present, otherwise a
Option.None
.Copyright © 2019 SAP SE. All rights reserved.