KeyType Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. resourcemanager. eventhubs. models. KeyType
- com.
- com.
public final class KeyType
extends ExpandableStringEnum<KeyType>
The access key to regenerate.
Field Summary
| Modifier and Type | Field and Description |
|---|---|
|
static final
Key |
PRIMARY_KEY
Static value Primary |
|
static final
Key |
SECONDARY_KEY
Static value Secondary |
Constructor Summary
| Constructor | Description |
|---|---|
| KeyType() |
Deprecated
Use the fromString(String name) factory method.
Creates a new instance of Key |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Key |
fromString(String name)
Creates or finds a Key |
|
static
Collection<Key |
values()
Gets known Key |
Methods inherited from ExpandableStringEnum
Methods inherited from java.lang.Object
Field Details
PRIMARY_KEY
public static final KeyType PRIMARY_KEY
Static value PrimaryKey for KeyType.
SECONDARY_KEY
public static final KeyType SECONDARY_KEY
Static value SecondaryKey for KeyType.
Constructor Details
KeyType
@Deprecated
public KeyType()
Deprecated
Creates a new instance of KeyType value.
Method Details
fromString
public static KeyType fromString(String name)
Creates or finds a KeyType from its string representation.
Parameters:
Returns:
values
public static Collection<KeyType> values()
Gets known KeyType values.
Returns: