Package com.oracle.bmc.internal
Enum Alloy
- java.lang.Object
- 
- java.lang.Enum<Alloy>
- 
- com.oracle.bmc.internal.Alloy
 
 
- 
- All Implemented Interfaces:
- Serializable,- Comparable<Alloy>
 
 public enum Alloy extends Enum<Alloy> 
- 
- 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static booleandoesAlloyConfigExist()Checks if Alloy configuration exists either in the default file or as env variable.static booleandoesAlloyEnvExists()Checks if Alloy config exists as env variable.static booleandoesAlloyFileExists()Checks if Alloy file exists.static StringgetAlloyConfigFilePath()Get config path from env variable or from the default file path.static StringgetAlloyEnvContent()Get config path from env variable.static booleanisAlloyRegionCoexistEnabled()Checks if Oci Alloy region coexist is set to true.static voidresetAlloyRegionCoexistStatus()static booleanshouldUseOnlyAlloyRegions()Checks if regions from only the Alloy config has to be considered.static voidthrowDisabledServiceExceptionIfAppropriate(String serviceName)Throws IllegalArgumentException if the service is not a registered Alloy service.static voidthrowUnknownAlloyRegionIfAppropriate(String regionId, Throwable e)Throws IllegalArgumentException if the region ID is not a registered Alloy region.static AlloyvalueOf(String name)Returns the enum constant of this type with the specified name.static Alloy[]values()Returns an array containing the constants of this enum type, in the order they are declared.
 
- 
- 
- 
Method Detail- 
valuespublic static Alloy[] values() Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Alloy c : Alloy.values()) System.out.println(c); - Returns:
- an array containing the constants of this enum type, in the order they are declared
 
 - 
valueOfpublic static Alloy valueOf(String name) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum type has no constant with the specified name
- NullPointerException- if the argument is null
 
 - 
doesAlloyConfigExistpublic static boolean doesAlloyConfigExist() Checks if Alloy configuration exists either in the default file or as env variable.
 - 
doesAlloyFileExistspublic static boolean doesAlloyFileExists() Checks if Alloy file exists.
 - 
doesAlloyEnvExistspublic static boolean doesAlloyEnvExists() Checks if Alloy config exists as env variable.
 - 
isAlloyRegionCoexistEnabledpublic static boolean isAlloyRegionCoexistEnabled() Checks if Oci Alloy region coexist is set to true.
 - 
shouldUseOnlyAlloyRegionspublic static boolean shouldUseOnlyAlloyRegions() Checks if regions from only the Alloy config has to be considered.
 - 
getAlloyEnvContentpublic static String getAlloyEnvContent() Get config path from env variable.
 - 
getAlloyConfigFilePathpublic static String getAlloyConfigFilePath() Get config path from env variable or from the default file path.
 - 
throwUnknownAlloyRegionIfAppropriatepublic static void throwUnknownAlloyRegionIfAppropriate(String regionId, Throwable e) Throws IllegalArgumentException if the region ID is not a registered Alloy region.- Parameters:
- regionId- The region ID
- e- The error received.
 
 - 
throwDisabledServiceExceptionIfAppropriatepublic static void throwDisabledServiceExceptionIfAppropriate(String serviceName) Throws IllegalArgumentException if the service is not a registered Alloy service.- Parameters:
- serviceName- Name of the service
 
 - 
resetAlloyRegionCoexistStatuspublic static void resetAlloyRegionCoexistStatus() 
 
- 
 
-