public class Encryption extends Object implements Serializable, Cloneable
Constructor and Description |
---|
Encryption() |
Modifier and Type | Method and Description |
---|---|
Encryption |
clone() |
boolean |
equals(Object obj) |
String |
getEncryptionType() |
String |
getKmsContext() |
String |
getKmsKeyId()
If the encryption type is
aws:kms , this optional value specifies the ID of the symmetric encryption
customer managed key to use for encryption of job results. |
int |
hashCode() |
void |
setEncryptionType(String encryptionType)
Sets the server-side encryption algorithm used when storing job results in Amazon S3 (e.g., AES256,
aws:kms ). |
void |
setKmsContext(String kmsContext)
Sets the optional value used to specify the encryption context for the restore results if the encryption type is
aws:kms . |
void |
setKmsKeyId(String kmsKeyId)
If the encryption type is
aws:kms , this optional value specifies the ID of the symmetric encryption
customer managed key to use for encryption of job results. |
String |
toString() |
Encryption |
withEncryptionType(SSEAlgorithm encryptionType)
Sets the encryptionType
|
Encryption |
withEncryptionType(String encryptionType)
Sets the encryptionType
|
Encryption |
withKmsContext(String kmsContext)
Sets the optional value used to specify the encryption context for the restore results if the encryption type is
aws:kms . |
Encryption |
withKmsKeyId(String kmsKeyId)
If the encryption type is
aws:kms , this optional value specifies the ID of the symmetric encryption
customer managed key to use for encryption of job results. |
public String getEncryptionType()
aws:kms
).public void setEncryptionType(String encryptionType)
aws:kms
).encryptionType
- The new encryptionType value.public Encryption withEncryptionType(String encryptionType)
encryptionType
- The new encryptionType value.public Encryption withEncryptionType(SSEAlgorithm encryptionType)
encryptionType
- The new encryptionType value.public String getKmsKeyId()
If the encryption type is aws:kms
, this optional value specifies the ID of the symmetric encryption
customer managed key to use for encryption of job results. Amazon S3 only supports symmetric encryption KMS keys.
For more information, see Asymmetric keys in Amazon
Web Services KMS in the Amazon Web Services Key Management Service Developer Guide.
aws:kms
, this optional value specifies the ID of the symmetric
encryption customer managed key to use for encryption of job results. Amazon S3 only supports symmetric
encryption KMS keys. For more information, see Asymmetric keys in
Amazon Web Services KMS in the Amazon Web Services Key Management Service Developer Guide.public void setKmsKeyId(String kmsKeyId)
If the encryption type is aws:kms
, this optional value specifies the ID of the symmetric encryption
customer managed key to use for encryption of job results. Amazon S3 only supports symmetric encryption KMS keys.
For more information, see Asymmetric keys in Amazon
Web Services KMS in the Amazon Web Services Key Management Service Developer Guide.
kmsKeyId
- If the encryption type is aws:kms
, this optional value specifies the ID of the symmetric
encryption customer managed key to use for encryption of job results. Amazon S3 only supports symmetric
encryption KMS keys. For more information, see Asymmetric keys in
Amazon Web Services KMS in the Amazon Web Services Key Management Service Developer Guide.public Encryption withKmsKeyId(String kmsKeyId)
If the encryption type is aws:kms
, this optional value specifies the ID of the symmetric encryption
customer managed key to use for encryption of job results. Amazon S3 only supports symmetric encryption KMS keys.
For more information, see Asymmetric keys in Amazon
Web Services KMS in the Amazon Web Services Key Management Service Developer Guide.
kmsKeyId
- If the encryption type is aws:kms
, this optional value specifies the ID of the symmetric
encryption customer managed key to use for encryption of job results. Amazon S3 only supports symmetric
encryption KMS keys. For more information, see Asymmetric keys in
Amazon Web Services KMS in the Amazon Web Services Key Management Service Developer Guide.public String getKmsContext()
public void setKmsContext(String kmsContext)
aws:kms
.kmsContext
- The new kmsContext value.public Encryption withKmsContext(String kmsContext)
aws:kms
.kmsContext
- The new kmsContext value.public Encryption clone()