public CreateUpdatedWorkspaceImageRequest withTags(java.util.Collection<Tag> tags) {
        setTags(tags);
        return this;
    }
<p>
The tags that you want to add to the new updated WorkSpace image.
</p>
<note>
<p>
To add tags at the same time when you're creating the updated image, you must create an IAM policy that grants
your IAM user permissions to use <code>workspaces:CreateTags</code>.
</p>
</note>

@param tags
       The tags that you want to add to the new updated WorkSpace image.</p> <note>
       <p>
       To add tags at the same time when you're creating the updated image, you must create an IAM policy that
       grants your IAM user permissions to use <code>workspaces:CreateTags</code>.
       </p>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-workspaces/src/main/java/com/amazonaws/services/workspaces/model/CreateUpdatedWorkspaceImageRequest.java