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 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 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 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 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 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 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 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 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 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 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 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 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 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<PhoneNumberBuilder> for PhoneNumberBuilder
impl PartialEq<PhoneNumberBuilder> 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 ==.