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 Summary
FieldsModifier and TypeFieldDescriptionstatic final ReadReplicaPromoteModeStatic value Standalone for ReadReplicaPromoteMode.static final ReadReplicaPromoteModeStatic value Switchover for ReadReplicaPromoteMode. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ReadReplicaPromoteModefromString(String name) Creates or finds a ReadReplicaPromoteMode from its string representation.static Collection<ReadReplicaPromoteMode> values()Gets known ReadReplicaPromoteMode values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
STANDALONE
Static value Standalone for ReadReplicaPromoteMode. -
SWITCHOVER
Static value Switchover for ReadReplicaPromoteMode.
-
-
Constructor Details
-
ReadReplicaPromoteMode
Deprecated.Use thefromString(String)factory method.Creates a new instance of ReadReplicaPromoteMode value.
-
-
Method Details
-
fromString
Creates or finds a ReadReplicaPromoteMode from its string representation.- Parameters:
name- a name to look for.- Returns:
- the corresponding ReadReplicaPromoteMode.
-
values
Gets known ReadReplicaPromoteMode values.- Returns:
- known ReadReplicaPromoteMode values.
-
fromString(String)factory method.