Enum CredentialSourceType
- java.lang.Object
-
- java.lang.Enum<CredentialSourceType>
-
- software.amazon.awssdk.auth.credentials.internal.CredentialSourceType
-
- All Implemented Interfaces:
Serializable
,Comparable<CredentialSourceType>
public enum CredentialSourceType extends Enum<CredentialSourceType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EC2_INSTANCE_METADATA
ECS_CONTAINER
ENVIRONMENT
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CredentialSourceType
parse(String value)
static CredentialSourceType
valueOf(String name)
Returns the enum constant of this type with the specified name.static CredentialSourceType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EC2_INSTANCE_METADATA
public static final CredentialSourceType EC2_INSTANCE_METADATA
-
ECS_CONTAINER
public static final CredentialSourceType ECS_CONTAINER
-
ENVIRONMENT
public static final CredentialSourceType ENVIRONMENT
-
-
Method Detail
-
values
public static CredentialSourceType[] 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 (CredentialSourceType c : CredentialSourceType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CredentialSourceType 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
-
parse
public static CredentialSourceType parse(String value)
-
-