public JobRun withJobMode(JobMode jobMode) {
        this.jobMode = jobMode.toString();
        return this;
    }
<p>
A mode that describes how a job was created. Valid values are:
</p>
<ul>
<li>
<p>
<code>SCRIPT</code> - The job was created using the Glue Studio script editor.
</p>
</li>
<li>
<p>
<code>VISUAL</code> - The job was created using the Glue Studio visual editor.
</p>
</li>
<li>
<p>
<code>NOTEBOOK</code> - The job was created using an interactive sessions notebook.
</p>
</li>
</ul>
<p>
When the <code>JobMode</code> field is missing or null, <code>SCRIPT</code> is assigned as the default value.
</p>

@param jobMode
       A mode that describes how a job was created. Valid values are:</p>
       <ul>
       <li>
       <p>
       <code>SCRIPT</code> - The job was created using the Glue Studio script editor.
       </p>
       </li>
       <li>
       <p>
       <code>VISUAL</code> - The job was created using the Glue Studio visual editor.
       </p>
       </li>
       <li>
       <p>
       <code>NOTEBOOK</code> - The job was created using an interactive sessions notebook.
       </p>
       </li>
       </ul>
       <p>
       When the <code>JobMode</code> field is missing or null, <code>SCRIPT</code> is assigned as the default
       value.
@return Returns a reference to this object so that method calls can be chained together.
@see JobMode
aws-java-sdk-glue/src/main/java/com/amazonaws/services/glue/model/JobRun.java