#[non_exhaustive]pub struct DnisEmergencyCallingConfigurationBuilder { /* private fields */ }
Expand description
A builder for DnisEmergencyCallingConfiguration
.
Implementations§
source§impl DnisEmergencyCallingConfigurationBuilder
impl DnisEmergencyCallingConfigurationBuilder
sourcepub fn emergency_phone_number(self, input: impl Into<String>) -> Self
pub fn emergency_phone_number(self, input: impl Into<String>) -> Self
The DNIS phone number to route emergency calls to, in E.164 format.
This field is required.sourcepub fn set_emergency_phone_number(self, input: Option<String>) -> Self
pub fn set_emergency_phone_number(self, input: Option<String>) -> Self
The DNIS phone number to route emergency calls to, in E.164 format.
sourcepub fn get_emergency_phone_number(&self) -> &Option<String>
pub fn get_emergency_phone_number(&self) -> &Option<String>
The DNIS phone number to route emergency calls to, in E.164 format.
sourcepub fn test_phone_number(self, input: impl Into<String>) -> Self
pub fn test_phone_number(self, input: impl Into<String>) -> Self
The DNIS phone number to route test emergency calls to, in E.164 format.
sourcepub fn set_test_phone_number(self, input: Option<String>) -> Self
pub fn set_test_phone_number(self, input: Option<String>) -> Self
The DNIS phone number to route test emergency calls to, in E.164 format.
sourcepub fn get_test_phone_number(&self) -> &Option<String>
pub fn get_test_phone_number(&self) -> &Option<String>
The DNIS phone number to route test emergency calls to, in E.164 format.
sourcepub fn calling_country(self, input: impl Into<String>) -> Self
pub fn calling_country(self, input: impl Into<String>) -> Self
The country from which emergency calls are allowed, in ISO 3166-1 alpha-2 format.
This field is required.sourcepub fn set_calling_country(self, input: Option<String>) -> Self
pub fn set_calling_country(self, input: Option<String>) -> Self
The country from which emergency calls are allowed, in ISO 3166-1 alpha-2 format.
sourcepub fn get_calling_country(&self) -> &Option<String>
pub fn get_calling_country(&self) -> &Option<String>
The country from which emergency calls are allowed, in ISO 3166-1 alpha-2 format.
sourcepub fn build(self) -> Result<DnisEmergencyCallingConfiguration, BuildError>
pub fn build(self) -> Result<DnisEmergencyCallingConfiguration, BuildError>
Consumes the builder and constructs a DnisEmergencyCallingConfiguration
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for DnisEmergencyCallingConfigurationBuilder
impl Clone for DnisEmergencyCallingConfigurationBuilder
source§fn clone(&self) -> DnisEmergencyCallingConfigurationBuilder
fn clone(&self) -> DnisEmergencyCallingConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for DnisEmergencyCallingConfigurationBuilder
impl Default for DnisEmergencyCallingConfigurationBuilder
source§fn default() -> DnisEmergencyCallingConfigurationBuilder
fn default() -> DnisEmergencyCallingConfigurationBuilder
source§impl PartialEq for DnisEmergencyCallingConfigurationBuilder
impl PartialEq for DnisEmergencyCallingConfigurationBuilder
source§fn eq(&self, other: &DnisEmergencyCallingConfigurationBuilder) -> bool
fn eq(&self, other: &DnisEmergencyCallingConfigurationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DnisEmergencyCallingConfigurationBuilder
Auto Trait Implementations§
impl Freeze for DnisEmergencyCallingConfigurationBuilder
impl RefUnwindSafe for DnisEmergencyCallingConfigurationBuilder
impl Send for DnisEmergencyCallingConfigurationBuilder
impl Sync for DnisEmergencyCallingConfigurationBuilder
impl Unpin for DnisEmergencyCallingConfigurationBuilder
impl UnwindSafe for DnisEmergencyCallingConfigurationBuilder
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