com.aliyun.oss.model

## 枚举 ReplicationStatus

- java.lang.Object
- - java.lang.Enum<ReplicationStatus>
  - - com.aliyun.oss.model.ReplicationStatus

- 所有已实现的接口:
    Serializable, Comparable<ReplicationStatus>

      public enum ReplicationStatus
      extends Enum<ReplicationStatus>

  The status of cross region replication.

  Currently we have starting，doing，closing three status. After PutBucketReplication is sent, OSS start preparing the replication and at this point the status is 'starting'. And when the replication actually happens, the status is "doing". And once DeleteBucketReplication is called, the OSS will do the cleanup work for the replication and the status will be "closing".

- - ### 枚举常量概要

    枚举常量
    枚举常量和说明
    `Closing` Cleaning up the replication.
    `Doing` Doing the replication.
    `Starting` Preparing the replication.

  - ### 方法概要

    方法
    限定符和类型 | 方法和说明
    --- | ---
    `static ReplicationStatus` | `parse(String replicationStatus)`
    `String` | `toString()`
    `static ReplicationStatus` | `valueOf(String name)` 返回带有指定名称的该类型的枚举常量。
    `static ReplicationStatus[]` | `values()` 按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。

    - ### 从类继承的方法 java.lang.Enum

      `clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf`

    - ### 从类继承的方法 java.lang.Object

      `getClass, notify, notifyAll, wait, wait, wait`

- - ### 枚举常量详细资料

    - #### Starting

          public static final ReplicationStatus Starting

      Preparing the replication.

    - #### Doing

          public static final ReplicationStatus Doing

      Doing the replication.

    - #### Closing

          public static final ReplicationStatus Closing

      Cleaning up the replication.

  - ### 方法详细资料

    - #### values

          public static ReplicationStatus[] values()

      按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。该方法可用于迭代 常量, 如下所示:

          for (ReplicationStatus c : ReplicationStatus.values())
              System.out.println(c);

      返回:
        按照声明该枚举类型的常量的顺序返回的包含这些常量的数组

    - #### valueOf

          public static ReplicationStatus valueOf(String name)

      返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)
      参数:
        `name` - 要返回的枚举常量的名称。
      返回:
        返回带有指定名称的枚举常量
      抛出:
        `IllegalArgumentException` - 如果该枚举类型没有带有指定名称的常量
        `NullPointerException` - 如果参数为空值

    - #### toString

          public String toString()

      覆盖:
        `toString` 在类中 `Enum<ReplicationStatus>`

    - #### parse

          public static ReplicationStatus parse(String replicationStatus)

Copyright © 2020. All Rights Reserved.