Class ReplicationRole
java.lang.Object
com.azure.core.util.ExpandableStringEnum<ReplicationRole>
com.azure.resourcemanager.postgresqlflexibleserver.models.ReplicationRole
- All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>
public final class ReplicationRole
extends com.azure.core.util.ExpandableStringEnum<ReplicationRole>
Role of the server in a replication set.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ReplicationRoleStatic value AsyncReplica for ReplicationRole.static final ReplicationRoleStatic value GeoAsyncReplica for ReplicationRole.static final ReplicationRoleStatic value None for ReplicationRole.static final ReplicationRoleStatic value Primary for ReplicationRole. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ReplicationRolefromString(String name) Creates or finds a ReplicationRole from its string representation.static Collection<ReplicationRole> values()Gets known ReplicationRole values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
NONE
Static value None for ReplicationRole. -
PRIMARY
Static value Primary for ReplicationRole. -
ASYNC_REPLICA
Static value AsyncReplica for ReplicationRole. -
GEO_ASYNC_REPLICA
Static value GeoAsyncReplica for ReplicationRole.
-
-
Constructor Details
-
ReplicationRole
Deprecated.Use thefromString(String)factory method.Creates a new instance of ReplicationRole value.
-
-
Method Details
-
fromString
Creates or finds a ReplicationRole from its string representation.- Parameters:
name- a name to look for.- Returns:
- the corresponding ReplicationRole.
-
values
Gets known ReplicationRole values.- Returns:
- known ReplicationRole values.
-
fromString(String)factory method.