public CreateResourceRequest withType(String type) {
        setType(type);
        return this;
    }
<p>
The type of the new resource. The available types are <code>equipment</code> and <code>room</code>.
</p>

@param type
       The type of the new resource. The available types are <code>equipment</code> and <code>room</code>.
@return Returns a reference to this object so that method calls can be chained together.
@see ResourceType
aws-java-sdk-workmail/src/main/java/com/amazonaws/services/workmail/model/CreateResourceRequest.java