@Generated(value="software.amazon.awssdk:codegen") public final class BucketServerSideEncryption extends Object implements SdkPojo, Serializable, ToCopyableBuilder<BucketServerSideEncryption.Builder,BucketServerSideEncryption>
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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
BucketServerSideEncryption.Builder |
| Modifier and Type | Method and Description |
|---|---|
static BucketServerSideEncryption.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
kmsMasterKeyId()
The Amazon Resource Name (ARN) or unique identifier (key ID) for the AWS Key Management Service (AWS KMS)
customer master key (CMK) that's used by default to encrypt objects that are added to the bucket.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends BucketServerSideEncryption.Builder> |
serializableBuilderClass() |
BucketServerSideEncryption.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Type |
type()
The type of server-side encryption that's used by default when storing new objects in the bucket.
|
String |
typeAsString()
The type of server-side encryption that's used by default when storing new objects in the bucket.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String kmsMasterKeyId()
The Amazon Resource Name (ARN) or unique identifier (key ID) for the AWS Key Management Service (AWS KMS) customer master key (CMK) 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 final 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 and use Amazon S3 managed encryption (SSE-S3).
aws:kms - New objects are encrypted with an AWS KMS CMK, specified by the kmsMasterKeyId property, and use AWS managed AWS KMS encryption (AWS-KMS) or customer managed AWS KMS encryption (SSE-KMS).
NONE - New objects aren't encrypted by default. Default encryption is disabled for the bucket.
If the service returns an enum value that is not available in the current SDK version, type will return
Type.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
AES256 - New objects are encrypted with an Amazon S3 managed key and use Amazon S3 managed encryption (SSE-S3).
aws:kms - New objects are encrypted with an AWS KMS CMK, specified by the kmsMasterKeyId property, and use AWS managed AWS KMS encryption (AWS-KMS) or customer managed AWS KMS encryption (SSE-KMS).
NONE - New objects aren't encrypted by default. Default encryption is disabled for the bucket.
Typepublic final String typeAsString()
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 and use Amazon S3 managed encryption (SSE-S3).
aws:kms - New objects are encrypted with an AWS KMS CMK, specified by the kmsMasterKeyId property, and use AWS managed AWS KMS encryption (AWS-KMS) or customer managed AWS KMS encryption (SSE-KMS).
NONE - New objects aren't encrypted by default. Default encryption is disabled for the bucket.
If the service returns an enum value that is not available in the current SDK version, type will return
Type.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
AES256 - New objects are encrypted with an Amazon S3 managed key and use Amazon S3 managed encryption (SSE-S3).
aws:kms - New objects are encrypted with an AWS KMS CMK, specified by the kmsMasterKeyId property, and use AWS managed AWS KMS encryption (AWS-KMS) or customer managed AWS KMS encryption (SSE-KMS).
NONE - New objects aren't encrypted by default. Default encryption is disabled for the bucket.
Typepublic BucketServerSideEncryption.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<BucketServerSideEncryption.Builder,BucketServerSideEncryption>public static BucketServerSideEncryption.Builder builder()
public static Class<? extends BucketServerSideEncryption.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.