public void setTags(java.util.Collection<KeyValuePair> tags) {
        if (tags == null) {
            this.tags = null;
            return;
        }

        this.tags = new java.util.ArrayList<KeyValuePair>(tags);
    }
<p>
An array that specifies the tags (keys and values) that are associated with the bucket.
</p>

@param tags
       An array that specifies the tags (keys and values) that are associated with the bucket.
aws-java-sdk-macie2/src/main/java/com/amazonaws/services/macie2/model/BucketMetadata.java