public final class CloudPlatformAccessor extends Object
Modifier and Type | Method and Description |
---|---|
static CloudPlatform |
getCloudPlatform()
Returns the current
CloudPlatform . |
static CloudPlatformFacade |
getCloudPlatformFacade()
Returns the
CloudPlatformFacade instance. |
static void |
setCloudPlatformFacade(CloudPlatformFacade cloudPlatformFacade)
Replaces the default
CloudPlatformFacade instance. |
static io.vavr.control.Try<CloudPlatform> |
tryGetCloudPlatform()
Returns a
Try of the current CloudPlatform . |
static io.vavr.control.Try<CloudPlatformFacade> |
tryGetCloudPlatformFacade()
Returns a
Try of the CloudPlatformFacade instance. |
@Nullable public static CloudPlatformFacade getCloudPlatformFacade()
CloudPlatformFacade
instance.CloudPlatformFacade
instance, or null
.@Nonnull public static io.vavr.control.Try<CloudPlatformFacade> tryGetCloudPlatformFacade()
Try
of the CloudPlatformFacade
instance.Try
of the CloudPlatformFacade
instance.public static void setCloudPlatformFacade(@Nullable CloudPlatformFacade cloudPlatformFacade)
CloudPlatformFacade
instance.cloudPlatformFacade
- An instance of CloudPlatformFacade
. Use null
to reset the facade.@Nonnull public static CloudPlatform getCloudPlatform() throws CloudPlatformException
CloudPlatform
.CloudPlatform
.CloudPlatformException
- If there is an issue while accessing the CloudPlatform
.@Nonnull public static io.vavr.control.Try<CloudPlatform> tryGetCloudPlatform()
Try
of the current CloudPlatform
.Try
of the current CloudPlatform
.Copyright © 2021 SAP SE. All rights reserved.