# 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 RemoveCustomFieldRequestBody(object):
    _types = {
        "resource_type": str,
        "resource_id": str,
    }

    def __init__(self, d=None):
        self.resource_type: Optional[str] = None
        self.resource_id: Optional[str] = None
        init(self, d, self._types)

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


class RemoveCustomFieldRequestBodyBuilder(object):
    def __init__(self) -> None:
        self._remove_custom_field_request_body = RemoveCustomFieldRequestBody()

    def resource_type(self, resource_type: str) -> "RemoveCustomFieldRequestBodyBuilder":
        self._remove_custom_field_request_body.resource_type = resource_type
        return self

    def resource_id(self, resource_id: str) -> "RemoveCustomFieldRequestBodyBuilder":
        self._remove_custom_field_request_body.resource_id = resource_id
        return self

    def build(self) -> "RemoveCustomFieldRequestBody":
        return self._remove_custom_field_request_body
