aws_sdk_pinpointsmsvoicev2/client/
update_sender_id.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`UpdateSenderId`](crate::operation::update_sender_id::builders::UpdateSenderIdFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`sender_id(impl Into<String>)`](crate::operation::update_sender_id::builders::UpdateSenderIdFluentBuilder::sender_id) / [`set_sender_id(Option<String>)`](crate::operation::update_sender_id::builders::UpdateSenderIdFluentBuilder::set_sender_id):<br>required: **true**<br><p>The sender ID to update.</p><br>
7    ///   - [`iso_country_code(impl Into<String>)`](crate::operation::update_sender_id::builders::UpdateSenderIdFluentBuilder::iso_country_code) / [`set_iso_country_code(Option<String>)`](crate::operation::update_sender_id::builders::UpdateSenderIdFluentBuilder::set_iso_country_code):<br>required: **true**<br><p>The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.</p><br>
8    ///   - [`deletion_protection_enabled(bool)`](crate::operation::update_sender_id::builders::UpdateSenderIdFluentBuilder::deletion_protection_enabled) / [`set_deletion_protection_enabled(Option<bool>)`](crate::operation::update_sender_id::builders::UpdateSenderIdFluentBuilder::set_deletion_protection_enabled):<br>required: **false**<br><p>By default this is set to false. When set to true the sender ID can't be deleted.</p><br>
9    /// - On success, responds with [`UpdateSenderIdOutput`](crate::operation::update_sender_id::UpdateSenderIdOutput) with field(s):
10    ///   - [`sender_id_arn(String)`](crate::operation::update_sender_id::UpdateSenderIdOutput::sender_id_arn): <p>The Amazon Resource Name (ARN) associated with the SenderId.</p>
11    ///   - [`sender_id(String)`](crate::operation::update_sender_id::UpdateSenderIdOutput::sender_id): <p>The sender ID that was updated.</p>
12    ///   - [`iso_country_code(String)`](crate::operation::update_sender_id::UpdateSenderIdOutput::iso_country_code): <p>The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.</p>
13    ///   - [`message_types(Vec::<MessageType>)`](crate::operation::update_sender_id::UpdateSenderIdOutput::message_types): <p>The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and PROMOTIONAL for messages that aren't critical or time-sensitive.</p>
14    ///   - [`monthly_leasing_price(String)`](crate::operation::update_sender_id::UpdateSenderIdOutput::monthly_leasing_price): <p>The monthly price, in US dollars, to lease the sender ID.</p>
15    ///   - [`deletion_protection_enabled(bool)`](crate::operation::update_sender_id::UpdateSenderIdOutput::deletion_protection_enabled): <p>By default this is set to false. When set to true the sender ID can't be deleted.</p>
16    ///   - [`registered(bool)`](crate::operation::update_sender_id::UpdateSenderIdOutput::registered): <p>True if the sender ID is registered..</p>
17    ///   - [`registration_id(Option<String>)`](crate::operation::update_sender_id::UpdateSenderIdOutput::registration_id): <p>The unique identifier for the registration.</p>
18    /// - On failure, responds with [`SdkError<UpdateSenderIdError>`](crate::operation::update_sender_id::UpdateSenderIdError)
19    pub fn update_sender_id(&self) -> crate::operation::update_sender_id::builders::UpdateSenderIdFluentBuilder {
20        crate::operation::update_sender_id::builders::UpdateSenderIdFluentBuilder::new(self.handle.clone())
21    }
22}