public ResourceIdentifier withResourceType(String resourceType) {
        setResourceType(resourceType);
        return this;
    }
<p>
The resource type of a resource, such as <code>AWS::EC2::Instance</code>.
</p>

@param resourceType
       The resource type of a resource, such as <code>AWS::EC2::Instance</code>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-resourcegroups/src/main/java/com/amazonaws/services/resourcegroups/model/ResourceIdentifier.java