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 Details

    • NONE

      public static final ReplicationRole NONE
      Static value None for ReplicationRole.
    • PRIMARY

      public static final ReplicationRole PRIMARY
      Static value Primary for ReplicationRole.
    • SECONDARY

      public static final ReplicationRole SECONDARY
      Static value Secondary for ReplicationRole.
    • WAL_REPLICA

      public static final ReplicationRole WAL_REPLICA
      Static value WalReplica for ReplicationRole.
    • SYNC_REPLICA

      public static final ReplicationRole SYNC_REPLICA
      Static value SyncReplica for ReplicationRole.
    • ASYNC_REPLICA

      public static final ReplicationRole ASYNC_REPLICA
      Static value AsyncReplica for ReplicationRole.
    • GEO_SYNC_REPLICA

      public static final ReplicationRole GEO_SYNC_REPLICA
      Static value GeoSyncReplica for ReplicationRole.
    • GEO_ASYNC_REPLICA

      public static final ReplicationRole GEO_ASYNC_REPLICA
      Static value GeoAsyncReplica for ReplicationRole.
  • Constructor Details

    • ReplicationRole

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

    • fromString

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

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