Interface CarrierLookupResponse.Builder

  • Method Details

    • e164PhoneNumber

      CarrierLookupResponse.Builder e164PhoneNumber(String e164PhoneNumber)

      The phone number in E164 format, sanitized from the original input by removing any formatting characters.

      Parameters:
      e164PhoneNumber - The phone number in E164 format, sanitized from the original input by removing any formatting characters.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dialingCountryCode

      CarrierLookupResponse.Builder dialingCountryCode(String dialingCountryCode)

      The numeric dialing code for the country or region where the phone number was originally registered.

      Parameters:
      dialingCountryCode - The numeric dialing code for the country or region where the phone number was originally registered.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • isoCountryCode

      CarrierLookupResponse.Builder isoCountryCode(String isoCountryCode)

      The two-character code, in ISO 3166-1 alpha-2 format, for the country or region where the phone number was originally registered.

      Parameters:
      isoCountryCode - The two-character code, in ISO 3166-1 alpha-2 format, for the country or region where the phone number was originally registered.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • country

      The name of the country where the phone number was originally registered.

      Parameters:
      country - The name of the country where the phone number was originally registered.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • mcc

      The phone number's mobile country code, for mobile phone number types

      Parameters:
      mcc - The phone number's mobile country code, for mobile phone number types
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • mnc

      The phone number's mobile network code, for mobile phone number types.

      Parameters:
      mnc - The phone number's mobile network code, for mobile phone number types.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • carrier

      The carrier or service provider that the phone number is currently registered with. In some countries and regions, this value may be the carrier or service provider that the phone number was originally registered with.

      Parameters:
      carrier - The carrier or service provider that the phone number is currently registered with. In some countries and regions, this value may be the carrier or service provider that the phone number was originally registered with.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • phoneNumberType

      CarrierLookupResponse.Builder phoneNumberType(String phoneNumberType)

      Describes the type of phone number. Valid values are: MOBILE, LANDLINE, OTHER, and INVALID. Avoid sending SMS or voice messages to INVALID phone numbers, as these numbers are unlikely to belong to actual recipients.

      Parameters:
      phoneNumberType - Describes the type of phone number. Valid values are: MOBILE, LANDLINE, OTHER, and INVALID. Avoid sending SMS or voice messages to INVALID phone numbers, as these numbers are unlikely to belong to actual recipients.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • phoneNumberType

      CarrierLookupResponse.Builder phoneNumberType(PhoneNumberType phoneNumberType)

      Describes the type of phone number. Valid values are: MOBILE, LANDLINE, OTHER, and INVALID. Avoid sending SMS or voice messages to INVALID phone numbers, as these numbers are unlikely to belong to actual recipients.

      Parameters:
      phoneNumberType - Describes the type of phone number. Valid values are: MOBILE, LANDLINE, OTHER, and INVALID. Avoid sending SMS or voice messages to INVALID phone numbers, as these numbers are unlikely to belong to actual recipients.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: