Class BlockedEncryptionTypes
- All Implemented Interfaces:
Serializable,SdkPojo,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:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final List<EncryptionType>The object encryption type that you want to block or unblock for an Amazon S3 general purpose bucket.The object encryption type that you want to block or unblock for an Amazon S3 general purpose bucket.final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final booleanFor responses, this returns true if the service returned a value for the EncryptionType property.final inthashCode()static Class<? extends BlockedEncryptionTypes.Builder>final StringtoString()Returns a string representation of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
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
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
- Specified by:
toBuilderin interfaceToCopyableBuilder<BlockedEncryptionTypes.Builder,BlockedEncryptionTypes>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
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. -
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-