@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class OriginationRoute extends Object implements Serializable, Cloneable, StructuredPojo
Origination routes define call distribution properties for your SIP hosts to receive inbound calls using an Amazon Chime SDK Voice Connector. Limit: Ten origination routes for each Voice Connector.
The parameters listed below are not required, but you must use at least one.
Constructor and Description |
---|
OriginationRoute() |
Modifier and Type | Method and Description |
---|---|
OriginationRoute |
clone() |
boolean |
equals(Object obj) |
String |
getHost()
The FQDN or IP address to contact for origination traffic.
|
Integer |
getPort()
The designated origination route port.
|
Integer |
getPriority()
The priority associated with the host, with 1 being the highest priority.
|
String |
getProtocol()
The protocol to use for the origination route.
|
Integer |
getWeight()
The weight assigned to an origination route.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setHost(String host)
The FQDN or IP address to contact for origination traffic.
|
void |
setPort(Integer port)
The designated origination route port.
|
void |
setPriority(Integer priority)
The priority associated with the host, with 1 being the highest priority.
|
void |
setProtocol(String protocol)
The protocol to use for the origination route.
|
void |
setWeight(Integer weight)
The weight assigned to an origination route.
|
String |
toString()
Returns a string representation of this object.
|
OriginationRoute |
withHost(String host)
The FQDN or IP address to contact for origination traffic.
|
OriginationRoute |
withPort(Integer port)
The designated origination route port.
|
OriginationRoute |
withPriority(Integer priority)
The priority associated with the host, with 1 being the highest priority.
|
OriginationRoute |
withProtocol(OriginationRouteProtocol protocol)
The protocol to use for the origination route.
|
OriginationRoute |
withProtocol(String protocol)
The protocol to use for the origination route.
|
OriginationRoute |
withWeight(Integer weight)
The weight assigned to an origination route.
|
public void setHost(String host)
The FQDN or IP address to contact for origination traffic.
host
- The FQDN or IP address to contact for origination traffic.public String getHost()
The FQDN or IP address to contact for origination traffic.
public OriginationRoute withHost(String host)
The FQDN or IP address to contact for origination traffic.
host
- The FQDN or IP address to contact for origination traffic.public void setPort(Integer port)
The designated origination route port. Defaults to 5060.
port
- The designated origination route port. Defaults to 5060.public Integer getPort()
The designated origination route port. Defaults to 5060.
public OriginationRoute withPort(Integer port)
The designated origination route port. Defaults to 5060.
port
- The designated origination route port. Defaults to 5060.public void setProtocol(String protocol)
The protocol to use for the origination route. Encryption-enabled Amazon Chime SDK Voice Connectors use TCP protocol by default.
protocol
- The protocol to use for the origination route. Encryption-enabled Amazon Chime SDK Voice Connectors use
TCP protocol by default.OriginationRouteProtocol
public String getProtocol()
The protocol to use for the origination route. Encryption-enabled Amazon Chime SDK Voice Connectors use TCP protocol by default.
OriginationRouteProtocol
public OriginationRoute withProtocol(String protocol)
The protocol to use for the origination route. Encryption-enabled Amazon Chime SDK Voice Connectors use TCP protocol by default.
protocol
- The protocol to use for the origination route. Encryption-enabled Amazon Chime SDK Voice Connectors use
TCP protocol by default.OriginationRouteProtocol
public OriginationRoute withProtocol(OriginationRouteProtocol protocol)
The protocol to use for the origination route. Encryption-enabled Amazon Chime SDK Voice Connectors use TCP protocol by default.
protocol
- The protocol to use for the origination route. Encryption-enabled Amazon Chime SDK Voice Connectors use
TCP protocol by default.OriginationRouteProtocol
public void setPriority(Integer priority)
The priority associated with the host, with 1 being the highest priority. Higher priority hosts are attempted first.
priority
- The priority associated with the host, with 1 being the highest priority. Higher priority hosts are
attempted first.public Integer getPriority()
The priority associated with the host, with 1 being the highest priority. Higher priority hosts are attempted first.
public OriginationRoute withPriority(Integer priority)
The priority associated with the host, with 1 being the highest priority. Higher priority hosts are attempted first.
priority
- The priority associated with the host, with 1 being the highest priority. Higher priority hosts are
attempted first.public void setWeight(Integer weight)
The weight assigned to an origination route. When hosts have equal priority, calls are distributed between them based on their relative weights.
weight
- The weight assigned to an origination route. When hosts have equal priority, calls are distributed between
them based on their relative weights.public Integer getWeight()
The weight assigned to an origination route. When hosts have equal priority, calls are distributed between them based on their relative weights.
public OriginationRoute withWeight(Integer weight)
The weight assigned to an origination route. When hosts have equal priority, calls are distributed between them based on their relative weights.
weight
- The weight assigned to an origination route. When hosts have equal priority, calls are distributed between
them based on their relative weights.public String toString()
toString
in class Object
Object.toString()
public OriginationRoute clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.