public EvaluateCodeResult withError(EvaluateCodeErrorDetail error) {
        setError(error);
        return this;
    }
<p>
Contains the payload of the response error.
</p>

@param error
       Contains the payload of the response error.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-appsync/src/main/java/com/amazonaws/services/appsync/model/EvaluateCodeResult.java