1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`ImportPhoneNumber`](crate::operation::import_phone_number::builders::ImportPhoneNumberFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`instance_id(impl Into<String>)`](crate::operation::import_phone_number::builders::ImportPhoneNumberFluentBuilder::instance_id) / [`set_instance_id(Option<String>)`](crate::operation::import_phone_number::builders::ImportPhoneNumberFluentBuilder::set_instance_id):<br>required: **true**<br><p>The identifier of the Amazon Connect instance. 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.</p><br>
    ///   - [`source_phone_number_arn(impl Into<String>)`](crate::operation::import_phone_number::builders::ImportPhoneNumberFluentBuilder::source_phone_number_arn) / [`set_source_phone_number_arn(Option<String>)`](crate::operation::import_phone_number::builders::ImportPhoneNumberFluentBuilder::set_source_phone_number_arn):<br>required: **true**<br><p>The claimed phone number ARN being imported from the external service, such as Amazon Pinpoint. If it is from Amazon Pinpoint, it looks like the ARN of the phone number to import from Amazon Pinpoint.</p><br>
    ///   - [`phone_number_description(impl Into<String>)`](crate::operation::import_phone_number::builders::ImportPhoneNumberFluentBuilder::phone_number_description) / [`set_phone_number_description(Option<String>)`](crate::operation::import_phone_number::builders::ImportPhoneNumberFluentBuilder::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::import_phone_number::builders::ImportPhoneNumberFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::import_phone_number::builders::ImportPhoneNumberFluentBuilder::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::import_phone_number::builders::ImportPhoneNumberFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::import_phone_number::builders::ImportPhoneNumberFluentBuilder::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><br>
    /// - On success, responds with [`ImportPhoneNumberOutput`](crate::operation::import_phone_number::ImportPhoneNumberOutput) with field(s):
    ///   - [`phone_number_id(Option<String>)`](crate::operation::import_phone_number::ImportPhoneNumberOutput::phone_number_id): <p>A unique identifier for the phone number.</p>
    ///   - [`phone_number_arn(Option<String>)`](crate::operation::import_phone_number::ImportPhoneNumberOutput::phone_number_arn): <p>The Amazon Resource Name (ARN) of the phone number.</p>
    /// - On failure, responds with [`SdkError<ImportPhoneNumberError>`](crate::operation::import_phone_number::ImportPhoneNumberError)
    pub fn import_phone_number(&self) -> crate::operation::import_phone_number::builders::ImportPhoneNumberFluentBuilder {
        crate::operation::import_phone_number::builders::ImportPhoneNumberFluentBuilder::new(self.handle.clone())
    }
}