java.lang.Object
com.azure.core.util.ExpandableStringEnum<Role>
com.azure.resourcemanager.deviceupdate.models.Role

public final class Role extends com.azure.core.util.ExpandableStringEnum<Role>
Whether the location is primary or failover.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Role
    Static value Failover for Role.
    static final Role
    Static value Primary for Role.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

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

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

    equals, fromString, hashCode, toString, values

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • PRIMARY

      public static final Role PRIMARY
      Static value Primary for Role.
    • FAILOVER

      public static final Role FAILOVER
      Static value Failover for Role.
  • Constructor Details

    • Role

      public Role()
  • Method Details

    • fromString

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

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