Struct aws_sdk_chime::types::builders::PhoneNumberBuilder
source · #[non_exhaustive]pub struct PhoneNumberBuilder { /* private fields */ }
Expand description
A builder for PhoneNumber
.
Implementations§
source§impl PhoneNumberBuilder
impl PhoneNumberBuilder
sourcepub fn phone_number_id(self, input: impl Into<String>) -> Self
pub fn phone_number_id(self, input: impl Into<String>) -> Self
The phone number ID.
sourcepub fn set_phone_number_id(self, input: Option<String>) -> Self
pub fn set_phone_number_id(self, input: Option<String>) -> Self
The phone number ID.
sourcepub fn get_phone_number_id(&self) -> &Option<String>
pub fn get_phone_number_id(&self) -> &Option<String>
The phone number ID.
sourcepub fn e164_phone_number(self, input: impl Into<String>) -> Self
pub fn e164_phone_number(self, input: impl Into<String>) -> Self
The phone number, in E.164 format.
sourcepub fn set_e164_phone_number(self, input: Option<String>) -> Self
pub fn set_e164_phone_number(self, input: Option<String>) -> Self
The phone number, in E.164 format.
sourcepub fn get_e164_phone_number(&self) -> &Option<String>
pub fn get_e164_phone_number(&self) -> &Option<String>
The phone number, in E.164 format.
sourcepub fn country(self, input: impl Into<String>) -> Self
pub fn country(self, input: impl Into<String>) -> Self
The phone number country. Format: ISO 3166-1 alpha-2.
sourcepub fn set_country(self, input: Option<String>) -> Self
pub fn set_country(self, input: Option<String>) -> Self
The phone number country. Format: ISO 3166-1 alpha-2.
sourcepub fn get_country(&self) -> &Option<String>
pub fn get_country(&self) -> &Option<String>
The phone number country. Format: ISO 3166-1 alpha-2.
sourcepub fn type(self, input: PhoneNumberType) -> Self
pub fn type(self, input: PhoneNumberType) -> Self
The phone number type.
sourcepub fn set_type(self, input: Option<PhoneNumberType>) -> Self
pub fn set_type(self, input: Option<PhoneNumberType>) -> Self
The phone number type.
sourcepub fn get_type(&self) -> &Option<PhoneNumberType>
pub fn get_type(&self) -> &Option<PhoneNumberType>
The phone number type.
sourcepub fn product_type(self, input: PhoneNumberProductType) -> Self
pub fn product_type(self, input: PhoneNumberProductType) -> Self
The phone number product type.
sourcepub fn set_product_type(self, input: Option<PhoneNumberProductType>) -> Self
pub fn set_product_type(self, input: Option<PhoneNumberProductType>) -> Self
The phone number product type.
sourcepub fn get_product_type(&self) -> &Option<PhoneNumberProductType>
pub fn get_product_type(&self) -> &Option<PhoneNumberProductType>
The phone number product type.
sourcepub fn status(self, input: PhoneNumberStatus) -> Self
pub fn status(self, input: PhoneNumberStatus) -> Self
The phone number status.
sourcepub fn set_status(self, input: Option<PhoneNumberStatus>) -> Self
pub fn set_status(self, input: Option<PhoneNumberStatus>) -> Self
The phone number status.
sourcepub fn get_status(&self) -> &Option<PhoneNumberStatus>
pub fn get_status(&self) -> &Option<PhoneNumberStatus>
The phone number status.
sourcepub fn capabilities(self, input: PhoneNumberCapabilities) -> Self
pub fn capabilities(self, input: PhoneNumberCapabilities) -> Self
The phone number capabilities.
sourcepub fn set_capabilities(self, input: Option<PhoneNumberCapabilities>) -> Self
pub fn set_capabilities(self, input: Option<PhoneNumberCapabilities>) -> Self
The phone number capabilities.
sourcepub fn get_capabilities(&self) -> &Option<PhoneNumberCapabilities>
pub fn get_capabilities(&self) -> &Option<PhoneNumberCapabilities>
The phone number capabilities.
sourcepub fn associations(self, input: PhoneNumberAssociation) -> Self
pub fn associations(self, input: PhoneNumberAssociation) -> Self
Appends an item to associations
.
To override the contents of this collection use set_associations
.
The phone number associations.
sourcepub fn set_associations(
self,
input: Option<Vec<PhoneNumberAssociation>>
) -> Self
pub fn set_associations( self, input: Option<Vec<PhoneNumberAssociation>> ) -> Self
The phone number associations.
sourcepub fn get_associations(&self) -> &Option<Vec<PhoneNumberAssociation>>
pub fn get_associations(&self) -> &Option<Vec<PhoneNumberAssociation>>
The phone number associations.
sourcepub fn calling_name(self, input: impl Into<String>) -> Self
pub fn calling_name(self, input: impl Into<String>) -> Self
The outbound calling name associated with the phone number.
sourcepub fn set_calling_name(self, input: Option<String>) -> Self
pub fn set_calling_name(self, input: Option<String>) -> Self
The outbound calling name associated with the phone number.
sourcepub fn get_calling_name(&self) -> &Option<String>
pub fn get_calling_name(&self) -> &Option<String>
The outbound calling name associated with the phone number.
sourcepub fn calling_name_status(self, input: CallingNameStatus) -> Self
pub fn calling_name_status(self, input: CallingNameStatus) -> Self
The outbound calling name status.
sourcepub fn set_calling_name_status(self, input: Option<CallingNameStatus>) -> Self
pub fn set_calling_name_status(self, input: Option<CallingNameStatus>) -> Self
The outbound calling name status.
sourcepub fn get_calling_name_status(&self) -> &Option<CallingNameStatus>
pub fn get_calling_name_status(&self) -> &Option<CallingNameStatus>
The outbound calling name status.
sourcepub fn created_timestamp(self, input: DateTime) -> Self
pub fn created_timestamp(self, input: DateTime) -> Self
The phone number creation timestamp, in ISO 8601 format.
sourcepub fn set_created_timestamp(self, input: Option<DateTime>) -> Self
pub fn set_created_timestamp(self, input: Option<DateTime>) -> Self
The phone number creation timestamp, in ISO 8601 format.
sourcepub fn get_created_timestamp(&self) -> &Option<DateTime>
pub fn get_created_timestamp(&self) -> &Option<DateTime>
The phone number creation timestamp, in ISO 8601 format.
sourcepub fn updated_timestamp(self, input: DateTime) -> Self
pub fn updated_timestamp(self, input: DateTime) -> Self
The updated phone number timestamp, in ISO 8601 format.
sourcepub fn set_updated_timestamp(self, input: Option<DateTime>) -> Self
pub fn set_updated_timestamp(self, input: Option<DateTime>) -> Self
The updated phone number timestamp, in ISO 8601 format.
sourcepub fn get_updated_timestamp(&self) -> &Option<DateTime>
pub fn get_updated_timestamp(&self) -> &Option<DateTime>
The updated phone number timestamp, in ISO 8601 format.
sourcepub fn deletion_timestamp(self, input: DateTime) -> Self
pub fn deletion_timestamp(self, input: DateTime) -> Self
The deleted phone number timestamp, in ISO 8601 format.
sourcepub fn set_deletion_timestamp(self, input: Option<DateTime>) -> Self
pub fn set_deletion_timestamp(self, input: Option<DateTime>) -> Self
The deleted phone number timestamp, in ISO 8601 format.
sourcepub fn get_deletion_timestamp(&self) -> &Option<DateTime>
pub fn get_deletion_timestamp(&self) -> &Option<DateTime>
The deleted phone number timestamp, in ISO 8601 format.
sourcepub fn build(self) -> PhoneNumber
pub fn build(self) -> PhoneNumber
Consumes the builder and constructs a PhoneNumber
.
Trait Implementations§
source§impl Clone for PhoneNumberBuilder
impl Clone for PhoneNumberBuilder
source§fn clone(&self) -> PhoneNumberBuilder
fn clone(&self) -> PhoneNumberBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PhoneNumberBuilder
impl Debug for PhoneNumberBuilder
source§impl Default for PhoneNumberBuilder
impl Default for PhoneNumberBuilder
source§fn default() -> PhoneNumberBuilder
fn default() -> PhoneNumberBuilder
source§impl PartialEq for PhoneNumberBuilder
impl PartialEq for PhoneNumberBuilder
source§fn eq(&self, other: &PhoneNumberBuilder) -> bool
fn eq(&self, other: &PhoneNumberBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PhoneNumberBuilder
Auto Trait Implementations§
impl Freeze for PhoneNumberBuilder
impl RefUnwindSafe for PhoneNumberBuilder
impl Send for PhoneNumberBuilder
impl Sync for PhoneNumberBuilder
impl Unpin for PhoneNumberBuilder
impl UnwindSafe for PhoneNumberBuilder
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