Class ServiceBindingDestinationOptions.Builder
java.lang.Object
com.sap.cloud.sdk.cloudplatform.connectivity.ServiceBindingDestinationOptions.Builder
- Enclosing class:
- ServiceBindingDestinationOptions
Builder class to construct a
ServiceBindingDestinationOptions
instance.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Create theServiceBindingDestinationOptions
instance based on the previously given properties.onBehalfOf
(OnBehalfOf behalf) Specify the behalf on which the destination should act.Add a custom option to theServiceBindingDestinationOptions
.
-
Method Details
-
onBehalfOf
Specify the behalf on which the destination should act. By defaultOnBehalfOf.TECHNICAL_USER_CURRENT_TENANT
will be used.- Parameters:
behalf
- Thebehalf
to be used.- Returns:
- This builder instance.
-
withOption
@Nonnull public ServiceBindingDestinationOptions.Builder withOption(@Nonnull ServiceBindingDestinationOptions.OptionsEnhancer<?> option) Add a custom option to theServiceBindingDestinationOptions
. The options for specific BTP services can be found here:BtpServiceOptions
.- Parameters:
option
- The custom option.- Returns:
- This builder instance.
- Throws:
IllegalArgumentException
- in case the option (identified by its Java class) is already set or a lambda function was passed.- See Also:
-
build
Create theServiceBindingDestinationOptions
instance based on the previously given properties.- Returns:
- A new
ServiceBindingDestinationOptions
object.
-