public FindingSummaryV2 withError(String error) {
        setError(error);
        return this;
    }
<p>
The error that resulted in an Error finding.
</p>

@param error
       The error that resulted in an Error finding.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-accessanalyzer/src/main/java/com/amazonaws/services/accessanalyzer/model/FindingSummaryV2.java