public BucketMetadata withTags(java.util.Collection<KeyValuePair> tags) {
        setTags(tags);
        return this;
    }
<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.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-macie2/src/main/java/com/amazonaws/services/macie2/model/BucketMetadata.java