# 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 SubmitV2OffboardingResponseBody(object):
    _types = {
        "offboarding_id": str,
        "employment_id": str,
        "offboarding_reason_unique_identifier": str,
        "offboarding_date": str,
        "offboarding_reason_explanation": str,
        "add_block_list": bool,
        "block_reason": str,
        "block_reason_explanation": str,
        "created_time": str,
        "retain_account": bool,
        "is_transfer_with_workforce": bool,
    }

    def __init__(self, d=None):
        self.offboarding_id: Optional[str] = None
        self.employment_id: Optional[str] = None
        self.offboarding_reason_unique_identifier: Optional[str] = None
        self.offboarding_date: Optional[str] = None
        self.offboarding_reason_explanation: Optional[str] = None
        self.add_block_list: Optional[bool] = None
        self.block_reason: Optional[str] = None
        self.block_reason_explanation: Optional[str] = None
        self.created_time: Optional[str] = None
        self.retain_account: Optional[bool] = None
        self.is_transfer_with_workforce: Optional[bool] = None
        init(self, d, self._types)

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


class SubmitV2OffboardingResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._submit_v2_offboarding_response_body = SubmitV2OffboardingResponseBody()

    def offboarding_id(self, offboarding_id: str) -> "SubmitV2OffboardingResponseBodyBuilder":
        self._submit_v2_offboarding_response_body.offboarding_id = offboarding_id
        return self

    def employment_id(self, employment_id: str) -> "SubmitV2OffboardingResponseBodyBuilder":
        self._submit_v2_offboarding_response_body.employment_id = employment_id
        return self

    def offboarding_reason_unique_identifier(self,
                                             offboarding_reason_unique_identifier: str) -> "SubmitV2OffboardingResponseBodyBuilder":
        self._submit_v2_offboarding_response_body.offboarding_reason_unique_identifier = offboarding_reason_unique_identifier
        return self

    def offboarding_date(self, offboarding_date: str) -> "SubmitV2OffboardingResponseBodyBuilder":
        self._submit_v2_offboarding_response_body.offboarding_date = offboarding_date
        return self

    def offboarding_reason_explanation(self,
                                       offboarding_reason_explanation: str) -> "SubmitV2OffboardingResponseBodyBuilder":
        self._submit_v2_offboarding_response_body.offboarding_reason_explanation = offboarding_reason_explanation
        return self

    def add_block_list(self, add_block_list: bool) -> "SubmitV2OffboardingResponseBodyBuilder":
        self._submit_v2_offboarding_response_body.add_block_list = add_block_list
        return self

    def block_reason(self, block_reason: str) -> "SubmitV2OffboardingResponseBodyBuilder":
        self._submit_v2_offboarding_response_body.block_reason = block_reason
        return self

    def block_reason_explanation(self, block_reason_explanation: str) -> "SubmitV2OffboardingResponseBodyBuilder":
        self._submit_v2_offboarding_response_body.block_reason_explanation = block_reason_explanation
        return self

    def created_time(self, created_time: str) -> "SubmitV2OffboardingResponseBodyBuilder":
        self._submit_v2_offboarding_response_body.created_time = created_time
        return self

    def retain_account(self, retain_account: bool) -> "SubmitV2OffboardingResponseBodyBuilder":
        self._submit_v2_offboarding_response_body.retain_account = retain_account
        return self

    def is_transfer_with_workforce(self, is_transfer_with_workforce: bool) -> "SubmitV2OffboardingResponseBodyBuilder":
        self._submit_v2_offboarding_response_body.is_transfer_with_workforce = is_transfer_with_workforce
        return self

    def build(self) -> "SubmitV2OffboardingResponseBody":
        return self._submit_v2_offboarding_response_body
