# 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 CreateApplicationRequestBody(object):
    _types = {
        "talent_id": str,
        "job_id": str,
        "user_id": str,
        "resume_source_id": str,
        "application_preferred_city_code_list": List[str],
        "delivery_type": int,
    }

    def __init__(self, d=None):
        self.talent_id: Optional[str] = None
        self.job_id: Optional[str] = None
        self.user_id: Optional[str] = None
        self.resume_source_id: Optional[str] = None
        self.application_preferred_city_code_list: Optional[List[str]] = None
        self.delivery_type: Optional[int] = None
        init(self, d, self._types)

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


class CreateApplicationRequestBodyBuilder(object):
    def __init__(self) -> None:
        self._create_application_request_body = CreateApplicationRequestBody()

    def talent_id(self, talent_id: str) -> "CreateApplicationRequestBodyBuilder":
        self._create_application_request_body.talent_id = talent_id
        return self

    def job_id(self, job_id: str) -> "CreateApplicationRequestBodyBuilder":
        self._create_application_request_body.job_id = job_id
        return self

    def user_id(self, user_id: str) -> "CreateApplicationRequestBodyBuilder":
        self._create_application_request_body.user_id = user_id
        return self

    def resume_source_id(self, resume_source_id: str) -> "CreateApplicationRequestBodyBuilder":
        self._create_application_request_body.resume_source_id = resume_source_id
        return self

    def application_preferred_city_code_list(self, application_preferred_city_code_list: List[
        str]) -> "CreateApplicationRequestBodyBuilder":
        self._create_application_request_body.application_preferred_city_code_list = application_preferred_city_code_list
        return self

    def delivery_type(self, delivery_type: int) -> "CreateApplicationRequestBodyBuilder":
        self._create_application_request_body.delivery_type = delivery_type
        return self

    def build(self) -> "CreateApplicationRequestBody":
        return self._create_application_request_body
