public Stack withStackErrors(StackError... stackErrors) {
        if (this.stackErrors == null) {
            setStackErrors(new java.util.ArrayList<StackError>(stackErrors.length));
        }
        for (StackError ele : stackErrors) {
            this.stackErrors.add(ele);
        }
        return this;
    }
<p>
The errors for the stack.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setStackErrors(java.util.Collection)} or {@link #withStackErrors(java.util.Collection)} if you want to
override the existing values.
</p>

@param stackErrors
       The errors for the stack.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-appstream/src/main/java/com/amazonaws/services/appstream/model/Stack.java