public BucketMetadata withAllowsUnencryptedObjectUploads(AllowsUnencryptedObjectUploads allowsUnencryptedObjectUploads) {
        this.allowsUnencryptedObjectUploads = allowsUnencryptedObjectUploads.toString();
        return this;
    }
<p>
Specifies whether the bucket policy for the bucket requires server-side encryption of objects when objects are
added to the bucket. Possible values are:
</p>
<ul>
<li>
<p>
FALSE - The bucket policy requires server-side encryption of new objects. PutObject requests must include a valid
server-side encryption header.
</p>
</li>
<li>
<p>
TRUE - The bucket doesn't have a bucket policy or it has a bucket policy that doesn't require server-side
encryption of new objects. If a bucket policy exists, it doesn't require PutObject requests to include a valid
server-side encryption header.
</p>
</li>
<li>
<p>
UNKNOWN - Amazon Macie can't determine whether the bucket policy requires server-side encryption of new objects.
</p>
</li>
</ul>
<p>
Valid server-side encryption headers are: x-amz-server-side-encryption with a value of AES256 or aws:kms, and
x-amz-server-side-encryption-customer-algorithm with a value of AES256.
</p>

@param allowsUnencryptedObjectUploads
       Specifies whether the bucket policy for the bucket requires server-side encryption of objects when objects
       are added to the bucket. Possible values are:</p>
       <ul>
       <li>
       <p>
       FALSE - The bucket policy requires server-side encryption of new objects. PutObject requests must include
       a valid server-side encryption header.
       </p>
       </li>
       <li>
       <p>
       TRUE - The bucket doesn't have a bucket policy or it has a bucket policy that doesn't require server-side
       encryption of new objects. If a bucket policy exists, it doesn't require PutObject requests to include a
       valid server-side encryption header.
       </p>
       </li>
       <li>
       <p>
       UNKNOWN - Amazon Macie can't determine whether the bucket policy requires server-side encryption of new
       objects.
       </p>
       </li>
       </ul>
       <p>
       Valid server-side encryption headers are: x-amz-server-side-encryption with a value of AES256 or aws:kms,
       and x-amz-server-side-encryption-customer-algorithm with a value of AES256.
@return Returns a reference to this object so that method calls can be chained together.
@see AllowsUnencryptedObjectUploads
aws-java-sdk-macie2/src/main/java/com/amazonaws/services/macie2/model/BucketMetadata.java