@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ServerSideEncryption extends Object implements Serializable, Cloneable, StructuredPojo
Provides information about the default server-side encryption settings for an S3 bucket or the encryption settings for an 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 Amazon Resource Name (ARN) or unique identifier (key ID) for the KMS key that's used to encrypt data in the
bucket or the 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 Amazon Resource Name (ARN) or unique identifier (key ID) for the KMS key that's used to encrypt data in the
bucket or the 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 Amazon Resource Name (ARN) or unique identifier (key ID) for the KMS key that's used to encrypt data in the
bucket or the object.
|
public void setEncryptionType(String encryptionType)
The server-side encryption algorithm that's used when storing data in the bucket or object. If default encryption settings aren't configured for the bucket or the object isn't encrypted using server-side encryption, this value is NONE.
encryptionType - The server-side encryption algorithm that's used when storing data in the bucket or object. If default
encryption settings aren't configured for the bucket or the object isn't encrypted using server-side
encryption, this value is NONE.EncryptionTypepublic String getEncryptionType()
The server-side encryption algorithm that's used when storing data in the bucket or object. If default encryption settings aren't configured for the bucket or the object isn't encrypted using server-side encryption, 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 default encryption settings aren't configured for the bucket or the object isn't encrypted using server-side encryption, this value is NONE.
encryptionType - The server-side encryption algorithm that's used when storing data in the bucket or object. If default
encryption settings aren't configured for the bucket or the object isn't encrypted using server-side
encryption, 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 default encryption settings aren't configured for the bucket or the object isn't encrypted using server-side encryption, this value is NONE.
encryptionType - The server-side encryption algorithm that's used when storing data in the bucket or object. If default
encryption settings aren't configured for the bucket or the object isn't encrypted using server-side
encryption, this value is NONE.EncryptionTypepublic void setKmsMasterKeyId(String kmsMasterKeyId)
The Amazon Resource Name (ARN) or unique identifier (key ID) for the KMS key that's used to encrypt data in the bucket or the object. This value is null if an KMS key isn't used to encrypt the data.
kmsMasterKeyId - The Amazon Resource Name (ARN) or unique identifier (key ID) for the KMS key that's used to encrypt data
in the bucket or the object. This value is null if an KMS key isn't used to encrypt the data.public String getKmsMasterKeyId()
The Amazon Resource Name (ARN) or unique identifier (key ID) for the KMS key that's used to encrypt data in the bucket or the object. This value is null if an KMS key isn't used to encrypt the data.
public ServerSideEncryption withKmsMasterKeyId(String kmsMasterKeyId)
The Amazon Resource Name (ARN) or unique identifier (key ID) for the KMS key that's used to encrypt data in the bucket or the object. This value is null if an KMS key isn't used to encrypt the data.
kmsMasterKeyId - The Amazon Resource Name (ARN) or unique identifier (key ID) for the KMS key that's used to encrypt data
in the bucket or the object. This value is null if an KMS key isn't used to encrypt the data.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.