Class AffinityType

java.lang.Object
com.azure.core.util.ExpandableStringEnum<AffinityType>
com.azure.resourcemanager.avs.models.AffinityType

public final class AffinityType extends com.azure.core.util.ExpandableStringEnum<AffinityType>
Placement policy affinity type.
  • Field Details

    • AFFINITY

      public static final AffinityType AFFINITY
      Static value Affinity for AffinityType.
    • ANTI_AFFINITY

      public static final AffinityType ANTI_AFFINITY
      Static value AntiAffinity for AffinityType.
  • Constructor Details

    • AffinityType

      public AffinityType()
  • Method Details

    • fromString

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

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