public SupportedInstanceType withType(String type) {
        setType(type);
        return this;
    }
<p>
The <a href="http://aws.amazon.com/ec2/instance-types/">Amazon EC2 instance type</a>, for example
<code>m5.xlarge</code>, of the <code>SupportedInstanceType</code>.
</p>

@param type
       The <a href="http://aws.amazon.com/ec2/instance-types/">Amazon EC2 instance type</a>, for example
       <code>m5.xlarge</code>, of the <code>SupportedInstanceType</code>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-emr/src/main/java/com/amazonaws/services/elasticmapreduce/model/SupportedInstanceType.java