Class Trunk

    • Method Detail

      • fetcher

        public static TrunkFetcher fetcher​(String pathSid)
        Create a TrunkFetcher to execute fetch.
        Parameters:
        pathSid - The unique string that identifies the resource
        Returns:
        TrunkFetcher capable of executing the fetch
      • deleter

        public static TrunkDeleter deleter​(String pathSid)
        Create a TrunkDeleter to execute delete.
        Parameters:
        pathSid - The unique string that identifies the resource
        Returns:
        TrunkDeleter capable of executing the delete
      • creator

        public static TrunkCreator creator()
        Create a TrunkCreator to execute create.
        Returns:
        TrunkCreator capable of executing the create
      • reader

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

        public static TrunkUpdater updater​(String pathSid)
        Create a TrunkUpdater to execute update.
        Parameters:
        pathSid - The unique string that identifies the resource
        Returns:
        TrunkUpdater capable of executing the update
      • fromJson

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

        public static Trunk fromJson​(InputStream json,
                                     com.fasterxml.jackson.databind.ObjectMapper objectMapper)
        Converts a JSON InputStream into a Trunk object using the provided ObjectMapper.
        Parameters:
        json - Raw JSON InputStream
        objectMapper - Jackson ObjectMapper
        Returns:
        Trunk object represented by the provided JSON
      • 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
      • getDomainName

        public final String getDomainName()
        Returns The The unique address you reserve on Twilio to which you route your SIP traffic.
        Returns:
        The unique address you reserve on Twilio to which you route your SIP traffic
      • getDisasterRecoveryMethod

        public final HttpMethod getDisasterRecoveryMethod()
        Returns The The HTTP method we use to call the disaster_recovery_url.
        Returns:
        The HTTP method we use to call the disaster_recovery_url
      • getDisasterRecoveryUrl

        public final URI getDisasterRecoveryUrl()
        Returns The The HTTP URL that we call if an error occurs while sending SIP traffic towards your configured Origination URL.
        Returns:
        The HTTP URL that we call if an error occurs while sending SIP traffic towards your configured Origination URL
      • getFriendlyName

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

        public final Boolean getSecure()
        Returns The Whether Secure Trunking is enabled for the trunk.
        Returns:
        Whether Secure Trunking is enabled for the trunk
      • getRecording

        public final Map<String,​Object> getRecording()
        Returns The The recording settings for the trunk.
        Returns:
        The recording settings for the trunk
      • getCnamLookupEnabled

        public final Boolean getCnamLookupEnabled()
        Returns The Whether Caller ID Name (CNAM) lookup is enabled for the trunk.
        Returns:
        Whether Caller ID Name (CNAM) lookup is enabled for the trunk
      • getAuthType

        public final String getAuthType()
        Returns The The types of authentication mapped to the domain.
        Returns:
        The types of authentication mapped to the domain
      • getAuthTypeSet

        public final List<String> getAuthTypeSet()
        Returns The Reserved.
        Returns:
        Reserved
      • getDateCreated

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

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

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

        public final URI getUrl()
        Returns The The absolute URL of the resource.
        Returns:
        The absolute URL of the resource
      • getLinks

        public final Map<String,​String> getLinks()
        Returns The The URLs of related resources.
        Returns:
        The URLs of related resources
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object