public RegisterJobDefinitionRequest withPlatformCapabilities(String... platformCapabilities) {
        if (this.platformCapabilities == null) {
            setPlatformCapabilities(new java.util.ArrayList<String>(platformCapabilities.length));
        }
        for (String ele : platformCapabilities) {
            this.platformCapabilities.add(ele);
        }
        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>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setPlatformCapabilities(java.util.Collection)} or {@link #withPlatformCapabilities(java.util.Collection)}
if you want to override the existing values.
</p>

@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