Struct aws_sdk_chime::operation::associate_phone_numbers_with_voice_connector::builders::AssociatePhoneNumbersWithVoiceConnectorInputBuilder
source · #[non_exhaustive]pub struct AssociatePhoneNumbersWithVoiceConnectorInputBuilder { /* private fields */ }
Expand description
A builder for AssociatePhoneNumbersWithVoiceConnectorInput
.
Implementations§
source§impl AssociatePhoneNumbersWithVoiceConnectorInputBuilder
impl AssociatePhoneNumbersWithVoiceConnectorInputBuilder
sourcepub fn voice_connector_id(self, input: impl Into<String>) -> Self
pub fn voice_connector_id(self, input: impl Into<String>) -> Self
The Amazon Chime Voice Connector ID.
This field is required.sourcepub fn set_voice_connector_id(self, input: Option<String>) -> Self
pub fn set_voice_connector_id(self, input: Option<String>) -> Self
The Amazon Chime Voice Connector ID.
sourcepub fn get_voice_connector_id(&self) -> &Option<String>
pub fn get_voice_connector_id(&self) -> &Option<String>
The Amazon Chime Voice Connector ID.
sourcepub fn e164_phone_numbers(self, input: impl Into<String>) -> Self
pub fn e164_phone_numbers(self, input: impl Into<String>) -> Self
Appends an item to e164_phone_numbers
.
To override the contents of this collection use set_e164_phone_numbers
.
List of phone numbers, in E.164 format.
sourcepub fn set_e164_phone_numbers(self, input: Option<Vec<String>>) -> Self
pub fn set_e164_phone_numbers(self, input: Option<Vec<String>>) -> Self
List of phone numbers, in E.164 format.
sourcepub fn get_e164_phone_numbers(&self) -> &Option<Vec<String>>
pub fn get_e164_phone_numbers(&self) -> &Option<Vec<String>>
List of phone numbers, in E.164 format.
sourcepub fn force_associate(self, input: bool) -> Self
pub fn force_associate(self, input: bool) -> Self
If true, associates the provided phone numbers with the provided Amazon Chime Voice Connector and removes any previously existing associations. If false, does not associate any phone numbers that have previously existing associations.
sourcepub fn set_force_associate(self, input: Option<bool>) -> Self
pub fn set_force_associate(self, input: Option<bool>) -> Self
If true, associates the provided phone numbers with the provided Amazon Chime Voice Connector and removes any previously existing associations. If false, does not associate any phone numbers that have previously existing associations.
sourcepub fn get_force_associate(&self) -> &Option<bool>
pub fn get_force_associate(&self) -> &Option<bool>
If true, associates the provided phone numbers with the provided Amazon Chime Voice Connector and removes any previously existing associations. If false, does not associate any phone numbers that have previously existing associations.
sourcepub fn build(
self
) -> Result<AssociatePhoneNumbersWithVoiceConnectorInput, BuildError>
pub fn build( self ) -> Result<AssociatePhoneNumbersWithVoiceConnectorInput, BuildError>
Consumes the builder and constructs a AssociatePhoneNumbersWithVoiceConnectorInput
.
source§impl AssociatePhoneNumbersWithVoiceConnectorInputBuilder
impl AssociatePhoneNumbersWithVoiceConnectorInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<AssociatePhoneNumbersWithVoiceConnectorOutput, SdkError<AssociatePhoneNumbersWithVoiceConnectorError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<AssociatePhoneNumbersWithVoiceConnectorOutput, SdkError<AssociatePhoneNumbersWithVoiceConnectorError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for AssociatePhoneNumbersWithVoiceConnectorInputBuilder
impl Clone for AssociatePhoneNumbersWithVoiceConnectorInputBuilder
source§fn clone(&self) -> AssociatePhoneNumbersWithVoiceConnectorInputBuilder
fn clone(&self) -> AssociatePhoneNumbersWithVoiceConnectorInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for AssociatePhoneNumbersWithVoiceConnectorInputBuilder
impl Default for AssociatePhoneNumbersWithVoiceConnectorInputBuilder
source§fn default() -> AssociatePhoneNumbersWithVoiceConnectorInputBuilder
fn default() -> AssociatePhoneNumbersWithVoiceConnectorInputBuilder
source§impl PartialEq for AssociatePhoneNumbersWithVoiceConnectorInputBuilder
impl PartialEq for AssociatePhoneNumbersWithVoiceConnectorInputBuilder
source§fn eq(
&self,
other: &AssociatePhoneNumbersWithVoiceConnectorInputBuilder
) -> bool
fn eq( &self, other: &AssociatePhoneNumbersWithVoiceConnectorInputBuilder ) -> bool
self
and other
values to be equal, and is used
by ==
.