public ListTagsForResourceResult withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }
<p>
A map of key-value pairs that specifies which tags (keys and values) are associated with the resource.
</p>

@param tags
       A map of key-value pairs that specifies which tags (keys and values) are associated with the resource.
@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/ListTagsForResourceResult.java