@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 type of server-side encryption that's used by default when storing new objects in 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 type of server-side encryption that's used by default when storing new objects in 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 type of server-side encryption that's used by default when storing new objects in the bucket.
|
BucketServerSideEncryption |
withType(Type type)
The type of server-side encryption that's used by default when storing new objects in 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 uses an Amazon S3 managed key to encrypt new objects or the bucket doesn't encrypt new objects by default.
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 uses an Amazon S3 managed
key to encrypt new objects or the bucket doesn't encrypt new objects by default.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 uses an Amazon S3 managed key to encrypt new objects or the bucket doesn't encrypt new objects by default.
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 uses an Amazon S3 managed key to encrypt new objects or the bucket doesn't encrypt new objects by default.
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 uses an Amazon S3 managed
key to encrypt new objects or the bucket doesn't encrypt new objects by default.public void setType(String type)
The type of server-side encryption that's used by default when storing new objects in the bucket. Possible values are:
AES256 - New objects are encrypted with an Amazon S3 managed key. They use SSE-S3 encryption.
aws:kms - New objects are encrypted with an KMS key (kmsMasterKeyId), either an Amazon Web Services managed key or a customer managed key. They use SSE-KMS encryption.
NONE - New objects aren't encrypted by default. Default encryption is disabled for the bucket.
type
- The type of server-side encryption that's used by default when storing new objects in the bucket. Possible
values are:
AES256 - New objects are encrypted with an Amazon S3 managed key. They use SSE-S3 encryption.
aws:kms - New objects are encrypted with an KMS key (kmsMasterKeyId), either an Amazon Web Services managed key or a customer managed key. They use SSE-KMS encryption.
NONE - New objects aren't encrypted by default. Default encryption is disabled for the bucket.
Type
public String getType()
The type of server-side encryption that's used by default when storing new objects in the bucket. Possible values are:
AES256 - New objects are encrypted with an Amazon S3 managed key. They use SSE-S3 encryption.
aws:kms - New objects are encrypted with an KMS key (kmsMasterKeyId), either an Amazon Web Services managed key or a customer managed key. They use SSE-KMS encryption.
NONE - New objects aren't encrypted by default. Default encryption is disabled for the bucket.
AES256 - New objects are encrypted with an Amazon S3 managed key. They use SSE-S3 encryption.
aws:kms - New objects are encrypted with an KMS key (kmsMasterKeyId), either an Amazon Web Services managed key or a customer managed key. They use SSE-KMS encryption.
NONE - New objects aren't encrypted by default. Default encryption is disabled for the bucket.
Type
public BucketServerSideEncryption withType(String type)
The type of server-side encryption that's used by default when storing new objects in the bucket. Possible values are:
AES256 - New objects are encrypted with an Amazon S3 managed key. They use SSE-S3 encryption.
aws:kms - New objects are encrypted with an KMS key (kmsMasterKeyId), either an Amazon Web Services managed key or a customer managed key. They use SSE-KMS encryption.
NONE - New objects aren't encrypted by default. Default encryption is disabled for the bucket.
type
- The type of server-side encryption that's used by default when storing new objects in the bucket. Possible
values are:
AES256 - New objects are encrypted with an Amazon S3 managed key. They use SSE-S3 encryption.
aws:kms - New objects are encrypted with an KMS key (kmsMasterKeyId), either an Amazon Web Services managed key or a customer managed key. They use SSE-KMS encryption.
NONE - New objects aren't encrypted by default. Default encryption is disabled for the bucket.
Type
public BucketServerSideEncryption withType(Type type)
The type of server-side encryption that's used by default when storing new objects in the bucket. Possible values are:
AES256 - New objects are encrypted with an Amazon S3 managed key. They use SSE-S3 encryption.
aws:kms - New objects are encrypted with an KMS key (kmsMasterKeyId), either an Amazon Web Services managed key or a customer managed key. They use SSE-KMS encryption.
NONE - New objects aren't encrypted by default. Default encryption is disabled for the bucket.
type
- The type of server-side encryption that's used by default when storing new objects in the bucket. Possible
values are:
AES256 - New objects are encrypted with an Amazon S3 managed key. They use SSE-S3 encryption.
aws:kms - New objects are encrypted with an KMS key (kmsMasterKeyId), either an Amazon Web Services managed key or a customer managed key. They use SSE-KMS encryption.
NONE - New objects aren't encrypted by default. Default encryption is disabled for the bucket.
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.