Class ReadReplicaPromoteMode

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

public final class ReadReplicaPromoteMode extends com.azure.core.util.ExpandableStringEnum<ReadReplicaPromoteMode>
Type of operation to apply on the read replica. This property is write only. Standalone means that the read replica will be promoted to a standalone server, and will become a completely independent entity from the replication set. Switchover means that the read replica will roles with the primary server.
  • Field Details

    • STANDALONE

      public static final ReadReplicaPromoteMode STANDALONE
      Static value Standalone for ReadReplicaPromoteMode.
    • SWITCHOVER

      public static final ReadReplicaPromoteMode SWITCHOVER
      Static value Switchover for ReadReplicaPromoteMode.
  • Constructor Details

    • ReadReplicaPromoteMode

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

    • fromString

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

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