Enum DeveloperToolConfiguration

    • 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 name
        NullPointerException - 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 ID
        e - 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()