# Code generated by Lark OpenAPI.

from typing import Optional, List

from lark_oapi.core.construct import init
from .user_flow import UserFlow


class BatchCreateUserFlowResponseBody(object):
    _types = {
        "flow_records": List[UserFlow],
    }

    def __init__(self, d=None):
        self.flow_records: Optional[List[UserFlow]] = None
        init(self, d, self._types)

    @staticmethod
    def builder() -> "BatchCreateUserFlowResponseBodyBuilder":
        return BatchCreateUserFlowResponseBodyBuilder()


class BatchCreateUserFlowResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._batch_create_user_flow_response_body = BatchCreateUserFlowResponseBody()

    def flow_records(self, flow_records: List[UserFlow]) -> "BatchCreateUserFlowResponseBodyBuilder":
        self._batch_create_user_flow_response_body.flow_records = flow_records
        return self

    def build(self) -> "BatchCreateUserFlowResponseBody":
        return self._batch_create_user_flow_response_body
