aws-sdk-lexmodelsv2 1.110.0

AWS SDK for Amazon Lex Model Building V2
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 StopBotAnalyzerInput {
    /// <p>The unique identifier of the bot.</p>
    pub bot_id: ::std::option::Option<::std::string::String>,
    /// <p>The unique identifier of the analysis request to stop.</p>
    pub bot_analyzer_request_id: ::std::option::Option<::std::string::String>,
}
impl StopBotAnalyzerInput {
    /// <p>The unique identifier of the bot.</p>
    pub fn bot_id(&self) -> ::std::option::Option<&str> {
        self.bot_id.as_deref()
    }
    /// <p>The unique identifier of the analysis request to stop.</p>
    pub fn bot_analyzer_request_id(&self) -> ::std::option::Option<&str> {
        self.bot_analyzer_request_id.as_deref()
    }
}
impl StopBotAnalyzerInput {
    /// Creates a new builder-style object to manufacture [`StopBotAnalyzerInput`](crate::operation::stop_bot_analyzer::StopBotAnalyzerInput).
    pub fn builder() -> crate::operation::stop_bot_analyzer::builders::StopBotAnalyzerInputBuilder {
        crate::operation::stop_bot_analyzer::builders::StopBotAnalyzerInputBuilder::default()
    }
}

/// A builder for [`StopBotAnalyzerInput`](crate::operation::stop_bot_analyzer::StopBotAnalyzerInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct StopBotAnalyzerInputBuilder {
    pub(crate) bot_id: ::std::option::Option<::std::string::String>,
    pub(crate) bot_analyzer_request_id: ::std::option::Option<::std::string::String>,
}
impl StopBotAnalyzerInputBuilder {
    /// <p>The unique identifier of the bot.</p>
    /// This field is required.
    pub fn bot_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.bot_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The unique identifier of the bot.</p>
    pub fn set_bot_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.bot_id = input;
        self
    }
    /// <p>The unique identifier of the bot.</p>
    pub fn get_bot_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.bot_id
    }
    /// <p>The unique identifier of the analysis request to stop.</p>
    /// This field is required.
    pub fn bot_analyzer_request_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.bot_analyzer_request_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The unique identifier of the analysis request to stop.</p>
    pub fn set_bot_analyzer_request_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.bot_analyzer_request_id = input;
        self
    }
    /// <p>The unique identifier of the analysis request to stop.</p>
    pub fn get_bot_analyzer_request_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.bot_analyzer_request_id
    }
    /// Consumes the builder and constructs a [`StopBotAnalyzerInput`](crate::operation::stop_bot_analyzer::StopBotAnalyzerInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::stop_bot_analyzer::StopBotAnalyzerInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::stop_bot_analyzer::StopBotAnalyzerInput {
            bot_id: self.bot_id,
            bot_analyzer_request_id: self.bot_analyzer_request_id,
        })
    }
}