aws_sdk_voiceid/client/create_watchlist.rs
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`CreateWatchlist`](crate::operation::create_watchlist::builders::CreateWatchlistFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`domain_id(impl Into<String>)`](crate::operation::create_watchlist::builders::CreateWatchlistFluentBuilder::domain_id) / [`set_domain_id(Option<String>)`](crate::operation::create_watchlist::builders::CreateWatchlistFluentBuilder::set_domain_id):<br>required: **true**<br><p>The identifier of the domain that contains the watchlist.</p><br>
/// - [`name(impl Into<String>)`](crate::operation::create_watchlist::builders::CreateWatchlistFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_watchlist::builders::CreateWatchlistFluentBuilder::set_name):<br>required: **true**<br><p>The name of the watchlist.</p><br>
/// - [`description(impl Into<String>)`](crate::operation::create_watchlist::builders::CreateWatchlistFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_watchlist::builders::CreateWatchlistFluentBuilder::set_description):<br>required: **false**<br><p>A brief description of this watchlist.</p><br>
/// - [`client_token(impl Into<String>)`](crate::operation::create_watchlist::builders::CreateWatchlistFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_watchlist::builders::CreateWatchlistFluentBuilder::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 [`CreateWatchlistOutput`](crate::operation::create_watchlist::CreateWatchlistOutput) with field(s):
/// - [`watchlist(Option<Watchlist>)`](crate::operation::create_watchlist::CreateWatchlistOutput::watchlist): <p>Information about the newly created watchlist.</p>
/// - On failure, responds with [`SdkError<CreateWatchlistError>`](crate::operation::create_watchlist::CreateWatchlistError)
pub fn create_watchlist(&self) -> crate::operation::create_watchlist::builders::CreateWatchlistFluentBuilder {
crate::operation::create_watchlist::builders::CreateWatchlistFluentBuilder::new(self.handle.clone())
}
}