Class MegacliteServiceBinding
java.lang.Object
com.sap.cloud.sdk.cloudplatform.connectivity.MegacliteServiceBinding
- All Implemented Interfaces:
com.sap.cloud.environment.servicebinding.api.ServiceBinding
public final class MegacliteServiceBinding
extends Object
implements com.sap.cloud.environment.servicebinding.api.ServiceBinding
Represents a (remote) service that is bound to Megaclite. Therefore, the application may reach the bound service by
using Megaclite as an egress proxy.
Instances of this class require manual (i.e. programmer) input because the configuration cannot be automatically derived. Instead, the configuration is part of the Deploy With Confidence product configuration.
Usage Example:
MegacliteServiceBinding megacliteServiceBinding =
MegacliteServiceBinding
.forService(BindableService.DESTINATION)
.providerConfiguration()
.name("destination")
.version("v1")
.build();
MegacliteServiceBindingAccessor.registerServiceBinding(megacliteServiceBinding);
- Since:
- 4.17.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceFirst builder step to construct newMegacliteServiceBindinginstances.static interfaceSecond builder step to construct newMegacliteServiceBindinginstances.static interfaceThird builder step to construct newMegacliteServiceBindinginstances.static interfaceFourth builder step to construct newMegacliteServiceBindinginstances. -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsKey(String key) booleanforService(com.sap.cloud.environment.servicebinding.api.ServiceIdentifier service) Creates a newMegacliteServiceBinding.Builder1instance that can be used to configure access to the providedservicethat is bound to Megaclite.getKeys()getName()getTags()inthashCode()toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.sap.cloud.environment.servicebinding.api.ServiceBinding
getServiceIdentifier
-
Method Details
-
getKeys
- Specified by:
getKeysin interfacecom.sap.cloud.environment.servicebinding.api.ServiceBinding
-
containsKey
- Specified by:
containsKeyin interfacecom.sap.cloud.environment.servicebinding.api.ServiceBinding
-
get
- Specified by:
getin interfacecom.sap.cloud.environment.servicebinding.api.ServiceBinding
-
getName
- Specified by:
getNamein interfacecom.sap.cloud.environment.servicebinding.api.ServiceBinding
-
getServiceName
- Specified by:
getServiceNamein interfacecom.sap.cloud.environment.servicebinding.api.ServiceBinding
-
getServicePlan
- Specified by:
getServicePlanin interfacecom.sap.cloud.environment.servicebinding.api.ServiceBinding
-
getTags
- Specified by:
getTagsin interfacecom.sap.cloud.environment.servicebinding.api.ServiceBinding
-
getCredentials
- Specified by:
getCredentialsin interfacecom.sap.cloud.environment.servicebinding.api.ServiceBinding
-
forService
@Nonnull public static MegacliteServiceBinding.Builder1 forService(@Nonnull com.sap.cloud.environment.servicebinding.api.ServiceIdentifier service) Creates a newMegacliteServiceBinding.Builder1instance that can be used to configure access to the providedservicethat is bound to Megaclite.Usage Example: Assume you have the following two configurations in your Deploy with Confidence product configuration:
# destination-paas.yaml communication: cacheResponse: true type: reuse typeSpecificProperties: authorizeOnBehalf: paas grantType: client_credentials serviceUrlKey: uri vcapServiceName: destination headers: forwardDwcHeaders: false name: destination-paas version: paas-v1 --- # destination-saas.yaml communication: cacheResponse: true type: reuse typeSpecificProperties: authorizeOnBehalf: saas grantType: client_credentials serviceUrlKey: uri vcapServiceName: destination headers: forwardDwcHeaders: false name: destination-saas version: saas-v1Then you could use the builder as follows:
MegacliteServiceBinding destinationServiceBinding = MegacliteServiceBinding .forService(ServiceIdentifier.DESTINATION) .providerConfiguration() .name("destination-paas") .version("paas-v1") .and() .subscriberConfiguration() .name("destination-saas") .version("saas-v1") .build(); MegacliteServiceBindingAccessor.registerServiceBinding(destinationServiceBinding);- Parameters:
service- Theservicethat the configuration is about.- Returns:
- A new
MegacliteServiceBinding.Builder1instance that can be used to construct newMegacliteServiceBindinginstances.
-
equals
-
hashCode
public int hashCode() -
toString
-