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 theServiceBindingDestinationOptionsinstance 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_TENANTwill be used.- Parameters:
behalf- Thebehalfto 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 theServiceBindingDestinationOptionsinstance based on the previously given properties.- Returns:
- A new
ServiceBindingDestinationOptionsobject.
-