com.aliyun.oss.model

## 类 ServerSideEncryptionByDefault

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

-     public class ServerSideEncryptionByDefault
      extends Object

  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.

- - ### 构造器概要

    构造器
    构造器和说明
    `ServerSideEncryptionByDefault()` Creates a default instance.
    `ServerSideEncryptionByDefault(SSEAlgorithm sseAlgorithm)` Creates an instance.
    `ServerSideEncryptionByDefault(String sseAlgorithm)` Creates an instance.

  - ### 方法概要

    方法
    限定符和类型 | 方法和说明
    --- | ---
    `String` | `getKMSDataEncryption()`
    `String` | `getKMSMasterKeyID()`
    `String` | `getSSEAlgorithm()`
    `void` | `setKMSDataEncryption(String kmsDataEncryption)` Sets the KMS data encryption.
    `void` | `setKMSMasterKeyID(String kmsMasterKeyID)` Sets the KMS master key ID to use for the default encryption.
    `void` | `setSSEAlgorithm(SSEAlgorithm sseAlgorithm)` Sets the server-side encryption algorithm to use for the default encryption.
    `void` | `setSSEAlgorithm(String sseAlgorithm)` Sets the server-side encryption algorithm to use for the default encryption.
    `ServerSideEncryptionByDefault` | `withKMSDataEncryption(String kmsDataEncryption)` Sets the KMS data encryption.
    `ServerSideEncryptionByDefault` | `withKMSMasterKeyID(String kmsMasterKeyID)` Sets the KMS master key ID to use for the default encryption.
    `ServerSideEncryptionByDefault` | `withSSEAlgorithm(SSEAlgorithm sseAlgorithm)` Sets the server-side encryption algorithm to use for the default encryption.
    `ServerSideEncryptionByDefault` | `withSSEAlgorithm(String sseAlgorithm)` Sets the server-side encryption algorithm to use for the default encryption.

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

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

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

    - #### ServerSideEncryptionByDefault

          public ServerSideEncryptionByDefault()

      Creates a default instance.

    - #### ServerSideEncryptionByDefault

          public ServerSideEncryptionByDefault(String sseAlgorithm)

      Creates an instance.
      参数:
        `sseAlgorithm` - SSE algorithm to use.

    - #### ServerSideEncryptionByDefault

          public ServerSideEncryptionByDefault(SSEAlgorithm sseAlgorithm)

      Creates an instance.
      参数:
        `sseAlgorithm` - SSE algorithm to use.

  - ### 方法详细资料

    - #### getSSEAlgorithm

          public String getSSEAlgorithm()

      返回:
        Server-side encryption algorithm to use for the default encryption.

    - #### setSSEAlgorithm

          public void setSSEAlgorithm(String sseAlgorithm)

      Sets the server-side encryption algorithm to use for the default encryption.
      参数:
        `sseAlgorithm` - SSE algorithm to use.

    - #### setSSEAlgorithm

          public void setSSEAlgorithm(SSEAlgorithm sseAlgorithm)

      Sets the server-side encryption algorithm to use for the default encryption.
      参数:
        `sseAlgorithm` - SSE algorithm to use.

    - #### withSSEAlgorithm

          public ServerSideEncryptionByDefault withSSEAlgorithm(String sseAlgorithm)

      Sets the server-side encryption algorithm to use for the default encryption.
      参数:
        `sseAlgorithm` - SSE algorithm to use.
      返回:
        This object for method chaining.

    - #### withSSEAlgorithm

          public ServerSideEncryptionByDefault withSSEAlgorithm(SSEAlgorithm sseAlgorithm)

      Sets the server-side encryption algorithm to use for the default encryption.
      参数:
        `sseAlgorithm` - SSE algorithm to use.
      返回:
        This object for method chaining.

    - #### getKMSMasterKeyID

          public String getKMSMasterKeyID()

      返回:
        KMS master key ID to use for the default encryption. This parameter is allowed if SSEAlgorithm is kms.

    - #### setKMSMasterKeyID

          public void setKMSMasterKeyID(String kmsMasterKeyID)

      Sets the KMS master key ID to use for the default encryption. This parameter is allowed if SSEAlgorithm is kms.
      参数:
        `kmsMasterKeyID` - KMS key to use.

    - #### withKMSMasterKeyID

          public ServerSideEncryptionByDefault withKMSMasterKeyID(String kmsMasterKeyID)

      Sets the KMS master key ID to use for the default encryption. This parameter is allowed if SSEAlgorithm is kms.
      参数:
        `kmsMasterKeyID` - KMS key to use.
      返回:
        This object for method chaining.

    - #### getKMSDataEncryption

          public String getKMSDataEncryption()

      返回:
        This parameter is allowed if SSEAlgorithm is kms.

    - #### setKMSDataEncryption

          public void setKMSDataEncryption(String kmsDataEncryption)

      Sets the KMS data encryption. This parameter is allowed if SSEAlgorithm is kms.
      参数:
        `kmsDataEncryption` - KMS data encryption to use.

    - #### withKMSDataEncryption

          public ServerSideEncryptionByDefault withKMSDataEncryption(String kmsDataEncryption)

      Sets the KMS data encryption. This parameter is allowed if SSEAlgorithm is kms.
      参数:
        `kmsDataEncryption` - KMS data encryption to use.
      返回:
        This object for method chaining.

Copyright © 2020. All Rights Reserved.