com.aliyun.oss.model

## 类 ServerSideEncryptionConfiguration

- java.lang.Object
- - com.aliyun.oss.model.ServerSideEncryptionConfiguration

-     public class ServerSideEncryptionConfiguration
      extends Object

  Container for server-side encryption configuration rules. Currently OSS supports one rule only.

- - ### 构造器概要

    构造器
    构造器和说明
    `ServerSideEncryptionConfiguration()`

  - ### 方法概要

    方法
    限定符和类型 | 方法和说明
    --- | ---
    `ServerSideEncryptionByDefault` | `getApplyServerSideEncryptionByDefault()` Describes the default server-side encryption to apply to new objects in the bucket.
    `void` | `setApplyServerSideEncryptionByDefault(ServerSideEncryptionByDefault applyServerSideEncryptionByDefault)` Sets the default server-side encryption to apply to new objects in the bucket.
    `ServerSideEncryptionConfiguration` | `withApplyServerSideEncryptionByDefault(ServerSideEncryptionByDefault applyServerSideEncryptionByDefault)` Sets the default server-side encryption to apply to new objects in the bucket.

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

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造器详细资料

    - #### ServerSideEncryptionConfiguration

          public ServerSideEncryptionConfiguration()

  - ### 方法详细资料

    - #### getApplyServerSideEncryptionByDefault

          public ServerSideEncryptionByDefault getApplyServerSideEncryptionByDefault()

      Describes the default server-side encryption to apply to new objects in the bucket. If Put Object request does not specify any server-side encryption, this default encryption will be applied.
      返回:
        The current `ServerSideEncryptionByDefault`

    - #### setApplyServerSideEncryptionByDefault

          public void setApplyServerSideEncryptionByDefault(ServerSideEncryptionByDefault applyServerSideEncryptionByDefault)

      Sets the default server-side encryption to apply to new objects in the bucket. If Put Object request does not specify any server-side encryption, this default encryption will be applied.
      参数:
        `applyServerSideEncryptionByDefault` - New default SSE configuration.

    - #### withApplyServerSideEncryptionByDefault

          public ServerSideEncryptionConfiguration withApplyServerSideEncryptionByDefault(ServerSideEncryptionByDefault applyServerSideEncryptionByDefault)

      Sets the default server-side encryption to apply to new objects in the bucket. If Put Object request does not specify any server-side encryption, this default encryption will be applied.
      参数:
        `applyServerSideEncryptionByDefault` - New default SSE configuration.
      返回:
        This object for method chaining.

Copyright © 2020. All Rights Reserved.