Class ServiceBindingDestinationOptions
java.lang.Object
com.sap.cloud.sdk.cloudplatform.connectivity.ServiceBindingDestinationOptions
Representation of parameters and context information for the
ServiceBindingDestinationLoader
API.- Since:
- 4.16.0
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Builder class to construct aServiceBindingDestinationOptions
instance.static final class
A set of further options that can be configured usingServiceBindingDestinationOptions.Builder.withOption(OptionsEnhancer)
.static interface
An enhancer that can add and retrieve additional options fromServiceBindingDestinationOptions
. -
Method Summary
Modifier and TypeMethodDescriptionforService
(com.sap.cloud.environment.servicebinding.api.ServiceBinding serviceBinding) Start buildingServiceBindingDestinationOptions
for the givenServiceBinding
.forService
(com.sap.cloud.environment.servicebinding.api.ServiceIdentifier identifier) Start buildingServiceBindingDestinationOptions
for anyServiceBinding
that matches the givenServiceIdentifier
.Gets theOnBehalfOf
, which determines how the application will authenticate at the target system.<T> io.vavr.control.Option<T>
getOption
(Class<? extends ServiceBindingDestinationOptions.OptionsEnhancer<T>> cls) Get additional options by their key.com.sap.cloud.environment.servicebinding.api.ServiceBinding
TheServiceBinding
for which anHttpDestination
will be created.
-
Method Details
-
forService
@Nonnull public static ServiceBindingDestinationOptions.Builder forService(@Nonnull com.sap.cloud.environment.servicebinding.api.ServiceIdentifier identifier) Start buildingServiceBindingDestinationOptions
for anyServiceBinding
that matches the givenServiceIdentifier
. Use.build()
to obtain the options object or configure further options via the other builder methods. Note:DefaultServiceBindingAccessor
will be used internally.- Parameters:
identifier
- TheServiceIdentifier
that will be used to look up aServiceBinding
.- Returns:
- A
Builder
to createServiceBindingDestinationOptions
. - Throws:
DestinationAccessException
- in case not exactly one service binding was found.- See Also:
-
forService
@Nonnull public static ServiceBindingDestinationOptions.Builder forService(@Nonnull com.sap.cloud.environment.servicebinding.api.ServiceBinding serviceBinding) Start buildingServiceBindingDestinationOptions
for the givenServiceBinding
. Use.build()
to obtain the options object or configure further options via the other builder methods.- Parameters:
serviceBinding
- TheServiceBinding
that should be transformed into a destination.- Returns:
- A
Builder
to createServiceBindingDestinationOptions
. - Since:
- 4.20.0
-
getOption
@Nonnull public <T> io.vavr.control.Option<T> getOption(@Nonnull Class<? extends ServiceBindingDestinationOptions.OptionsEnhancer<T>> cls) Get additional options by their key.- Type Parameters:
T
- The type of content that this option will represent.- Parameters:
cls
- TheServiceBindingDestinationOptions.OptionsEnhancer
that will provide the option data. See alsoServiceBindingDestinationOptions.Options
.- Returns:
- an
Option
containing the additional option, if it was found. - Since:
- 4.20.0
- See Also:
-
getServiceBinding
@Nonnull public com.sap.cloud.environment.servicebinding.api.ServiceBinding getServiceBinding()TheServiceBinding
for which anHttpDestination
will be created. -
getOnBehalfOf
Gets theOnBehalfOf
, which determines how the application will authenticate at the target system.If not set explicitly,
OnBehalfOf.TECHNICAL_USER_CURRENT_TENANT
will be returned.
-