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 Details

    • NONE

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

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

      public static final ReplicationRole ASYNC_REPLICA
      Static value AsyncReplica 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.