public TagResourceRequest withResourceArn(String resourceArn) {
        setResourceArn(resourceArn);
        return this;
    }
<p>
The ARN of the canary or group that you're adding tags to.
</p>
<p>
The ARN format of a canary is
<code>arn:aws:synthetics:<i>Region</i>:<i>account-id</i>:canary:<i>canary-name</i> </code>.
</p>
<p>
The ARN format of a group is
<code>arn:aws:synthetics:<i>Region</i>:<i>account-id</i>:group:<i>group-name</i> </code>
</p>

@param resourceArn
       The ARN of the canary or group that you're adding tags to.</p>
       <p>
       The ARN format of a canary is
       <code>arn:aws:synthetics:<i>Region</i>:<i>account-id</i>:canary:<i>canary-name</i> </code>.
       </p>
       <p>
       The ARN format of a group is
       <code>arn:aws:synthetics:<i>Region</i>:<i>account-id</i>:group:<i>group-name</i> </code>
@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/TagResourceRequest.java