Class BucketServerSideEncryption
- java.lang.Object
-
- software.amazon.awssdk.services.macie2.model.BucketServerSideEncryption
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<BucketServerSideEncryption.Builder,BucketServerSideEncryption>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceBucketServerSideEncryption.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BucketServerSideEncryption.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringkmsMasterKeyId()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.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends BucketServerSideEncryption.Builder>serializableBuilderClass()BucketServerSideEncryption.BuildertoBuilder()StringtoString()Returns a string representation of this object.Typetype()The server-side encryption algorithm that's used by default to encrypt objects that are added to the bucket.StringtypeAsString()The server-side encryption algorithm that's used by default to encrypt objects that are added to the bucket.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
kmsMasterKeyId
public 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.
- Returns:
- 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.
-
type
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 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.
If the service returns an enum value that is not available in the current SDK version,
typewill returnType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- 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.
-
- See Also:
Type
-
-
typeAsString
public 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 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.
If the service returns an enum value that is not available in the current SDK version,
typewill returnType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- 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.
-
- See Also:
Type
-
-
toBuilder
public BucketServerSideEncryption.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<BucketServerSideEncryption.Builder,BucketServerSideEncryption>
-
builder
public static BucketServerSideEncryption.Builder builder()
-
serializableBuilderClass
public static Class<? extends BucketServerSideEncryption.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-