public CreateCanaryRequest withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }
<p>
A list of key-value pairs to associate with the canary. You can associate as many as 50 tags with a canary.
</p>
<p>
Tags can help you organize and categorize your resources. You can also use them to scope user permissions, by
granting a user permission to access or change only the resources that have certain tag values.
</p>

@param tags
       A list of key-value pairs to associate with the canary. You can associate as many as 50 tags with a
       canary.</p>
       <p>
       Tags can help you organize and categorize your resources. You can also use them to scope user permissions,
       by granting a user permission to access or change only the resources that have certain tag values.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-synthetics/src/main/java/com/amazonaws/services/synthetics/model/CreateCanaryRequest.java