# Code generated by Lark OpenAPI.

from typing import Any, Optional, Union, Dict, List, Set, IO, Callable, Type
from lark_oapi.core.construct import init
from .faq_create_info import FaqCreateInfo


class CreateFaqRequestBody(object):
    _types = {
        "faq": FaqCreateInfo,
    }

    def __init__(self, d=None):
        self.faq: Optional[FaqCreateInfo] = None
        init(self, d, self._types)

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


class CreateFaqRequestBodyBuilder(object):
    def __init__(self) -> None:
        self._create_faq_request_body = CreateFaqRequestBody()

    def faq(self, faq: FaqCreateInfo) -> "CreateFaqRequestBodyBuilder":
        self._create_faq_request_body.faq = faq
        return self

    def build(self) -> "CreateFaqRequestBody":
        return self._create_faq_request_body
