Package com.oracle.bmc.internal
Enum DeveloperToolConfiguration
- java.lang.Object
-
- java.lang.Enum<DeveloperToolConfiguration>
-
- com.oracle.bmc.internal.DeveloperToolConfiguration
-
- All Implemented Interfaces:
Serializable,Comparable<DeveloperToolConfiguration>
public enum DeveloperToolConfiguration extends Enum<DeveloperToolConfiguration>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleandoesDeveloperToolConfigurationEnvExists()Checks if DeveloperToolConfiguration config exists as env variable.static booleandoesDeveloperToolConfigurationExist()Checks if DeveloperToolConfiguration configuration exists either in the default file or as env variable.static booleandoesDeveloperToolConfigurationFileExists()Checks if DeveloperToolConfiguration file exists.static StringgetDeveloperToolConfigurationEnvContent()Get config path from env variable.static StringgetDeveloperToolConfigurationFilePath()Get config path from env variable or from the default file path.static booleanisDevToolConfigRegionCoexistEnabled()Checks if Oci DeveloperToolConfiguration region coexist is set to true.static voidresetAllowOnlyDevToolConfigRegionsStatus()static booleanshouldUseOnlyDeveloperToolConfigurationRegions()Checks if regions from only the DeveloperToolConfiguration config has to be considered.static voidthrowDisabledServiceExceptionIfAppropriate(String serviceName)Throws IllegalArgumentException if the service is not a registered DeveloperToolConfiguration service.static voidthrowUnknownDevToolConfigRegionIfAppropriate(String regionId, Throwable e)Throws IllegalArgumentException if the region ID is not a registered DeveloperToolConfiguration region.static DeveloperToolConfigurationvalueOf(String name)Returns the enum constant of this type with the specified name.static DeveloperToolConfiguration[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Method Detail
-
values
public static DeveloperToolConfiguration[] 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 (DeveloperToolConfiguration c : DeveloperToolConfiguration.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DeveloperToolConfiguration 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 nameNullPointerException- if the argument is null
-
doesDeveloperToolConfigurationExist
public static boolean doesDeveloperToolConfigurationExist()
Checks if DeveloperToolConfiguration configuration exists either in the default file or as env variable.
-
doesDeveloperToolConfigurationFileExists
public static boolean doesDeveloperToolConfigurationFileExists()
Checks if DeveloperToolConfiguration file exists.
-
doesDeveloperToolConfigurationEnvExists
public static boolean doesDeveloperToolConfigurationEnvExists()
Checks if DeveloperToolConfiguration config exists as env variable.
-
isDevToolConfigRegionCoexistEnabled
public static boolean isDevToolConfigRegionCoexistEnabled()
Checks if Oci DeveloperToolConfiguration region coexist is set to true.
-
shouldUseOnlyDeveloperToolConfigurationRegions
public static boolean shouldUseOnlyDeveloperToolConfigurationRegions()
Checks if regions from only the DeveloperToolConfiguration config has to be considered.
-
getDeveloperToolConfigurationEnvContent
public static String getDeveloperToolConfigurationEnvContent()
Get config path from env variable.
-
getDeveloperToolConfigurationFilePath
public static String getDeveloperToolConfigurationFilePath()
Get config path from env variable or from the default file path.
-
throwUnknownDevToolConfigRegionIfAppropriate
public static void throwUnknownDevToolConfigRegionIfAppropriate(String regionId, Throwable e)
Throws IllegalArgumentException if the region ID is not a registered DeveloperToolConfiguration region.- Parameters:
regionId- The region IDe- The error received.
-
throwDisabledServiceExceptionIfAppropriate
public static void throwDisabledServiceExceptionIfAppropriate(String serviceName)
Throws IllegalArgumentException if the service is not a registered DeveloperToolConfiguration service.- Parameters:
serviceName- Name of the service
-
resetAllowOnlyDevToolConfigRegionsStatus
public static void resetAllowOnlyDevToolConfigRegionsStatus()
-
-