public TagResourceRequest withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }
<p>
The key-value tag pairs you want to associate to your environment. For example,
<code>"Environment": "Staging"</code>. For more information, see <a
href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging Amazon Web Services resources</a>.
</p>

@param tags
       The key-value tag pairs you want to associate to your environment. For example,
       <code>"Environment": "Staging"</code>. For more information, see <a
       href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging Amazon Web Services
       resources</a>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-mwaa/src/main/java/com/amazonaws/services/mwaa/model/TagResourceRequest.java