# 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 CourseObject(object):
    _types = {
        "object_id": str,
        "object_type": int,
    }

    def __init__(self, d=None):
        self.object_id: Optional[str] = None
        self.object_type: Optional[int] = None
        init(self, d, self._types)

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


class CourseObjectBuilder(object):
    def __init__(self) -> None:
        self._course_object = CourseObject()

    def object_id(self, object_id: str) -> "CourseObjectBuilder":
        self._course_object.object_id = object_id
        return self

    def object_type(self, object_type: int) -> "CourseObjectBuilder":
        self._course_object.object_type = object_type
        return self

    def build(self) -> "CourseObject":
        return self._course_object
