# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init
from .option import Option


class PatchCustomFieldOptionResponseBody(object):
    _types = {
        "option": Option,
    }

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

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


class PatchCustomFieldOptionResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._patch_custom_field_option_response_body = PatchCustomFieldOptionResponseBody()

    def option(self, option: Option) -> "PatchCustomFieldOptionResponseBodyBuilder":
        self._patch_custom_field_option_response_body.option = option
        return self

    def build(self) -> "PatchCustomFieldOptionResponseBody":
        return self._patch_custom_field_option_response_body
