aws-sdk-voiceid 1.80.0

AWS SDK for Amazon Voice ID
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct CreateWatchlistOutput {
    /// <p>Information about the newly created watchlist.</p>
    pub watchlist: ::std::option::Option<crate::types::Watchlist>,
    _request_id: Option<String>,
}
impl CreateWatchlistOutput {
    /// <p>Information about the newly created watchlist.</p>
    pub fn watchlist(&self) -> ::std::option::Option<&crate::types::Watchlist> {
        self.watchlist.as_ref()
    }
}
impl ::aws_types::request_id::RequestId for CreateWatchlistOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl CreateWatchlistOutput {
    /// Creates a new builder-style object to manufacture [`CreateWatchlistOutput`](crate::operation::create_watchlist::CreateWatchlistOutput).
    pub fn builder() -> crate::operation::create_watchlist::builders::CreateWatchlistOutputBuilder {
        crate::operation::create_watchlist::builders::CreateWatchlistOutputBuilder::default()
    }
}

/// A builder for [`CreateWatchlistOutput`](crate::operation::create_watchlist::CreateWatchlistOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct CreateWatchlistOutputBuilder {
    pub(crate) watchlist: ::std::option::Option<crate::types::Watchlist>,
    _request_id: Option<String>,
}
impl CreateWatchlistOutputBuilder {
    /// <p>Information about the newly created watchlist.</p>
    pub fn watchlist(mut self, input: crate::types::Watchlist) -> Self {
        self.watchlist = ::std::option::Option::Some(input);
        self
    }
    /// <p>Information about the newly created watchlist.</p>
    pub fn set_watchlist(mut self, input: ::std::option::Option<crate::types::Watchlist>) -> Self {
        self.watchlist = input;
        self
    }
    /// <p>Information about the newly created watchlist.</p>
    pub fn get_watchlist(&self) -> &::std::option::Option<crate::types::Watchlist> {
        &self.watchlist
    }
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
        self._request_id = Some(request_id.into());
        self
    }

    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
        self._request_id = request_id;
        self
    }
    /// Consumes the builder and constructs a [`CreateWatchlistOutput`](crate::operation::create_watchlist::CreateWatchlistOutput).
    pub fn build(self) -> crate::operation::create_watchlist::CreateWatchlistOutput {
        crate::operation::create_watchlist::CreateWatchlistOutput {
            watchlist: self.watchlist,
            _request_id: self._request_id,
        }
    }
}