Package org.apache.hadoop.fs.s3a.auth
Enum Class MarshalledCredentials.CredentialTypeRequired
java.lang.Object
java.lang.Enum<MarshalledCredentials.CredentialTypeRequired>
org.apache.hadoop.fs.s3a.auth.MarshalledCredentials.CredentialTypeRequired
- All Implemented Interfaces:
Serializable,Comparable<MarshalledCredentials.CredentialTypeRequired>,Constable
- Enclosing class:
- org.apache.hadoop.fs.s3a.auth.MarshalledCredentials
public static enum MarshalledCredentials.CredentialTypeRequired
extends Enum<MarshalledCredentials.CredentialTypeRequired>
Enumeration of credential types for use in validation methods.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAny credential type including "unset".Any credential type is OK.No entry at all.Full credentials are required.The credentials must be session or role credentials. -
Method Summary
-
Enum Constant Details
-
Empty
No entry at all. -
AnyIncludingEmpty
Any credential type including "unset". -
AnyNonEmpty
Any credential type is OK. -
SessionOnly
The credentials must be session or role credentials. -
FullOnly
Full credentials are required.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getText
-
toString
- Overrides:
toStringin classEnum<MarshalledCredentials.CredentialTypeRequired>
-