public GetWebExperienceResult withError(ErrorDetail error) {
        setError(error);
        return this;
    }
<p>
When the <code>Status</code> field value is <code>FAILED</code>, the <code>ErrorMessage</code> field contains a
description of the error that caused the data source connector to fail.
</p>

@param error
       When the <code>Status</code> field value is <code>FAILED</code>, the <code>ErrorMessage</code> field
       contains a description of the error that caused the data source connector to fail.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-qbusiness/src/main/java/com/amazonaws/services/qbusiness/model/GetWebExperienceResult.java