Class OriginationUrl

    • Method Detail

      • fetcher

        public static OriginationUrlFetcher fetcher​(String pathTrunkSid,
                                                    String pathSid)
        Create a OriginationUrlFetcher to execute fetch.
        Parameters:
        pathTrunkSid - The SID of the Trunk from which to fetch the OriginationUrl
        pathSid - The unique string that identifies the resource
        Returns:
        OriginationUrlFetcher capable of executing the fetch
      • deleter

        public static OriginationUrlDeleter deleter​(String pathTrunkSid,
                                                    String pathSid)
        Create a OriginationUrlDeleter to execute delete.
        Parameters:
        pathTrunkSid - The SID of the Trunk from which to delete the OriginationUrl
        pathSid - The unique string that identifies the resource
        Returns:
        OriginationUrlDeleter capable of executing the delete
      • creator

        public static OriginationUrlCreator creator​(String pathTrunkSid,
                                                    Integer weight,
                                                    Integer priority,
                                                    Boolean enabled,
                                                    String friendlyName,
                                                    URI sipUrl)
        Create a OriginationUrlCreator to execute create.
        Parameters:
        pathTrunkSid - The SID of the Trunk to associate the resource with
        weight - The value that determines the relative load the URI should receive compared to others with the same priority
        priority - The relative importance of the URI
        enabled - Whether the URL is enabled
        friendlyName - A string to describe the resource
        sipUrl - The SIP address you want Twilio to route your Origination calls to
        Returns:
        OriginationUrlCreator capable of executing the create
      • reader

        public static OriginationUrlReader reader​(String pathTrunkSid)
        Create a OriginationUrlReader to execute read.
        Parameters:
        pathTrunkSid - The SID of the Trunk from which to read the OriginationUrl
        Returns:
        OriginationUrlReader capable of executing the read
      • updater

        public static OriginationUrlUpdater updater​(String pathTrunkSid,
                                                    String pathSid)
        Create a OriginationUrlUpdater to execute update.
        Parameters:
        pathTrunkSid - The SID of the Trunk from which to update the OriginationUrl
        pathSid - The unique string that identifies the resource
        Returns:
        OriginationUrlUpdater capable of executing the update
      • fromJson

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

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

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

        public final String getTrunkSid()
        Returns The The SID of the Trunk that owns the Origination URL.
        Returns:
        The SID of the Trunk that owns the Origination URL
      • getWeight

        public final Integer getWeight()
        Returns The The value that determines the relative load the URI should receive compared to others with the same priority.
        Returns:
        The value that determines the relative load the URI should receive compared to others with the same priority
      • getEnabled

        public final Boolean getEnabled()
        Returns The Whether the URL is enabled.
        Returns:
        Whether the URL is enabled
      • getSipUrl

        public final URI getSipUrl()
        Returns The The SIP address you want Twilio to route your Origination calls to.
        Returns:
        The SIP address you want Twilio to route your Origination calls to
      • 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
      • getPriority

        public final Integer getPriority()
        Returns The The relative importance of the URI.
        Returns:
        The relative importance of the URI
      • 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
      • getUrl

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

        public int hashCode()
        Overrides:
        hashCode in class Object