# Code generated by Lark OpenAPI.

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


class Owner(object):
    _types = {
        "member_type": str,
        "member_id": str,
    }

    def __init__(self, d=None):
        self.member_type: Optional[str] = None
        self.member_id: Optional[str] = None
        init(self, d, self._types)

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


class OwnerBuilder(object):
    def __init__(self) -> None:
        self._owner = Owner()

    def member_type(self, member_type: str) -> "OwnerBuilder":
        self._owner.member_type = member_type
        return self

    def member_id(self, member_id: str) -> "OwnerBuilder":
        self._owner.member_id = member_id
        return self

    def build(self) -> "Owner":
        return self._owner
