public ResourceMetadata withType(ResourceType type) {
        this.type = type.toString();
        return this;
    }
<p>
The type of resource.
</p>

@param type
       The type of resource.
@return Returns a reference to this object so that method calls can be chained together.
@see ResourceType
aws-java-sdk-workdocs/src/main/java/com/amazonaws/services/workdocs/model/ResourceMetadata.java