Class BlockedEncryptionTypes
- java.lang.Object
-
- software.amazon.awssdk.services.s3.model.BlockedEncryptionTypes
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<BlockedEncryptionTypes.Builder,BlockedEncryptionTypes>
@Generated("software.amazon.awssdk:codegen") public final class BlockedEncryptionTypes extends Object implements SdkPojo, Serializable, ToCopyableBuilder<BlockedEncryptionTypes.Builder,BlockedEncryptionTypes>
A bucket-level setting for Amazon S3 general purpose buckets used to prevent the upload of new objects encrypted with the specified server-side encryption type. For example, blocking an encryption type will block
PutObject,CopyObject,PostObject, multipart upload, and replication requests to the bucket for objects with the specified encryption type. However, you can continue to read and list any pre-existing objects already encrypted with the specified encryption type. For more information, see Blocking or unblocking SSE-C for a general purpose bucket.This data type is used with the following actions:
- Permissions
-
You must have the
s3:PutEncryptionConfigurationpermission to block or unblock an encryption type for a bucket.You must have the
s3:GetEncryptionConfigurationpermission to view a bucket's encryption type.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceBlockedEncryptionTypes.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BlockedEncryptionTypes.Builderbuilder()List<EncryptionType>encryptionType()The object encryption type that you want to block or unblock for an Amazon S3 general purpose bucket.List<String>encryptionTypeAsStrings()The object encryption type that you want to block or unblock for an Amazon S3 general purpose bucket.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)booleanhasEncryptionType()For responses, this returns true if the service returned a value for the EncryptionType property.inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends BlockedEncryptionTypes.Builder>serializableBuilderClass()BlockedEncryptionTypes.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
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
-
encryptionType
public final List<EncryptionType> encryptionType()
The object encryption type that you want to block or unblock for an Amazon S3 general purpose bucket.
Currently, this parameter only supports blocking or unblocking server side encryption with customer-provided keys (SSE-C). For more information about SSE-C, see Using server-side encryption with customer-provided keys (SSE-C).
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasEncryptionType()method.- Returns:
- The object encryption type that you want to block or unblock for an Amazon S3 general purpose bucket.
Currently, this parameter only supports blocking or unblocking server side encryption with customer-provided keys (SSE-C). For more information about SSE-C, see Using server-side encryption with customer-provided keys (SSE-C).
-
hasEncryptionType
public final boolean hasEncryptionType()
For responses, this returns true if the service returned a value for the EncryptionType property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
encryptionTypeAsStrings
public final List<String> encryptionTypeAsStrings()
The object encryption type that you want to block or unblock for an Amazon S3 general purpose bucket.
Currently, this parameter only supports blocking or unblocking server side encryption with customer-provided keys (SSE-C). For more information about SSE-C, see Using server-side encryption with customer-provided keys (SSE-C).
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasEncryptionType()method.- Returns:
- The object encryption type that you want to block or unblock for an Amazon S3 general purpose bucket.
Currently, this parameter only supports blocking or unblocking server side encryption with customer-provided keys (SSE-C). For more information about SSE-C, see Using server-side encryption with customer-provided keys (SSE-C).
-
toBuilder
public BlockedEncryptionTypes.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<BlockedEncryptionTypes.Builder,BlockedEncryptionTypes>
-
builder
public static BlockedEncryptionTypes.Builder builder()
-
serializableBuilderClass
public static Class<? extends BlockedEncryptionTypes.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
-
-