com.aliyun.oss.model

## 类 SetBucketEncryptionRequest

- java.lang.Object
- - com.aliyun.oss.model.WebServiceRequest
  - - com.aliyun.oss.model.GenericRequest
    - - com.aliyun.oss.model.SetBucketEncryptionRequest

-     public class SetBucketEncryptionRequest
      extends GenericRequest

  Represents the input of a `PutBucketEncryption` operation.

- - ### 字段概要

    - ### 从类继承的字段 com.aliyun.oss.model.WebServiceRequest

      `NOOP`

  - ### 构造器概要

    构造器
    构造器和说明
    `SetBucketEncryptionRequest(String bucketName)`
    `SetBucketEncryptionRequest(String bucketName, ServerSideEncryptionConfiguration serverSideEncryptionConfiguration)`

  - ### 方法概要

    方法
    限定符和类型 | 方法和说明
    --- | ---
    `ServerSideEncryptionConfiguration` | `getServerSideEncryptionConfiguration()`
    `void` | `setServerSideEncryptionConfiguration(ServerSideEncryptionConfiguration serverSideEncryptionConfiguration)` Sets the container for server-side encryption configuration rules.
    `SetBucketEncryptionRequest` | `withServerSideEncryptionConfiguration(ServerSideEncryptionConfiguration serverSideEncryptionConfiguration)` Sets the container for server-side encryption configuration rules.

    - ### 从类继承的方法 com.aliyun.oss.model.GenericRequest

      `getBucketName, getKey, getRequestPayer, getVersionId, setBucketName, setKey, setRequestPayer, setVersionId, withBucketName, withKey, withRequestPayer, withVersionId`

    - ### 从类继承的方法 com.aliyun.oss.model.WebServiceRequest

      `addAdditionalHeaderName, addHeader, addParameter, getAdditionalHeaderNames, getHeaders, getParameters, getProgressListener, isLogEnabled, setAdditionalHeaderNames, setHeaders, setLogEnabled, setParameters, setProgressListener, withProgressListener`

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

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

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

    - #### SetBucketEncryptionRequest

          public SetBucketEncryptionRequest(String bucketName)

    - #### SetBucketEncryptionRequest

          public SetBucketEncryptionRequest(String bucketName,
                                    ServerSideEncryptionConfiguration serverSideEncryptionConfiguration)

  - ### 方法详细资料

    - #### getServerSideEncryptionConfiguration

          public ServerSideEncryptionConfiguration getServerSideEncryptionConfiguration()

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

    - #### setServerSideEncryptionConfiguration

          public void setServerSideEncryptionConfiguration(ServerSideEncryptionConfiguration serverSideEncryptionConfiguration)

      Sets the container for server-side encryption configuration rules. Currently OSS supports one rule only.
      参数:
        `serverSideEncryptionConfiguration` - New configuration.

    - #### withServerSideEncryptionConfiguration

          public SetBucketEncryptionRequest withServerSideEncryptionConfiguration(ServerSideEncryptionConfiguration serverSideEncryptionConfiguration)

      Sets the container for server-side encryption configuration rules. Currently OSS supports one rule only.
      参数:
        `serverSideEncryptionConfiguration` - New configuration.
      返回:
        This object for method chaining.

Copyright © 2020. All Rights Reserved.