public CreateTaskRequest withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }
<p>
Optional metadata that you assign to a resource. You can use tags to categorize a resource in different ways,
such as by purpose, owner, or environment.
</p>

@param tags
       Optional metadata that you assign to a resource. You can use tags to categorize a resource in different
       ways, such as by purpose, owner, or environment.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-snowdevicemanagement/src/main/java/com/amazonaws/services/snowdevicemanagement/model/CreateTaskRequest.java