public Sample withType(String type) {
        setType(type);
        return this;
    }
<p>
The way in which DataBrew obtains rows from a dataset.
</p>

@param type
       The way in which DataBrew obtains rows from a dataset.
@return Returns a reference to this object so that method calls can be chained together.
@see SampleType
aws-java-sdk-gluedatabrew/src/main/java/com/amazonaws/services/gluedatabrew/model/Sample.java