public CreateSnapshotRequest withTags(Tag... tags) {
        if (this.tags == null) {
            setTags(new com.amazonaws.internal.SdkInternalList<Tag>(tags.length));
        }
        for (Tag ele : tags) {
            this.tags.add(ele);
        }
        return this;
    }
<p>
A list of up to 50 tags that can be assigned to a snapshot. Each tag is a key-value pair.
</p>
<note>
<p>
Valid characters for key and value are letters, spaces, and numbers representable in UTF-8 format, and the
following special characters: + - = . _ : / @. The maximum length of a tag's key is 128 characters, and the
maximum length for a tag's value is 256.
</p>
</note>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the
existing values.
</p>

@param tags
       A list of up to 50 tags that can be assigned to a snapshot. Each tag is a key-value pair.</p> <note>
       <p>
       Valid characters for key and value are letters, spaces, and numbers representable in UTF-8 format, and the
       following special characters: + - = . _ : / @. The maximum length of a tag's key is 128 characters, and
       the maximum length for a tag's value is 256.
       </p>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-storagegateway/src/main/java/com/amazonaws/services/storagegateway/model/CreateSnapshotRequest.java