@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class BucketServerSideEncryption extends Object implements Serializable, Cloneable, StructuredPojo
Provides information about the default server-side encryption settings for an S3 bucket. For detailed information about these settings, see Setting default server-side encryption behavior for Amazon S3 buckets in the Amazon Simple Storage Service User Guide.
Constructor and Description |
---|
BucketServerSideEncryption() |
Modifier and Type | Method and Description |
---|---|
BucketServerSideEncryption |
clone() |
boolean |
equals(Object obj) |
String |
getKmsMasterKeyId()
The Amazon Resource Name (ARN) or unique identifier (key ID) for the KMS key that's used by default to encrypt
objects that are added to the bucket.
|
String |
getType()
The server-side encryption algorithm that's used by default to encrypt objects that are added to the bucket.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setKmsMasterKeyId(String kmsMasterKeyId)
The Amazon Resource Name (ARN) or unique identifier (key ID) for the KMS key that's used by default to encrypt
objects that are added to the bucket.
|
void |
setType(String type)
The server-side encryption algorithm that's used by default to encrypt objects that are added to the bucket.
|
String |
toString()
Returns a string representation of this object.
|
BucketServerSideEncryption |
withKmsMasterKeyId(String kmsMasterKeyId)
The Amazon Resource Name (ARN) or unique identifier (key ID) for the KMS key that's used by default to encrypt
objects that are added to the bucket.
|
BucketServerSideEncryption |
withType(String type)
The server-side encryption algorithm that's used by default to encrypt objects that are added to the bucket.
|
BucketServerSideEncryption |
withType(Type type)
The server-side encryption algorithm that's used by default to encrypt objects that are added to the bucket.
|
public void setKmsMasterKeyId(String kmsMasterKeyId)
The Amazon Resource Name (ARN) or unique identifier (key ID) for the KMS key that's used by default to encrypt objects that are added to the bucket. This value is null if the bucket is configured to use an Amazon S3 managed key to encrypt new objects.
kmsMasterKeyId
- The Amazon Resource Name (ARN) or unique identifier (key ID) for the KMS key that's used by default to
encrypt objects that are added to the bucket. This value is null if the bucket is configured to use an
Amazon S3 managed key to encrypt new objects.public String getKmsMasterKeyId()
The Amazon Resource Name (ARN) or unique identifier (key ID) for the KMS key that's used by default to encrypt objects that are added to the bucket. This value is null if the bucket is configured to use an Amazon S3 managed key to encrypt new objects.
public BucketServerSideEncryption withKmsMasterKeyId(String kmsMasterKeyId)
The Amazon Resource Name (ARN) or unique identifier (key ID) for the KMS key that's used by default to encrypt objects that are added to the bucket. This value is null if the bucket is configured to use an Amazon S3 managed key to encrypt new objects.
kmsMasterKeyId
- The Amazon Resource Name (ARN) or unique identifier (key ID) for the KMS key that's used by default to
encrypt objects that are added to the bucket. This value is null if the bucket is configured to use an
Amazon S3 managed key to encrypt new objects.public void setType(String type)
The server-side encryption algorithm that's used by default to encrypt objects that are added to the bucket. Possible values are:
AES256 - New objects use SSE-S3 encryption. They're encrypted with an Amazon S3 managed key.
aws:kms - New objects use SSE-KMS encryption. They're encrypted with an KMS key (kmsMasterKeyId), either an Amazon Web Services managed key or a customer managed key.
aws:kms:dsse - New objects use DSSE-KMS encryption. They're encrypted with an KMS key (kmsMasterKeyId), either an Amazon Web Services managed key or a customer managed key.
NONE - The bucket's default encryption settings don't specify server-side encryption behavior for new objects.
type
- The server-side encryption algorithm that's used by default to encrypt objects that are added to the
bucket. Possible values are:
AES256 - New objects use SSE-S3 encryption. They're encrypted with an Amazon S3 managed key.
aws:kms - New objects use SSE-KMS encryption. They're encrypted with an KMS key (kmsMasterKeyId), either an Amazon Web Services managed key or a customer managed key.
aws:kms:dsse - New objects use DSSE-KMS encryption. They're encrypted with an KMS key (kmsMasterKeyId), either an Amazon Web Services managed key or a customer managed key.
NONE - The bucket's default encryption settings don't specify server-side encryption behavior for new objects.
Type
public String getType()
The server-side encryption algorithm that's used by default to encrypt objects that are added to the bucket. Possible values are:
AES256 - New objects use SSE-S3 encryption. They're encrypted with an Amazon S3 managed key.
aws:kms - New objects use SSE-KMS encryption. They're encrypted with an KMS key (kmsMasterKeyId), either an Amazon Web Services managed key or a customer managed key.
aws:kms:dsse - New objects use DSSE-KMS encryption. They're encrypted with an KMS key (kmsMasterKeyId), either an Amazon Web Services managed key or a customer managed key.
NONE - The bucket's default encryption settings don't specify server-side encryption behavior for new objects.
AES256 - New objects use SSE-S3 encryption. They're encrypted with an Amazon S3 managed key.
aws:kms - New objects use SSE-KMS encryption. They're encrypted with an KMS key (kmsMasterKeyId), either an Amazon Web Services managed key or a customer managed key.
aws:kms:dsse - New objects use DSSE-KMS encryption. They're encrypted with an KMS key (kmsMasterKeyId), either an Amazon Web Services managed key or a customer managed key.
NONE - The bucket's default encryption settings don't specify server-side encryption behavior for new objects.
Type
public BucketServerSideEncryption withType(String type)
The server-side encryption algorithm that's used by default to encrypt objects that are added to the bucket. Possible values are:
AES256 - New objects use SSE-S3 encryption. They're encrypted with an Amazon S3 managed key.
aws:kms - New objects use SSE-KMS encryption. They're encrypted with an KMS key (kmsMasterKeyId), either an Amazon Web Services managed key or a customer managed key.
aws:kms:dsse - New objects use DSSE-KMS encryption. They're encrypted with an KMS key (kmsMasterKeyId), either an Amazon Web Services managed key or a customer managed key.
NONE - The bucket's default encryption settings don't specify server-side encryption behavior for new objects.
type
- The server-side encryption algorithm that's used by default to encrypt objects that are added to the
bucket. Possible values are:
AES256 - New objects use SSE-S3 encryption. They're encrypted with an Amazon S3 managed key.
aws:kms - New objects use SSE-KMS encryption. They're encrypted with an KMS key (kmsMasterKeyId), either an Amazon Web Services managed key or a customer managed key.
aws:kms:dsse - New objects use DSSE-KMS encryption. They're encrypted with an KMS key (kmsMasterKeyId), either an Amazon Web Services managed key or a customer managed key.
NONE - The bucket's default encryption settings don't specify server-side encryption behavior for new objects.
Type
public BucketServerSideEncryption withType(Type type)
The server-side encryption algorithm that's used by default to encrypt objects that are added to the bucket. Possible values are:
AES256 - New objects use SSE-S3 encryption. They're encrypted with an Amazon S3 managed key.
aws:kms - New objects use SSE-KMS encryption. They're encrypted with an KMS key (kmsMasterKeyId), either an Amazon Web Services managed key or a customer managed key.
aws:kms:dsse - New objects use DSSE-KMS encryption. They're encrypted with an KMS key (kmsMasterKeyId), either an Amazon Web Services managed key or a customer managed key.
NONE - The bucket's default encryption settings don't specify server-side encryption behavior for new objects.
type
- The server-side encryption algorithm that's used by default to encrypt objects that are added to the
bucket. Possible values are:
AES256 - New objects use SSE-S3 encryption. They're encrypted with an Amazon S3 managed key.
aws:kms - New objects use SSE-KMS encryption. They're encrypted with an KMS key (kmsMasterKeyId), either an Amazon Web Services managed key or a customer managed key.
aws:kms:dsse - New objects use DSSE-KMS encryption. They're encrypted with an KMS key (kmsMasterKeyId), either an Amazon Web Services managed key or a customer managed key.
NONE - The bucket's default encryption settings don't specify server-side encryption behavior for new objects.
Type
public String toString()
toString
in class Object
Object.toString()
public BucketServerSideEncryption clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.