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 ==
.impl StructuralPartialEq for OriginationRouteBuilder
Auto Trait Implementations§
impl Freeze for OriginationRouteBuilder
impl RefUnwindSafe for OriginationRouteBuilder
impl Send for OriginationRouteBuilder
impl Sync for OriginationRouteBuilder
impl Unpin for OriginationRouteBuilder
impl UnwindSafe for OriginationRouteBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more