# 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 ResumeEducation(object):
    _types = {
        "school": str,
        "start_date": str,
        "start_time": str,
        "end_date": str,
        "end_time": str,
        "major": str,
        "degree": str,
        "qualification": int,
    }

    def __init__(self, d=None):
        self.school: Optional[str] = None
        self.start_date: Optional[str] = None
        self.start_time: Optional[str] = None
        self.end_date: Optional[str] = None
        self.end_time: Optional[str] = None
        self.major: Optional[str] = None
        self.degree: Optional[str] = None
        self.qualification: Optional[int] = None
        init(self, d, self._types)

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


class ResumeEducationBuilder(object):
    def __init__(self) -> None:
        self._resume_education = ResumeEducation()

    def school(self, school: str) -> "ResumeEducationBuilder":
        self._resume_education.school = school
        return self

    def start_date(self, start_date: str) -> "ResumeEducationBuilder":
        self._resume_education.start_date = start_date
        return self

    def start_time(self, start_time: str) -> "ResumeEducationBuilder":
        self._resume_education.start_time = start_time
        return self

    def end_date(self, end_date: str) -> "ResumeEducationBuilder":
        self._resume_education.end_date = end_date
        return self

    def end_time(self, end_time: str) -> "ResumeEducationBuilder":
        self._resume_education.end_time = end_time
        return self

    def major(self, major: str) -> "ResumeEducationBuilder":
        self._resume_education.major = major
        return self

    def degree(self, degree: str) -> "ResumeEducationBuilder":
        self._resume_education.degree = degree
        return self

    def qualification(self, qualification: int) -> "ResumeEducationBuilder":
        self._resume_education.qualification = qualification
        return self

    def build(self) -> "ResumeEducation":
        return self._resume_education
