public ClusterOperationV2 withErrorInfo(ErrorInfo errorInfo) {
        setErrorInfo(errorInfo);
        return this;
    }
<p>
If cluster operation failed from an error, it describes the error.
</p>

@param errorInfo
       <p>
       If cluster operation failed from an error, it describes the error.
       </p>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-kafka/src/main/java/com/amazonaws/services/kafka/model/ClusterOperationV2.java