@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ServerSideEncryption extends Object implements Serializable, Cloneable, StructuredPojo
Provides information about the server-side encryption settings for an S3 bucket or S3 object.
| Constructor and Description | 
|---|
| ServerSideEncryption() | 
| Modifier and Type | Method and Description | 
|---|---|
| ServerSideEncryption | clone() | 
| boolean | equals(Object obj) | 
| String | getEncryptionType()
 The server-side encryption algorithm that's used when storing data in the bucket or object. | 
| String | getKmsMasterKeyId()
 The unique identifier for the AWS Key Management Service (AWS KMS) master key that's used to encrypt the bucket
 or object. | 
| int | hashCode() | 
| void | marshall(ProtocolMarshaller protocolMarshaller)Marshalls this structured data using the given  ProtocolMarshaller. | 
| void | setEncryptionType(String encryptionType)
 The server-side encryption algorithm that's used when storing data in the bucket or object. | 
| void | setKmsMasterKeyId(String kmsMasterKeyId)
 The unique identifier for the AWS Key Management Service (AWS KMS) master key that's used to encrypt the bucket
 or object. | 
| String | toString()Returns a string representation of this object. | 
| ServerSideEncryption | withEncryptionType(EncryptionType encryptionType)
 The server-side encryption algorithm that's used when storing data in the bucket or object. | 
| ServerSideEncryption | withEncryptionType(String encryptionType)
 The server-side encryption algorithm that's used when storing data in the bucket or object. | 
| ServerSideEncryption | withKmsMasterKeyId(String kmsMasterKeyId)
 The unique identifier for the AWS Key Management Service (AWS KMS) master key that's used to encrypt the bucket
 or object. | 
public void setEncryptionType(String encryptionType)
The server-side encryption algorithm that's used when storing data in the bucket or object. If encryption is disabled for the bucket or object, this value is NONE.
encryptionType - The server-side encryption algorithm that's used when storing data in the bucket or object. If encryption
        is disabled for the bucket or object, this value is NONE.EncryptionTypepublic String getEncryptionType()
The server-side encryption algorithm that's used when storing data in the bucket or object. If encryption is disabled for the bucket or object, this value is NONE.
EncryptionTypepublic ServerSideEncryption withEncryptionType(String encryptionType)
The server-side encryption algorithm that's used when storing data in the bucket or object. If encryption is disabled for the bucket or object, this value is NONE.
encryptionType - The server-side encryption algorithm that's used when storing data in the bucket or object. If encryption
        is disabled for the bucket or object, this value is NONE.EncryptionTypepublic ServerSideEncryption withEncryptionType(EncryptionType encryptionType)
The server-side encryption algorithm that's used when storing data in the bucket or object. If encryption is disabled for the bucket or object, this value is NONE.
encryptionType - The server-side encryption algorithm that's used when storing data in the bucket or object. If encryption
        is disabled for the bucket or object, this value is NONE.EncryptionTypepublic void setKmsMasterKeyId(String kmsMasterKeyId)
The unique identifier for the AWS Key Management Service (AWS KMS) master key that's used to encrypt the bucket or object. This value is null if AWS KMS isn't used to encrypt the bucket or object.
kmsMasterKeyId - The unique identifier for the AWS Key Management Service (AWS KMS) master key that's used to encrypt the
        bucket or object. This value is null if AWS KMS isn't used to encrypt the bucket or object.public String getKmsMasterKeyId()
The unique identifier for the AWS Key Management Service (AWS KMS) master key that's used to encrypt the bucket or object. This value is null if AWS KMS isn't used to encrypt the bucket or object.
public ServerSideEncryption withKmsMasterKeyId(String kmsMasterKeyId)
The unique identifier for the AWS Key Management Service (AWS KMS) master key that's used to encrypt the bucket or object. This value is null if AWS KMS isn't used to encrypt the bucket or object.
kmsMasterKeyId - The unique identifier for the AWS Key Management Service (AWS KMS) master key that's used to encrypt the
        bucket or object. This value is null if AWS KMS isn't used to encrypt the bucket or object.public String toString()
toString in class ObjectObject.toString()public ServerSideEncryption clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.