# Code generated by Lark OpenAPI.

from typing import Any, Optional, Union, Dict, List, Set, IO, Callable, Type
from lark_oapi.core.model import BaseRequest
from lark_oapi.core.enum import HttpMethod, AccessTokenType


class DeleteJobGradeRequest(BaseRequest):
    def __init__(self) -> None:
        super().__init__()
        self.job_grade_id: Optional[str] = None

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


class DeleteJobGradeRequestBuilder(object):

    def __init__(self) -> None:
        delete_job_grade_request = DeleteJobGradeRequest()
        delete_job_grade_request.http_method = HttpMethod.DELETE
        delete_job_grade_request.uri = "/open-apis/corehr/v2/job_grades/:job_grade_id"
        delete_job_grade_request.token_types = {AccessTokenType.TENANT}
        self._delete_job_grade_request: DeleteJobGradeRequest = delete_job_grade_request

    def job_grade_id(self, job_grade_id: str) -> "DeleteJobGradeRequestBuilder":
        self._delete_job_grade_request.job_grade_id = job_grade_id
        self._delete_job_grade_request.paths["job_grade_id"] = str(job_grade_id)
        return self

    def build(self) -> DeleteJobGradeRequest:
        return self._delete_job_grade_request
