Class ReplicationRole
java.lang.Object
com.azure.core.util.ExpandableStringEnum<ReplicationRole>
com.azure.resourcemanager.postgresqlflexibleserver.models.ReplicationRole
public final class ReplicationRole
extends com.azure.core.util.ExpandableStringEnum<ReplicationRole>
Used to indicate role of the server in replication set.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ReplicationRole
Static value AsyncReplica for ReplicationRole.static final ReplicationRole
Static value GeoAsyncReplica for ReplicationRole.static final ReplicationRole
Static value GeoSyncReplica for ReplicationRole.static final ReplicationRole
Static value None for ReplicationRole.static final ReplicationRole
Static value Primary for ReplicationRole.static final ReplicationRole
Static value Secondary for ReplicationRole.static final ReplicationRole
Static value SyncReplica for ReplicationRole.static final ReplicationRole
Static value WalReplica for ReplicationRole. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ReplicationRole
fromString
(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, hashCode, toString, values
-
Field Details
-
NONE
Static value None for ReplicationRole. -
PRIMARY
Static value Primary for ReplicationRole. -
SECONDARY
Static value Secondary for ReplicationRole. -
WAL_REPLICA
Static value WalReplica for ReplicationRole. -
SYNC_REPLICA
Static value SyncReplica for ReplicationRole. -
ASYNC_REPLICA
Static value AsyncReplica for ReplicationRole. -
GEO_SYNC_REPLICA
Static value GeoSyncReplica 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.