public DescribeTaskSetsResult withFailures(Failure... failures) {
        if (this.failures == null) {
            setFailures(new com.amazonaws.internal.SdkInternalList<Failure>(failures.length));
        }
        for (Failure ele : failures) {
            this.failures.add(ele);
        }
        return this;
    }
<p>
Any failures associated with the call.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setFailures(java.util.Collection)} or {@link #withFailures(java.util.Collection)} if you want to override
the existing values.
</p>

@param failures
       Any failures associated with the call.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ecs/src/main/java/com/amazonaws/services/ecs/model/DescribeTaskSetsResult.java