Class ReplicaType

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

public final class ReplicaType extends com.azure.core.util.ExpandableStringEnum<ReplicaType>
Defines values for ReplicaType.
  • Field Details

    • PRIMARY

      public static final ReplicaType PRIMARY
      Static value Primary for ReplicaType.
    • READABLE_SECONDARY

      public static final ReplicaType READABLE_SECONDARY
      Static value ReadableSecondary for ReplicaType.
  • Constructor Details

    • ReplicaType

      @Deprecated public ReplicaType()
      Deprecated.
      Use the fromString(String) factory method.
      Creates a new instance of ReplicaType value.
  • Method Details

    • fromString

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

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