public BatchCheckLayerAvailabilityResult withFailures(LayerFailure... failures) {
        if (this.failures == null) {
            setFailures(new java.util.ArrayList<LayerFailure>(failures.length));
        }
        for (LayerFailure ele : failures) {
            this.failures.add(ele);
        }
        return this;
    }
public BatchCheckLayerAvailabilityResult withFailures ( LayerFailure ... failures ) { if ( this . failures == null ) { setFailures ( new java . util . ArrayList < LayerFailure > ( failures . length ) ) ; } for ( LayerFailure 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.