Enum ProxyEnvironmentSetting

java.lang.Object
java.lang.Enum<ProxyEnvironmentSetting>
software.amazon.awssdk.utils.ProxyEnvironmentSetting
All Implemented Interfaces:
Serializable, Comparable<ProxyEnvironmentSetting>, SystemSetting

public enum ProxyEnvironmentSetting extends Enum<ProxyEnvironmentSetting> implements SystemSetting
An enumeration representing environment settings related to proxy configuration. Instances of this enum are used to define and access proxy configuration settings obtained from environment variables.
  • Enum Constant Details

  • Method Details

    • values

      public static ProxyEnvironmentSetting[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ProxyEnvironmentSetting 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
    • getStringValue

      public Optional<String> getStringValue()
      Description copied from interface: SystemSetting
      Attempt to load a system setting from System.getProperty(String) and System.getenv(String). This should be used in favor of those methods because the SDK should support both methods of configuration. System.getProperty(String) takes precedent over System.getenv(String) if both are specified.
      Specified by:
      getStringValue in interface SystemSetting
      Returns:
      The requested setting, or Optional.empty() if the values were not set, or the security manager did not allow reading the setting.
    • property

      public String property()
      Description copied from interface: SystemSetting
      The system property of the setting (or null if there is no property for this setting).
      Specified by:
      property in interface SystemSetting
    • environmentVariable

      public String environmentVariable()
      Description copied from interface: SystemSetting
      The environment variable of the setting (or null if there is no environment variable for this setting).
      Specified by:
      environmentVariable in interface SystemSetting
    • defaultValue

      public String defaultValue()
      Description copied from interface: SystemSetting
      The default value of the setting (or empty if there is no default). This value will be applied if the customer did not specify a setting.
      Specified by:
      defaultValue in interface SystemSetting