Class DependentPhoneNumber

    • Method Detail

      • reader

        public static DependentPhoneNumberReader reader​(String pathAccountSid,
                                                        String pathAddressSid)
        Create a DependentPhoneNumberReader to execute read.
        Parameters:
        pathAccountSid - The SID of the Account that created the resources to read
        pathAddressSid - The SID of the Address resource associated with the phone number
        Returns:
        DependentPhoneNumberReader capable of executing the read
      • reader

        public static DependentPhoneNumberReader reader​(String pathAddressSid)
        Create a DependentPhoneNumberReader to execute read.
        Parameters:
        pathAddressSid - The SID of the Address resource associated with the phone number
        Returns:
        DependentPhoneNumberReader capable of executing the read
      • fromJson

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

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

        public final String getSid()
        Returns The The unique string that identifies the resource.
        Returns:
        The unique string that identifies the resource
      • getAccountSid

        public final String getAccountSid()
        Returns The The SID of the Account that created the resource.
        Returns:
        The SID of the Account that created the resource
      • getFriendlyName

        public final PhoneNumber getFriendlyName()
        Returns The The string that you assigned to describe the resource.
        Returns:
        The string that you assigned to describe the resource
      • getPhoneNumber

        public final PhoneNumber getPhoneNumber()
        Returns The The phone number in E.164 format.
        Returns:
        The phone number in E.164 format
      • getVoiceUrl

        public final URI getVoiceUrl()
        Returns The The URL we call when the phone number receives a call.
        Returns:
        The URL we call when the phone number receives a call
      • getVoiceMethod

        public final HttpMethod getVoiceMethod()
        Returns The The HTTP method used with the voice_url.
        Returns:
        The HTTP method used with the voice_url
      • getVoiceFallbackMethod

        public final HttpMethod getVoiceFallbackMethod()
        Returns The The HTTP method used with voice_fallback_url.
        Returns:
        The HTTP method used with voice_fallback_url
      • getVoiceFallbackUrl

        public final URI getVoiceFallbackUrl()
        Returns The The URL we call when an error occurs in TwiML.
        Returns:
        The URL we call when an error occurs in TwiML
      • getVoiceCallerIdLookup

        public final Boolean getVoiceCallerIdLookup()
        Returns The Whether to lookup the caller's name.
        Returns:
        Whether to lookup the caller's name
      • getDateCreated

        public final org.joda.time.DateTime getDateCreated()
        Returns The The RFC 2822 date and time in GMT that the resource was created.
        Returns:
        The RFC 2822 date and time in GMT that the resource was created
      • getDateUpdated

        public final org.joda.time.DateTime getDateUpdated()
        Returns The The RFC 2822 date and time in GMT that the resource was last updated.
        Returns:
        The RFC 2822 date and time in GMT that the resource was last updated
      • getSmsFallbackMethod

        public final HttpMethod getSmsFallbackMethod()
        Returns The The HTTP method used with sms_fallback_url.
        Returns:
        The HTTP method used with sms_fallback_url
      • getSmsFallbackUrl

        public final URI getSmsFallbackUrl()
        Returns The The URL that we call when an error occurs while retrieving or executing the TwiML.
        Returns:
        The URL that we call when an error occurs while retrieving or executing the TwiML
      • getSmsMethod

        public final HttpMethod getSmsMethod()
        Returns The The HTTP method to use with sms_url.
        Returns:
        The HTTP method to use with sms_url
      • getSmsUrl

        public final URI getSmsUrl()
        Returns The The URL we call when the phone number receives an incoming SMS message.
        Returns:
        The URL we call when the phone number receives an incoming SMS message
      • getAddressRequirements

        public final DependentPhoneNumber.AddressRequirement getAddressRequirements()
        Returns The Whether the phone number requires an Address registered with Twilio.
        Returns:
        Whether the phone number requires an Address registered with Twilio
      • getCapabilities

        public final Map<String,​Object> getCapabilities()
        Returns The Indicate if a phone can receive calls or messages.
        Returns:
        Indicate if a phone can receive calls or messages
      • getStatusCallback

        public final URI getStatusCallback()
        Returns The The URL to send status information to your application.
        Returns:
        The URL to send status information to your application
      • getStatusCallbackMethod

        public final HttpMethod getStatusCallbackMethod()
        Returns The The HTTP method we use to call status_callback.
        Returns:
        The HTTP method we use to call status_callback
      • getApiVersion

        public final String getApiVersion()
        Returns The The API version used to start a new TwiML session.
        Returns:
        The API version used to start a new TwiML session
      • getSmsApplicationSid

        public final String getSmsApplicationSid()
        Returns The The SID of the application that handles SMS messages sent to the phone number.
        Returns:
        The SID of the application that handles SMS messages sent to the phone number
      • getVoiceApplicationSid

        public final String getVoiceApplicationSid()
        Returns The The SID of the application that handles calls to the phone number.
        Returns:
        The SID of the application that handles calls to the phone number
      • getTrunkSid

        public final String getTrunkSid()
        Returns The The SID of the Trunk that handles calls to the phone number.
        Returns:
        The SID of the Trunk that handles calls to the phone number
      • getEmergencyStatus

        public final DependentPhoneNumber.EmergencyStatus getEmergencyStatus()
        Returns The Whether the phone number is enabled for emergency calling.
        Returns:
        Whether the phone number is enabled for emergency calling
      • getEmergencyAddressSid

        public final String getEmergencyAddressSid()
        Returns The The emergency address configuration to use for emergency calling.
        Returns:
        The emergency address configuration to use for emergency calling
      • getUri

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

        public int hashCode()
        Overrides:
        hashCode in class Object