# 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 .section import Section


class PatchSectionResponseBody(object):
    _types = {
        "section": Section,
    }

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

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


class PatchSectionResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._patch_section_response_body = PatchSectionResponseBody()

    def section(self, section: Section) -> "PatchSectionResponseBodyBuilder":
        self._patch_section_response_body.section = section
        return self

    def build(self) -> "PatchSectionResponseBody":
        return self._patch_section_response_body
