Enum StorageKeyType
- java.lang.Object
-
- java.lang.Enum<StorageKeyType>
-
- com.azure.resourcemanager.sql.models.StorageKeyType
-
- All Implemented Interfaces:
Serializable,Comparable<StorageKeyType>
public enum StorageKeyType extends Enum<StorageKeyType>
Defines values for StorageKeyType.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description SHARED_ACCESS_KEYEnum value SharedAccessKey.STORAGE_ACCESS_KEYEnum value StorageAccessKey.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StorageKeyTypefromString(String value)Parses a serialized value to a StorageKeyType instance.StringtoString()static StorageKeyTypevalueOf(String name)Returns the enum constant of this type with the specified name.static StorageKeyType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STORAGE_ACCESS_KEY
public static final StorageKeyType STORAGE_ACCESS_KEY
Enum value StorageAccessKey.
-
SHARED_ACCESS_KEY
public static final StorageKeyType SHARED_ACCESS_KEY
Enum value SharedAccessKey.
-
-
Method Detail
-
values
public static StorageKeyType[] 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 (StorageKeyType c : StorageKeyType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StorageKeyType 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
-
fromString
public static StorageKeyType fromString(String value)
Parses a serialized value to a StorageKeyType instance.- Parameters:
value- the serialized value to parse.- Returns:
- the parsed StorageKeyType object, or null if unable to parse.
-
toString
public String toString()
- Overrides:
toStringin classEnum<StorageKeyType>
-
-