# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init
from .application_app_contacts_range import ApplicationAppContactsRange


class ContactsRangeConfigurationApplicationResponseBody(object):
    _types = {
        "contacts_range": ApplicationAppContactsRange,
        "has_more": bool,
        "page_token": str,
    }

    def __init__(self, d=None):
        self.contacts_range: Optional[ApplicationAppContactsRange] = None
        self.has_more: Optional[bool] = None
        self.page_token: Optional[str] = None
        init(self, d, self._types)

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


class ContactsRangeConfigurationApplicationResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._contacts_range_configuration_application_response_body = ContactsRangeConfigurationApplicationResponseBody()

    def contacts_range(self,
                       contacts_range: ApplicationAppContactsRange) -> "ContactsRangeConfigurationApplicationResponseBodyBuilder":
        self._contacts_range_configuration_application_response_body.contacts_range = contacts_range
        return self

    def has_more(self, has_more: bool) -> "ContactsRangeConfigurationApplicationResponseBodyBuilder":
        self._contacts_range_configuration_application_response_body.has_more = has_more
        return self

    def page_token(self, page_token: str) -> "ContactsRangeConfigurationApplicationResponseBodyBuilder":
        self._contacts_range_configuration_application_response_body.page_token = page_token
        return self

    def build(self) -> "ContactsRangeConfigurationApplicationResponseBody":
        return self._contacts_range_configuration_application_response_body
