public AwsEc2InstanceDetails withType(String type) {
        setType(type);
        return this;
    }
<p>
The instance type of the instance.
</p>

@param type
       The instance type of the instance.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-securityhub/src/main/java/com/amazonaws/services/securityhub/model/AwsEc2InstanceDetails.java