# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init


class GetLeaveEmployExpireRecordRequestBody(object):
    _types = {
        "employment_id": str,
        "leave_type_id": str,
        "start_expiration_date": str,
        "end_expiration_date": str,
        "time_offset": int,
    }

    def __init__(self, d=None):
        self.employment_id: Optional[str] = None
        self.leave_type_id: Optional[str] = None
        self.start_expiration_date: Optional[str] = None
        self.end_expiration_date: Optional[str] = None
        self.time_offset: Optional[int] = None
        init(self, d, self._types)

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


class GetLeaveEmployExpireRecordRequestBodyBuilder(object):
    def __init__(self) -> None:
        self._get_leave_employ_expire_record_request_body = GetLeaveEmployExpireRecordRequestBody()

    def employment_id(self, employment_id: str) -> "GetLeaveEmployExpireRecordRequestBodyBuilder":
        self._get_leave_employ_expire_record_request_body.employment_id = employment_id
        return self

    def leave_type_id(self, leave_type_id: str) -> "GetLeaveEmployExpireRecordRequestBodyBuilder":
        self._get_leave_employ_expire_record_request_body.leave_type_id = leave_type_id
        return self

    def start_expiration_date(self, start_expiration_date: str) -> "GetLeaveEmployExpireRecordRequestBodyBuilder":
        self._get_leave_employ_expire_record_request_body.start_expiration_date = start_expiration_date
        return self

    def end_expiration_date(self, end_expiration_date: str) -> "GetLeaveEmployExpireRecordRequestBodyBuilder":
        self._get_leave_employ_expire_record_request_body.end_expiration_date = end_expiration_date
        return self

    def time_offset(self, time_offset: int) -> "GetLeaveEmployExpireRecordRequestBodyBuilder":
        self._get_leave_employ_expire_record_request_body.time_offset = time_offset
        return self

    def build(self) -> "GetLeaveEmployExpireRecordRequestBody":
        return self._get_leave_employ_expire_record_request_body
