Struct aws_sdk_connect::operation::claim_phone_number::builders::ClaimPhoneNumberInputBuilder
source · #[non_exhaustive]pub struct ClaimPhoneNumberInputBuilder { /* private fields */ }
Expand description
A builder for ClaimPhoneNumberInput
.
Implementations§
source§impl ClaimPhoneNumberInputBuilder
impl ClaimPhoneNumberInputBuilder
sourcepub fn target_arn(self, input: impl Into<String>) -> Self
pub fn target_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) for Amazon Connect instances or traffic distribution groups that phone numbers are claimed to.
sourcepub fn set_target_arn(self, input: Option<String>) -> Self
pub fn set_target_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) for Amazon Connect instances or traffic distribution groups that phone numbers are claimed to.
sourcepub fn phone_number(self, input: impl Into<String>) -> Self
pub fn phone_number(self, input: impl Into<String>) -> Self
The phone number you want to claim. Phone numbers are formatted [+] [country code] [subscriber number including area code]
.
sourcepub fn set_phone_number(self, input: Option<String>) -> Self
pub fn set_phone_number(self, input: Option<String>) -> Self
The phone number you want to claim. Phone numbers are formatted [+] [country code] [subscriber number including area code]
.
sourcepub fn phone_number_description(self, input: impl Into<String>) -> Self
pub fn phone_number_description(self, input: impl Into<String>) -> Self
The description of the phone number.
sourcepub fn set_phone_number_description(self, input: Option<String>) -> Self
pub fn set_phone_number_description(self, input: Option<String>) -> Self
The description of the phone number.
Adds a key-value pair to tags
.
To override the contents of this collection use set_tags
.
The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
sourcepub fn client_token(self, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
Pattern: ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$
sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
Pattern: ^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$
sourcepub fn build(self) -> Result<ClaimPhoneNumberInput, BuildError>
pub fn build(self) -> Result<ClaimPhoneNumberInput, BuildError>
Consumes the builder and constructs a ClaimPhoneNumberInput
.
Trait Implementations§
source§impl Clone for ClaimPhoneNumberInputBuilder
impl Clone for ClaimPhoneNumberInputBuilder
source§fn clone(&self) -> ClaimPhoneNumberInputBuilder
fn clone(&self) -> ClaimPhoneNumberInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ClaimPhoneNumberInputBuilder
impl Debug for ClaimPhoneNumberInputBuilder
source§impl Default for ClaimPhoneNumberInputBuilder
impl Default for ClaimPhoneNumberInputBuilder
source§fn default() -> ClaimPhoneNumberInputBuilder
fn default() -> ClaimPhoneNumberInputBuilder
source§impl PartialEq<ClaimPhoneNumberInputBuilder> for ClaimPhoneNumberInputBuilder
impl PartialEq<ClaimPhoneNumberInputBuilder> for ClaimPhoneNumberInputBuilder
source§fn eq(&self, other: &ClaimPhoneNumberInputBuilder) -> bool
fn eq(&self, other: &ClaimPhoneNumberInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.