public AwsEcsTaskDefinitionDetails withRequiresCompatibilities(String... requiresCompatibilities) {
        if (this.requiresCompatibilities == null) {
            setRequiresCompatibilities(new java.util.ArrayList<String>(requiresCompatibilities.length));
        }
        for (String ele : requiresCompatibilities) {
            this.requiresCompatibilities.add(ele);
        }
        return this;
    }
<p>
The task launch types that the task definition was validated against.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setRequiresCompatibilities(java.util.Collection)} or
{@link #withRequiresCompatibilities(java.util.Collection)} if you want to override the existing values.
</p>

@param requiresCompatibilities
       The task launch types that the task definition was validated against.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-securityhub/src/main/java/com/amazonaws/services/securityhub/model/AwsEcsTaskDefinitionDetails.java