1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`ClaimPhoneNumber`](crate::operation::claim_phone_number::builders::ClaimPhoneNumberFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`target_arn(impl Into<String>)`](crate::operation::claim_phone_number::builders::ClaimPhoneNumberFluentBuilder::target_arn) / [`set_target_arn(Option<String>)`](crate::operation::claim_phone_number::builders::ClaimPhoneNumberFluentBuilder::set_target_arn):<br>required: **false**<br><p>The Amazon Resource Name (ARN) for Amazon Connect instances or traffic distribution groups that phone number inbound traffic is routed through. You must enter <code>InstanceId</code> or <code>TargetArn</code>.</p><br>
    ///   - [`instance_id(impl Into<String>)`](crate::operation::claim_phone_number::builders::ClaimPhoneNumberFluentBuilder::instance_id) / [`set_instance_id(Option<String>)`](crate::operation::claim_phone_number::builders::ClaimPhoneNumberFluentBuilder::set_instance_id):<br>required: **false**<br><p>The identifier of the Amazon Connect instance that phone numbers are claimed to. You can <a href="https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html">find the instance ID</a> in the Amazon Resource Name (ARN) of the instance. You must enter <code>InstanceId</code> or <code>TargetArn</code>.</p><br>
    ///   - [`phone_number(impl Into<String>)`](crate::operation::claim_phone_number::builders::ClaimPhoneNumberFluentBuilder::phone_number) / [`set_phone_number(Option<String>)`](crate::operation::claim_phone_number::builders::ClaimPhoneNumberFluentBuilder::set_phone_number):<br>required: **true**<br><p>The phone number you want to claim. Phone numbers are formatted <code>[+] [country code] [subscriber number including area code]</code>.</p><br>
    ///   - [`phone_number_description(impl Into<String>)`](crate::operation::claim_phone_number::builders::ClaimPhoneNumberFluentBuilder::phone_number_description) / [`set_phone_number_description(Option<String>)`](crate::operation::claim_phone_number::builders::ClaimPhoneNumberFluentBuilder::set_phone_number_description):<br>required: **false**<br><p>The description of the phone number.</p><br>
    ///   - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::claim_phone_number::builders::ClaimPhoneNumberFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::claim_phone_number::builders::ClaimPhoneNumberFluentBuilder::set_tags):<br>required: **false**<br><p>The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.</p><br>
    ///   - [`client_token(impl Into<String>)`](crate::operation::claim_phone_number::builders::ClaimPhoneNumberFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::claim_phone_number::builders::ClaimPhoneNumberFluentBuilder::set_client_token):<br>required: **false**<br><p>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 <a href="https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/">Making retries safe with idempotent APIs</a>.</p> <p>Pattern: <code>^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$</code></p><br>
    /// - On success, responds with [`ClaimPhoneNumberOutput`](crate::operation::claim_phone_number::ClaimPhoneNumberOutput) with field(s):
    ///   - [`phone_number_id(Option<String>)`](crate::operation::claim_phone_number::ClaimPhoneNumberOutput::phone_number_id): <p>A unique identifier for the phone number.</p>
    ///   - [`phone_number_arn(Option<String>)`](crate::operation::claim_phone_number::ClaimPhoneNumberOutput::phone_number_arn): <p>The Amazon Resource Name (ARN) of the phone number.</p>
    /// - On failure, responds with [`SdkError<ClaimPhoneNumberError>`](crate::operation::claim_phone_number::ClaimPhoneNumberError)
    pub fn claim_phone_number(&self) -> crate::operation::claim_phone_number::builders::ClaimPhoneNumberFluentBuilder {
        crate::operation::claim_phone_number::builders::ClaimPhoneNumberFluentBuilder::new(self.handle.clone())
    }
}