public AddTagsRequest withResourceId(String resourceId) {
        setResourceId(resourceId);
        return this;
    }
<p>
Specifies the ARN of the trail, event data store, or channel to which one or more tags will be added.
</p>
<p>
The format of a trail ARN is: <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code>
</p>
<p>
The format of an event data store ARN is:
<code>arn:aws:cloudtrail:us-east-2:123456789012:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE</code>
</p>
<p>
The format of a channel ARN is: <code>arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890</code>
</p>

@param resourceId
       Specifies the ARN of the trail, event data store, or channel to which one or more tags will be added.</p>
       <p>
       The format of a trail ARN is: <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code>
       </p>
       <p>
       The format of an event data store ARN is:
       <code>arn:aws:cloudtrail:us-east-2:123456789012:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE</code>
       </p>
       <p>
       The format of a channel ARN is: <code>arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890</code>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-cloudtrail/src/main/java/com/amazonaws/services/cloudtrail/model/AddTagsRequest.java