public UpdateProjectResult withFailureReasons(ProjectDeletionError... failureReasons) {
        if (this.failureReasons == null) {
            setFailureReasons(new java.util.ArrayList<ProjectDeletionError>(failureReasons.length));
        }
        for (ProjectDeletionError ele : failureReasons) {
            this.failureReasons.add(ele);
        }
        return this;
    }
<p>
Specifies the error message that is returned if the operation cannot be successfully completed.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setFailureReasons(java.util.Collection)} or {@link #withFailureReasons(java.util.Collection)} if you want
to override the existing values.
</p>

@param failureReasons
       Specifies the error message that is returned if the operation cannot be successfully completed.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-datazoneexternal/src/main/java/com/amazonaws/services/datazone/model/UpdateProjectResult.java