Top Fields Constructors Methods
com.oracle.bmc.internal

public final Enum Alloy

extends Enum<Alloy>
Class Inheritance
Imports
com.oracle.bmc.InternalSdk, com.oracle.bmc.util.VisibleForTesting, com.oracle.bmc.util.internal.FileUtils, .StringUtils, java.io.File

Field Summary

Modifier and TypeField and Description
private static final String
private static final String
private static final String
private static boolean

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static boolean
doesAlloyConfigExist()

Checks if Alloy configuration exists either in the default file or as env variable.

public static boolean
doesAlloyEnvExists()

Checks if Alloy config exists as env variable.

public static boolean
doesAlloyFileExists()

Checks if Alloy file exists.

public static String
getAlloyConfigFilePath()

Get config path from env variable or from the default file path.

public static String
getAlloyEnvContent()

Get config path from env variable.

public static boolean
isAlloyRegionCoexistEnabled()

Checks if Oci Alloy region coexist is set to true.

public static void
public static boolean
shouldUseOnlyAlloyRegions()

Checks if regions from only the Alloy config has to be considered.

public static void
throwDisabledServiceExceptionIfAppropriate(String
Name of the service
serviceName
)

Throws IllegalArgumentException if the service is not a registered Alloy service.

public static void
throwUnknownAlloyRegionIfAppropriate(String
The region ID
regionId
,
Throwable
The error received.
e
)

Throws IllegalArgumentException if the region ID is not a registered Alloy region.

public static Alloy
public static Alloy[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

DEFAULT_ALLOY_CONFIG_FILE_PATHback to summary
private static final String DEFAULT_ALLOY_CONFIG_FILE_PATH
OCI_ALLOY_CONFIG_FILE_PATHback to summary
private static final String OCI_ALLOY_CONFIG_FILE_PATH
OCI_ALLOY_REGION_COEXIST_ENV_VARback to summary
private static final String OCI_ALLOY_REGION_COEXIST_ENV_VAR
shouldUseOnlyAlloyRegionsback to summary
private static boolean shouldUseOnlyAlloyRegions

Constructor Detail

Alloyback to summary
private Alloy()

Method Detail

doesAlloyConfigExistback to summary
public static boolean doesAlloyConfigExist()

Checks if Alloy configuration exists either in the default file or as env variable.

doesAlloyEnvExistsback to summary
public static boolean doesAlloyEnvExists()

Checks if Alloy config exists as env variable.

doesAlloyFileExistsback to summary
public static boolean doesAlloyFileExists()

Checks if Alloy file exists.

getAlloyConfigFilePathback to summary
public static String getAlloyConfigFilePath()

Get config path from env variable or from the default file path.

getAlloyEnvContentback to summary
public static String getAlloyEnvContent()

Get config path from env variable.

isAlloyRegionCoexistEnabledback to summary
public static boolean isAlloyRegionCoexistEnabled()

Checks if Oci Alloy region coexist is set to true.

resetAlloyRegionCoexistStatusback to summary
public static void resetAlloyRegionCoexistStatus()
Annotations
@InternalSdk
@VisibleForTesting
shouldUseOnlyAlloyRegionsback to summary
public static boolean shouldUseOnlyAlloyRegions()

Checks if regions from only the Alloy config has to be considered.

throwDisabledServiceExceptionIfAppropriateback to summary
public static void throwDisabledServiceExceptionIfAppropriate(String serviceName)

Throws IllegalArgumentException if the service is not a registered Alloy service.

Parameters
serviceName:String

Name of the service

throwUnknownAlloyRegionIfAppropriateback to summary
public static void throwUnknownAlloyRegionIfAppropriate(String regionId, Throwable e)

Throws IllegalArgumentException if the region ID is not a registered Alloy region.

Parameters
regionId:String

The region ID

e:Throwable

The error received.

valueOfback to summary
public static Alloy valueOf(String name)
valuesback to summary
public static Alloy[] values()