Class MegacliteServiceBinding
java.lang.Object
com.sap.cloud.sdk.cloudplatform.connectivity.MegacliteServiceBinding
- All Implemented Interfaces:
com.sap.cloud.environment.servicebinding.api.ServiceBinding
@Beta
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
Modifier and TypeClassDescriptionstatic interface
First builder step to construct newMegacliteServiceBinding
instances.static interface
Second builder step to construct newMegacliteServiceBinding
instances.static interface
Third builder step to construct newMegacliteServiceBinding
instances.static interface
Fourth builder step to construct newMegacliteServiceBinding
instances. -
Method Summary
Modifier and TypeMethodDescriptionboolean
containsKey
(String key) boolean
forService
(com.sap.cloud.environment.servicebinding.api.ServiceIdentifier service) Creates a newMegacliteServiceBinding.Builder1
instance that can be used to configure access to the providedservice
that is bound to Megaclite.getKeys()
getName()
getTags()
int
hashCode()
toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.sap.cloud.environment.servicebinding.api.ServiceBinding
getServiceIdentifier
-
Method Details
-
getKeys
- Specified by:
getKeys
in interfacecom.sap.cloud.environment.servicebinding.api.ServiceBinding
-
containsKey
- Specified by:
containsKey
in interfacecom.sap.cloud.environment.servicebinding.api.ServiceBinding
-
get
- Specified by:
get
in interfacecom.sap.cloud.environment.servicebinding.api.ServiceBinding
-
getName
- Specified by:
getName
in interfacecom.sap.cloud.environment.servicebinding.api.ServiceBinding
-
getServiceName
- Specified by:
getServiceName
in interfacecom.sap.cloud.environment.servicebinding.api.ServiceBinding
-
getServicePlan
- Specified by:
getServicePlan
in interfacecom.sap.cloud.environment.servicebinding.api.ServiceBinding
-
getTags
- Specified by:
getTags
in interfacecom.sap.cloud.environment.servicebinding.api.ServiceBinding
-
getCredentials
- Specified by:
getCredentials
in 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.Builder1
instance that can be used to configure access to the providedservice
that 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-v1
Then 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
- Theservice
that the configuration is about.- Returns:
- A new
MegacliteServiceBinding.Builder1
instance that can be used to construct newMegacliteServiceBinding
instances.
-
equals
-
hashCode
public int hashCode() -
toString
-