public ResourceRequirement withType(String type) {
        setType(type);
        return this;
    }
<p>
The type of resource to assign to a container. The supported resources include <code>GPU</code>,
<code>MEMORY</code>, and <code>VCPU</code>.
</p>

@param type
       The type of resource to assign to a container. The supported resources include <code>GPU</code>,
       <code>MEMORY</code>, and <code>VCPU</code>.
@return Returns a reference to this object so that method calls can be chained together.
@see ResourceType
aws-java-sdk-batch/src/main/java/com/amazonaws/services/batch/model/ResourceRequirement.java