# 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 ProfileSettingPhone(object):
    _types = {
        "international_area_code": str,
        "phone_number": str,
    }

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

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


class ProfileSettingPhoneBuilder(object):
    def __init__(self) -> None:
        self._profile_setting_phone = ProfileSettingPhone()

    def international_area_code(self, international_area_code: str) -> "ProfileSettingPhoneBuilder":
        self._profile_setting_phone.international_area_code = international_area_code
        return self

    def phone_number(self, phone_number: str) -> "ProfileSettingPhoneBuilder":
        self._profile_setting_phone.phone_number = phone_number
        return self

    def build(self) -> "ProfileSettingPhone":
        return self._profile_setting_phone
