Struct aws_sdk_chime::types::builders::OriginationRouteBuilder
source · #[non_exhaustive]pub struct OriginationRouteBuilder { /* private fields */ }
Expand description
A builder for OriginationRoute
.
Implementations§
source§impl OriginationRouteBuilder
impl OriginationRouteBuilder
sourcepub fn host(self, input: impl Into<String>) -> Self
pub fn host(self, input: impl Into<String>) -> Self
The FQDN or IP address to contact for origination traffic.
sourcepub fn set_host(self, input: Option<String>) -> Self
pub fn set_host(self, input: Option<String>) -> Self
The FQDN or IP address to contact for origination traffic.
sourcepub fn get_host(&self) -> &Option<String>
pub fn get_host(&self) -> &Option<String>
The FQDN or IP address to contact for origination traffic.
sourcepub fn set_port(self, input: Option<i32>) -> Self
pub fn set_port(self, input: Option<i32>) -> Self
The designated origination route port. Defaults to 5060.
sourcepub fn get_port(&self) -> &Option<i32>
pub fn get_port(&self) -> &Option<i32>
The designated origination route port. Defaults to 5060.
sourcepub fn protocol(self, input: OriginationRouteProtocol) -> Self
pub fn protocol(self, input: OriginationRouteProtocol) -> Self
The protocol to use for the origination route. Encryption-enabled Amazon Chime Voice Connectors use TCP protocol by default.
sourcepub fn set_protocol(self, input: Option<OriginationRouteProtocol>) -> Self
pub fn set_protocol(self, input: Option<OriginationRouteProtocol>) -> Self
The protocol to use for the origination route. Encryption-enabled Amazon Chime Voice Connectors use TCP protocol by default.
sourcepub fn get_protocol(&self) -> &Option<OriginationRouteProtocol>
pub fn get_protocol(&self) -> &Option<OriginationRouteProtocol>
The protocol to use for the origination route. Encryption-enabled Amazon Chime Voice Connectors use TCP protocol by default.
sourcepub fn priority(self, input: i32) -> Self
pub fn priority(self, input: i32) -> Self
The priority associated with the host, with 1 being the highest priority. Higher priority hosts are attempted first.
sourcepub fn set_priority(self, input: Option<i32>) -> Self
pub fn set_priority(self, input: Option<i32>) -> Self
The priority associated with the host, with 1 being the highest priority. Higher priority hosts are attempted first.
sourcepub fn get_priority(&self) -> &Option<i32>
pub fn get_priority(&self) -> &Option<i32>
The priority associated with the host, with 1 being the highest priority. Higher priority hosts are attempted first.
sourcepub fn weight(self, input: i32) -> Self
pub fn weight(self, input: i32) -> Self
The weight associated with the host. If hosts are equal in priority, calls are redistributed among them based on their relative weight.
sourcepub fn set_weight(self, input: Option<i32>) -> Self
pub fn set_weight(self, input: Option<i32>) -> Self
The weight associated with the host. If hosts are equal in priority, calls are redistributed among them based on their relative weight.
sourcepub fn get_weight(&self) -> &Option<i32>
pub fn get_weight(&self) -> &Option<i32>
The weight associated with the host. If hosts are equal in priority, calls are redistributed among them based on their relative weight.
sourcepub fn build(self) -> OriginationRoute
pub fn build(self) -> OriginationRoute
Consumes the builder and constructs a OriginationRoute
.
Trait Implementations§
source§impl Clone for OriginationRouteBuilder
impl Clone for OriginationRouteBuilder
source§fn clone(&self) -> OriginationRouteBuilder
fn clone(&self) -> OriginationRouteBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for OriginationRouteBuilder
impl Debug for OriginationRouteBuilder
source§impl Default for OriginationRouteBuilder
impl Default for OriginationRouteBuilder
source§fn default() -> OriginationRouteBuilder
fn default() -> OriginationRouteBuilder
source§impl PartialEq for OriginationRouteBuilder
impl PartialEq for OriginationRouteBuilder
source§fn eq(&self, other: &OriginationRouteBuilder) -> bool
fn eq(&self, other: &OriginationRouteBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.