java.lang.Object
com.azure.core.util.ExpandableStringEnum<KeyType>
com.azure.resourcemanager.eventhubs.models.KeyType
All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>

public final class KeyType extends com.azure.core.util.ExpandableStringEnum<KeyType>
The access key to regenerate.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final KeyType
    Static value PrimaryKey for KeyType.
    static final KeyType
    Static value SecondaryKey for KeyType.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
    Use the fromString(String) factory method.
  • Method Summary

    Modifier and Type
    Method
    Description
    static KeyType
    Creates or finds a KeyType from its string representation.
    Gets known KeyType values.

    Methods inherited from class com.azure.core.util.ExpandableStringEnum

    equals, fromString, getValue, hashCode, toString, values

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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

  • Method Details

    • fromString

      public static KeyType fromString(String name)
      Creates or finds a KeyType from its string representation.
      Parameters:
      name - a name to look for.
      Returns:
      the corresponding KeyType.
    • values

      public static Collection<KeyType> values()
      Gets known KeyType values.
      Returns:
      known KeyType values.