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
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder class to construct aServiceBindingDestinationOptionsinstance.static final classA set of further options that can be configured usingServiceBindingDestinationOptions.Builder.withOption(OptionsEnhancer).static interfaceAn enhancer that can add and retrieve additional options fromServiceBindingDestinationOptions. -
Method Summary
Modifier and TypeMethodDescriptionforService(com.sap.cloud.environment.servicebinding.api.ServiceBinding serviceBinding) Start buildingServiceBindingDestinationOptionsfor the givenServiceBinding.forService(com.sap.cloud.environment.servicebinding.api.ServiceIdentifier identifier) Start buildingServiceBindingDestinationOptionsfor anyServiceBindingthat 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.ServiceBindingTheServiceBindingfor which anHttpDestinationwill be created.
-
Method Details
-
forService
@Nonnull public static ServiceBindingDestinationOptions.Builder forService(@Nonnull com.sap.cloud.environment.servicebinding.api.ServiceIdentifier identifier) Start buildingServiceBindingDestinationOptionsfor anyServiceBindingthat matches the givenServiceIdentifier. Use.build()to obtain the options object or configure further options via the other builder methods. Note:DefaultServiceBindingAccessorwill be used internally.- Parameters:
identifier- TheServiceIdentifierthat will be used to look up aServiceBinding.- Returns:
- A
Builderto 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 buildingServiceBindingDestinationOptionsfor the givenServiceBinding. Use.build()to obtain the options object or configure further options via the other builder methods.- Parameters:
serviceBinding- TheServiceBindingthat should be transformed into a destination.- Returns:
- A
Builderto 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.OptionsEnhancerthat will provide the option data. See alsoServiceBindingDestinationOptions.Options.- Returns:
- an
Optioncontaining the additional option, if it was found. - Since:
- 4.20.0
- See Also:
-
getServiceBinding
@Nonnull public com.sap.cloud.environment.servicebinding.api.ServiceBinding getServiceBinding()TheServiceBindingfor which anHttpDestinationwill be created. -
getOnBehalfOf
Gets theOnBehalfOf, which determines how the application will authenticate at the target system.If not set explicitly,
OnBehalfOf.TECHNICAL_USER_CURRENT_TENANTwill be returned.
-