Class AvailablePhoneNumberCountry

    • Method Detail

      • reader

        public static AvailablePhoneNumberCountryReader reader​(String pathAccountSid)
        Create a AvailablePhoneNumberCountryReader to execute read.
        Parameters:
        pathAccountSid - The SID of the Account requesting the available phone number Country resources
        Returns:
        AvailablePhoneNumberCountryReader capable of executing the read
      • reader

        public static AvailablePhoneNumberCountryReader reader()
        Create a AvailablePhoneNumberCountryReader to execute read.
        Returns:
        AvailablePhoneNumberCountryReader capable of executing the read
      • fetcher

        public static AvailablePhoneNumberCountryFetcher fetcher​(String pathAccountSid,
                                                                 String pathCountryCode)
        Create a AvailablePhoneNumberCountryFetcher to execute fetch.
        Parameters:
        pathAccountSid - The SID of the Account requesting the available phone number Country resource
        pathCountryCode - The ISO country code of the country to fetch available phone number information about
        Returns:
        AvailablePhoneNumberCountryFetcher capable of executing the fetch
      • fetcher

        public static AvailablePhoneNumberCountryFetcher fetcher​(String pathCountryCode)
        Create a AvailablePhoneNumberCountryFetcher to execute fetch.
        Parameters:
        pathCountryCode - The ISO country code of the country to fetch available phone number information about
        Returns:
        AvailablePhoneNumberCountryFetcher capable of executing the fetch
      • fromJson

        public static AvailablePhoneNumberCountry fromJson​(String json,
                                                           com.fasterxml.jackson.databind.ObjectMapper objectMapper)
        Converts a JSON String into a AvailablePhoneNumberCountry object using the provided ObjectMapper.
        Parameters:
        json - Raw JSON String
        objectMapper - Jackson ObjectMapper
        Returns:
        AvailablePhoneNumberCountry object represented by the provided JSON
      • fromJson

        public static AvailablePhoneNumberCountry fromJson​(InputStream json,
                                                           com.fasterxml.jackson.databind.ObjectMapper objectMapper)
        Converts a JSON InputStream into a AvailablePhoneNumberCountry object using the provided ObjectMapper.
        Parameters:
        json - Raw JSON InputStream
        objectMapper - Jackson ObjectMapper
        Returns:
        AvailablePhoneNumberCountry object represented by the provided JSON
      • getCountryCode

        public final String getCountryCode()
        Returns The The ISO-3166-1 country code of the country..
        Returns:
        The ISO-3166-1 country code of the country.
      • getCountry

        public final String getCountry()
        Returns The The name of the country.
        Returns:
        The name of the country
      • getUri

        public final URI getUri()
        Returns The The URI of the Country resource, relative to `https://api.twilio.com`.
        Returns:
        The URI of the Country resource, relative to `https://api.twilio.com`
      • getBeta

        public final Boolean getBeta()
        Returns The Whether all phone numbers available in the country are new to the Twilio platform..
        Returns:
        Whether all phone numbers available in the country are new to the Twilio platform.
      • getSubresourceUris

        public final Map<String,​String> getSubresourceUris()
        Returns The A list of related resources identified by their relative URIs.
        Returns:
        A list of related resources identified by their relative URIs
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object