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 SummaryNested 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 SummaryModifier 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.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.sap.cloud.environment.servicebinding.api.ServiceBindinggetServiceIdentifier
- 
Method Details- 
getKeys- Specified by:
- getKeysin interface- com.sap.cloud.environment.servicebinding.api.ServiceBinding
 
- 
containsKey- Specified by:
- containsKeyin interface- com.sap.cloud.environment.servicebinding.api.ServiceBinding
 
- 
get- Specified by:
- getin interface- com.sap.cloud.environment.servicebinding.api.ServiceBinding
 
- 
getName- Specified by:
- getNamein interface- com.sap.cloud.environment.servicebinding.api.ServiceBinding
 
- 
getServiceName- Specified by:
- getServiceNamein interface- com.sap.cloud.environment.servicebinding.api.ServiceBinding
 
- 
getServicePlan- Specified by:
- getServicePlanin interface- com.sap.cloud.environment.servicebinding.api.ServiceBinding
 
- 
getTags- Specified by:
- getTagsin interface- com.sap.cloud.environment.servicebinding.api.ServiceBinding
 
- 
getCredentials- Specified by:
- getCredentialsin interface- com.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- The- servicethat the configuration is about.
- Returns:
- A new MegacliteServiceBinding.Builder1instance that can be used to construct newMegacliteServiceBindinginstances.
 
- 
equals
- 
hashCodepublic int hashCode()
- 
toString
 
-