public RegisterJobDefinitionRequest withType(JobDefinitionType type) {
        this.type = type.toString();
        return this;
    }
<p>
The type of job definition. For more information about multi-node parallel jobs, see <a
href="https://docs.aws.amazon.com/batch/latest/userguide/multi-node-job-def.html">Creating a multi-node parallel
job definition</a> in the <i>Batch User Guide</i>.
</p>
<ul>
<li>
<p>
If the value is <code>container</code>, then one of the following is required: <code>containerProperties</code>,
<code>ecsProperties</code>, or <code>eksProperties</code>.
</p>
</li>
<li>
<p>
If the value is <code>multinode</code>, then <code>nodeProperties</code> is required.
</p>
</li>
</ul>
<note>
<p>
If the job is run on Fargate resources, then <code>multinode</code> isn't supported.
</p>
</note>

@param type
       The type of job definition. For more information about multi-node parallel jobs, see <a
       href="https://docs.aws.amazon.com/batch/latest/userguide/multi-node-job-def.html">Creating a multi-node
       parallel job definition</a> in the <i>Batch User Guide</i>.</p>
       <ul>
       <li>
       <p>
       If the value is <code>container</code>, then one of the following is required:
       <code>containerProperties</code>, <code>ecsProperties</code>, or <code>eksProperties</code>.
       </p>
       </li>
       <li>
       <p>
       If the value is <code>multinode</code>, then <code>nodeProperties</code> is required.
       </p>
       </li>
       </ul>
       <note>
       <p>
       If the job is run on Fargate resources, then <code>multinode</code> isn't supported.
       </p>
@return Returns a reference to this object so that method calls can be chained together.
@see JobDefinitionType
aws-java-sdk-batch/src/main/java/com/amazonaws/services/batch/model/RegisterJobDefinitionRequest.java