@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 your Amazon Chime Voice Connector. Limit: Ten origination routes for each Amazon Chime 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 associated with the host.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller 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 associated with the host.
|
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 associated with the host.
|
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 Voice Connectors use TCP protocol by default.
protocol
- The protocol to use for the origination route. Encryption-enabled Amazon Chime Voice Connectors use TCP
protocol by default.OriginationRouteProtocol
public String getProtocol()
The protocol to use for the origination route. Encryption-enabled Amazon Chime 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 Voice Connectors use TCP protocol by default.
protocol
- The protocol to use for the origination route. Encryption-enabled Amazon Chime 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 Voice Connectors use TCP protocol by default.
protocol
- The protocol to use for the origination route. Encryption-enabled Amazon Chime 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 associated with the host. If hosts are equal in priority, calls are redistributed among them based on their relative weight.
weight
- The weight associated with the host. If hosts are equal in priority, calls are redistributed among them
based on their relative weight.public Integer getWeight()
The weight associated with the host. If hosts are equal in priority, calls are redistributed among them based on their relative weight.
public OriginationRoute withWeight(Integer weight)
The weight associated with the host. If hosts are equal in priority, calls are redistributed among them based on their relative weight.
weight
- The weight associated with the host. If hosts are equal in priority, calls are redistributed among them
based on their relative weight.public String toString()
toString
in class Object
Object.toString()
public OriginationRoute clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall
in interface StructuredPojo
Copyright © 2023. All rights reserved.