public Peering withLastModificationErrors(PeeringError... lastModificationErrors) {
        if (this.lastModificationErrors == null) {
            setLastModificationErrors(new java.util.ArrayList<PeeringError>(lastModificationErrors.length));
        }
        for (PeeringError ele : lastModificationErrors) {
            this.lastModificationErrors.add(ele);
        }
        return this;
    }
<p>
Describes the error associated with the Connect peer request.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setLastModificationErrors(java.util.Collection)} or
{@link #withLastModificationErrors(java.util.Collection)} if you want to override the existing values.
</p>

@param lastModificationErrors
       Describes the error associated with the Connect peer request.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-networkmanager/src/main/java/com/amazonaws/services/networkmanager/model/Peering.java