aws_sdk_pinpointsmsvoicev2/client/create_opt_out_list.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 [`CreateOptOutList`](crate::operation::create_opt_out_list::builders::CreateOptOutListFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`opt_out_list_name(impl Into<String>)`](crate::operation::create_opt_out_list::builders::CreateOptOutListFluentBuilder::opt_out_list_name) / [`set_opt_out_list_name(Option<String>)`](crate::operation::create_opt_out_list::builders::CreateOptOutListFluentBuilder::set_opt_out_list_name):<br>required: **true**<br><p>The name of the new OptOutList.</p><br>
7 /// - [`tags(Tag)`](crate::operation::create_opt_out_list::builders::CreateOptOutListFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::create_opt_out_list::builders::CreateOptOutListFluentBuilder::set_tags):<br>required: **false**<br><p>An array of tags (key and value pairs) to associate with the new OptOutList.</p><br>
8 /// - [`client_token(impl Into<String>)`](crate::operation::create_opt_out_list::builders::CreateOptOutListFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_opt_out_list::builders::CreateOptOutListFluentBuilder::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>
9 /// - On success, responds with [`CreateOptOutListOutput`](crate::operation::create_opt_out_list::CreateOptOutListOutput) with field(s):
10 /// - [`opt_out_list_arn(Option<String>)`](crate::operation::create_opt_out_list::CreateOptOutListOutput::opt_out_list_arn): <p>The Amazon Resource Name (ARN) for the OptOutList.</p>
11 /// - [`opt_out_list_name(Option<String>)`](crate::operation::create_opt_out_list::CreateOptOutListOutput::opt_out_list_name): <p>The name of the new OptOutList.</p>
12 /// - [`tags(Option<Vec::<Tag>>)`](crate::operation::create_opt_out_list::CreateOptOutListOutput::tags): <p>An array of tags (key and value pairs) associated with the new OptOutList.</p>
13 /// - [`created_timestamp(Option<DateTime>)`](crate::operation::create_opt_out_list::CreateOptOutListOutput::created_timestamp): <p>The time when the pool was created, in <a href="https://www.epochconverter.com/">UNIX epoch time</a> format.</p>
14 /// - On failure, responds with [`SdkError<CreateOptOutListError>`](crate::operation::create_opt_out_list::CreateOptOutListError)
15 pub fn create_opt_out_list(&self) -> crate::operation::create_opt_out_list::builders::CreateOptOutListFluentBuilder {
16 crate::operation::create_opt_out_list::builders::CreateOptOutListFluentBuilder::new(self.handle.clone())
17 }
18}