# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init
from .app_contacts_range_id_list import AppContactsRangeIdList


class PatchApplicationContactsRangeRequestBody(object):
    _types = {
        "contacts_range_type": str,
        "add_visible_list": AppContactsRangeIdList,
        "del_visible_list": AppContactsRangeIdList,
    }

    def __init__(self, d=None):
        self.contacts_range_type: Optional[str] = None
        self.add_visible_list: Optional[AppContactsRangeIdList] = None
        self.del_visible_list: Optional[AppContactsRangeIdList] = None
        init(self, d, self._types)

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


class PatchApplicationContactsRangeRequestBodyBuilder(object):
    def __init__(self) -> None:
        self._patch_application_contacts_range_request_body = PatchApplicationContactsRangeRequestBody()

    def contacts_range_type(self, contacts_range_type: str) -> "PatchApplicationContactsRangeRequestBodyBuilder":
        self._patch_application_contacts_range_request_body.contacts_range_type = contacts_range_type
        return self

    def add_visible_list(self,
                         add_visible_list: AppContactsRangeIdList) -> "PatchApplicationContactsRangeRequestBodyBuilder":
        self._patch_application_contacts_range_request_body.add_visible_list = add_visible_list
        return self

    def del_visible_list(self,
                         del_visible_list: AppContactsRangeIdList) -> "PatchApplicationContactsRangeRequestBodyBuilder":
        self._patch_application_contacts_range_request_body.del_visible_list = del_visible_list
        return self

    def build(self) -> "PatchApplicationContactsRangeRequestBody":
        return self._patch_application_contacts_range_request_body
