Class OriginationRoute

    • Method Detail

      • host

        public final String host()

        The FQDN or IP address to contact for origination traffic.

        Returns:
        The FQDN or IP address to contact for origination traffic.
      • port

        public final Integer port()

        The designated origination route port. Defaults to 5060.

        Returns:
        The designated origination route port. Defaults to 5060.
      • protocolAsString

        public final String protocolAsString()

        The protocol to use for the origination route. Encryption-enabled Amazon Chime SDK Voice Connectors use TCP protocol by default.

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

        Returns:
        The protocol to use for the origination route. Encryption-enabled Amazon Chime SDK Voice Connectors use TCP protocol by default.
        See Also:
        OriginationRouteProtocol
      • priority

        public final Integer priority()

        The priority associated with the host, with 1 being the highest priority. Higher priority hosts are attempted first.

        Returns:
        The priority associated with the host, with 1 being the highest priority. Higher priority hosts are attempted first.
      • weight

        public final Integer weight()

        The weight assigned to an origination route. When hosts have equal priority, calls are distributed between them based on their relative weights.

        Returns:
        The weight assigned to an origination route. When hosts have equal priority, calls are distributed between them based on their relative weights.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • 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
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)