public RegisterJobDefinitionRequest withContainerProperties(ContainerProperties containerProperties) {
        setContainerProperties(containerProperties);
        return this;
    }
<p>
An object with properties specific to Amazon ECS-based single-node container-based jobs. If the job definition's
<code>type</code> parameter is <code>container</code>, then you must specify either
<code>containerProperties</code> or <code>nodeProperties</code>. This must not be specified for Amazon EKS-based
job definitions.
</p>
<note>
<p>
If the job runs on Fargate resources, then you must not specify <code>nodeProperties</code>; use only
<code>containerProperties</code>.
</p>
</note>

@param containerProperties
       An object with properties specific to Amazon ECS-based single-node container-based jobs. If the job
       definition's <code>type</code> parameter is <code>container</code>, then you must specify either
       <code>containerProperties</code> or <code>nodeProperties</code>. This must not be specified for Amazon
       EKS-based job definitions.</p> <note>
       <p>
       If the job runs on Fargate resources, then you must not specify <code>nodeProperties</code>; use only
       <code>containerProperties</code>.
       </p>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-batch/src/main/java/com/amazonaws/services/batch/model/RegisterJobDefinitionRequest.java