Package software.amazon.awssdk.utils
Enum ProxyEnvironmentSetting
- All Implemented Interfaces:
Serializable
,Comparable<ProxyEnvironmentSetting>
,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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe default value of the setting (or empty if there is no default).The environment variable of the setting (or null if there is no environment variable for this setting).Attempt to load a system setting fromSystem.getProperty(String)
andSystem.getenv(String)
.property()
The system property of the setting (or null if there is no property for this setting).static ProxyEnvironmentSetting
Returns the enum constant of this type with the specified name.static ProxyEnvironmentSetting[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface software.amazon.awssdk.utils.SystemSetting
getBooleanValue, getBooleanValueOrThrow, getIntegerValue, getIntegerValueOrThrow, getNonDefaultStringValue, getStringValueOrThrow
-
Enum Constant Details
-
HTTP_PROXY
-
HTTPS_PROXY
-
NO_PROXY
-
-
Method Details
-
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
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
-
getStringValue
Description copied from interface:SystemSetting
Attempt to load a system setting fromSystem.getProperty(String)
andSystem.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 overSystem.getenv(String)
if both are specified.- Specified by:
getStringValue
in interfaceSystemSetting
- Returns:
- The requested setting, or
Optional.empty()
if the values were not set, or the security manager did not allow reading the setting.
-
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 interfaceSystemSetting
-
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 interfaceSystemSetting
-
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 interfaceSystemSetting
-