public RegisterJobDefinitionRequest withPlatformCapabilities(java.util.Collection<String> platformCapabilities) {
        setPlatformCapabilities(platformCapabilities);
        return this;
    }
<p>
The platform capabilities required by the job definition. If no value is specified, it defaults to
<code>EC2</code>. To run the job on Fargate resources, specify <code>FARGATE</code>.
</p>
<note>
<p>
If the job runs on Amazon EKS resources, then you must not specify <code>platformCapabilities</code>.
</p>
</note>

@param platformCapabilities
       The platform capabilities required by the job definition. If no value is specified, it defaults to
       <code>EC2</code>. To run the job on Fargate resources, specify <code>FARGATE</code>.</p> <note>
       <p>
       If the job runs on Amazon EKS resources, then you must not specify <code>platformCapabilities</code>.
       </p>
@return Returns a reference to this object so that method calls can be chained together.
@see PlatformCapability
aws-java-sdk-batch/src/main/java/com/amazonaws/services/batch/model/RegisterJobDefinitionRequest.java