Class SearchAvailablePhoneNumbersRequest

    • Method Detail

      • areaCode

        public final String areaCode()

        Confines a search to just the phone numbers associated with the specified area code.

        Returns:
        Confines a search to just the phone numbers associated with the specified area code.
      • city

        public final String city()

        Confines a search to just the phone numbers associated with the specified city.

        Returns:
        Confines a search to just the phone numbers associated with the specified city.
      • country

        public final String country()

        Confines a search to just the phone numbers associated with the specified country.

        Returns:
        Confines a search to just the phone numbers associated with the specified country.
      • state

        public final String state()

        Confines a search to just the phone numbers associated with the specified state.

        Returns:
        Confines a search to just the phone numbers associated with the specified state.
      • tollFreePrefix

        public final String tollFreePrefix()

        Confines a search to just the phone numbers associated with the specified toll-free prefix.

        Returns:
        Confines a search to just the phone numbers associated with the specified toll-free prefix.
      • phoneNumberType

        public final PhoneNumberType phoneNumberType()

        Confines a search to just the phone numbers associated with the specified phone number type, either local or toll-free.

        If the service returns an enum value that is not available in the current SDK version, phoneNumberType will return PhoneNumberType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from phoneNumberTypeAsString().

        Returns:
        Confines a search to just the phone numbers associated with the specified phone number type, either local or toll-free.
        See Also:
        PhoneNumberType
      • phoneNumberTypeAsString

        public final String phoneNumberTypeAsString()

        Confines a search to just the phone numbers associated with the specified phone number type, either local or toll-free.

        If the service returns an enum value that is not available in the current SDK version, phoneNumberType will return PhoneNumberType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from phoneNumberTypeAsString().

        Returns:
        Confines a search to just the phone numbers associated with the specified phone number type, either local or toll-free.
        See Also:
        PhoneNumberType
      • maxResults

        public final Integer maxResults()

        The maximum number of results to return.

        Returns:
        The maximum number of results to return.
      • nextToken

        public final String nextToken()

        The token used to return the next page of results.

        Returns:
        The token used to return the next page of results.
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object