public CreateIndexRequest withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }
<p>
The specified tags are attached only to the index created in this Amazon Web Services Region. The tags aren't
attached to any of the resources listed in the index.
</p>

@param tags
       The specified tags are attached only to the index created in this Amazon Web Services Region. The tags
       aren't attached to any of the resources listed in the index.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-resourceexplorer2/src/main/java/com/amazonaws/services/resourceexplorer2/model/CreateIndexRequest.java