@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 KMS key 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 server-side encryption algorithm that's used by default to encrypt objects that are added to the bucket.
|
String |
typeAsString()
The server-side encryption algorithm that's used by default to encrypt objects that are added to 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 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 final 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 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 - The bucket's default encryption settings don't specify server-side encryption behavior for new objects.
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. 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 - The bucket's default encryption settings don't specify server-side encryption behavior for new objects.
Typepublic final String typeAsString()
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 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 - The bucket's default encryption settings don't specify server-side encryption behavior for new objects.
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. 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 - The bucket's default encryption settings don't specify server-side encryption behavior for new objects.
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 © 2023. All rights reserved.