public JobSample withMode(SampleMode mode) {
        this.mode = mode.toString();
        return this;
    }
<p>
A value that determines whether the profile job is run on the entire dataset or a specified number of rows. This
value must be one of the following:
</p>
<ul>
<li>
<p>
FULL_DATASET - The profile job is run on the entire dataset.
</p>
</li>
<li>
<p>
CUSTOM_ROWS - The profile job is run on the number of rows specified in the <code>Size</code> parameter.
</p>
</li>
</ul>

@param mode
       A value that determines whether the profile job is run on the entire dataset or a specified number of
       rows. This value must be one of the following:</p>
       <ul>
       <li>
       <p>
       FULL_DATASET - The profile job is run on the entire dataset.
       </p>
       </li>
       <li>
       <p>
       CUSTOM_ROWS - The profile job is run on the number of rows specified in the <code>Size</code> parameter.
       </p>
       </li>
@return Returns a reference to this object so that method calls can be chained together.
@see SampleMode
aws-java-sdk-gluedatabrew/src/main/java/com/amazonaws/services/gluedatabrew/model/JobSample.java