aws_sdk_pinpointsmsvoicev2/client/
put_protect_configuration_rule_set_number_override.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 [`PutProtectConfigurationRuleSetNumberOverride`](crate::operation::put_protect_configuration_rule_set_number_override::builders::PutProtectConfigurationRuleSetNumberOverrideFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`client_token(impl Into<String>)`](crate::operation::put_protect_configuration_rule_set_number_override::builders::PutProtectConfigurationRuleSetNumberOverrideFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::put_protect_configuration_rule_set_number_override::builders::PutProtectConfigurationRuleSetNumberOverrideFluentBuilder::set_client_token):<br>required: **false**<br><p>Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don't specify a client token, a randomly generated token is used for the request to ensure idempotency.</p><br>
7    ///   - [`protect_configuration_id(impl Into<String>)`](crate::operation::put_protect_configuration_rule_set_number_override::builders::PutProtectConfigurationRuleSetNumberOverrideFluentBuilder::protect_configuration_id) / [`set_protect_configuration_id(Option<String>)`](crate::operation::put_protect_configuration_rule_set_number_override::builders::PutProtectConfigurationRuleSetNumberOverrideFluentBuilder::set_protect_configuration_id):<br>required: **true**<br><p>The unique identifier for the protect configuration.</p><br>
8    ///   - [`destination_phone_number(impl Into<String>)`](crate::operation::put_protect_configuration_rule_set_number_override::builders::PutProtectConfigurationRuleSetNumberOverrideFluentBuilder::destination_phone_number) / [`set_destination_phone_number(Option<String>)`](crate::operation::put_protect_configuration_rule_set_number_override::builders::PutProtectConfigurationRuleSetNumberOverrideFluentBuilder::set_destination_phone_number):<br>required: **true**<br><p>The destination phone number in E.164 format.</p><br>
9    ///   - [`action(ProtectConfigurationRuleOverrideAction)`](crate::operation::put_protect_configuration_rule_set_number_override::builders::PutProtectConfigurationRuleSetNumberOverrideFluentBuilder::action) / [`set_action(Option<ProtectConfigurationRuleOverrideAction>)`](crate::operation::put_protect_configuration_rule_set_number_override::builders::PutProtectConfigurationRuleSetNumberOverrideFluentBuilder::set_action):<br>required: **true**<br><p>The action for the rule to either block or allow messages to the destination phone number.</p><br>
10    ///   - [`expiration_timestamp(DateTime)`](crate::operation::put_protect_configuration_rule_set_number_override::builders::PutProtectConfigurationRuleSetNumberOverrideFluentBuilder::expiration_timestamp) / [`set_expiration_timestamp(Option<DateTime>)`](crate::operation::put_protect_configuration_rule_set_number_override::builders::PutProtectConfigurationRuleSetNumberOverrideFluentBuilder::set_expiration_timestamp):<br>required: **false**<br><p>The time the rule will expire at. If <code>ExpirationTimestamp</code> is not set then the rule does not expire.</p><br>
11    /// - On success, responds with [`PutProtectConfigurationRuleSetNumberOverrideOutput`](crate::operation::put_protect_configuration_rule_set_number_override::PutProtectConfigurationRuleSetNumberOverrideOutput) with field(s):
12    ///   - [`protect_configuration_arn(String)`](crate::operation::put_protect_configuration_rule_set_number_override::PutProtectConfigurationRuleSetNumberOverrideOutput::protect_configuration_arn): <p>The Amazon Resource Name (ARN) of the protect configuration.</p>
13    ///   - [`protect_configuration_id(String)`](crate::operation::put_protect_configuration_rule_set_number_override::PutProtectConfigurationRuleSetNumberOverrideOutput::protect_configuration_id): <p>The unique identifier for the protect configuration.</p>
14    ///   - [`destination_phone_number(String)`](crate::operation::put_protect_configuration_rule_set_number_override::PutProtectConfigurationRuleSetNumberOverrideOutput::destination_phone_number): <p>The destination phone number in E.164 format.</p>
15    ///   - [`created_timestamp(DateTime)`](crate::operation::put_protect_configuration_rule_set_number_override::PutProtectConfigurationRuleSetNumberOverrideOutput::created_timestamp): <p>The time when the rule was created, in <a href="https://www.epochconverter.com/">UNIX epoch time</a> format.</p>
16    ///   - [`action(ProtectConfigurationRuleOverrideAction)`](crate::operation::put_protect_configuration_rule_set_number_override::PutProtectConfigurationRuleSetNumberOverrideOutput::action): <p>The action for the rule to take.</p>
17    ///   - [`iso_country_code(Option<String>)`](crate::operation::put_protect_configuration_rule_set_number_override::PutProtectConfigurationRuleSetNumberOverrideOutput::iso_country_code): <p>The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.</p>
18    ///   - [`expiration_timestamp(Option<DateTime>)`](crate::operation::put_protect_configuration_rule_set_number_override::PutProtectConfigurationRuleSetNumberOverrideOutput::expiration_timestamp): <p>The time the rule will expire at.</p>
19    /// - On failure, responds with [`SdkError<PutProtectConfigurationRuleSetNumberOverrideError>`](crate::operation::put_protect_configuration_rule_set_number_override::PutProtectConfigurationRuleSetNumberOverrideError)
20    pub fn put_protect_configuration_rule_set_number_override(
21        &self,
22    ) -> crate::operation::put_protect_configuration_rule_set_number_override::builders::PutProtectConfigurationRuleSetNumberOverrideFluentBuilder
23    {
24        crate::operation::put_protect_configuration_rule_set_number_override::builders::PutProtectConfigurationRuleSetNumberOverrideFluentBuilder::new(
25            self.handle.clone(),
26        )
27    }
28}