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 StartBotAnalyzerInput {
    /// <p>The unique identifier of the bot to analyze.</p>
    pub bot_id: ::std::option::Option<::std::string::String>,
    /// <p>The scope of analysis to perform. Currently only <code>BotLocale</code> scope is supported.</p>
    /// <p>Valid Values: <code>BotLocale</code></p>
    pub analysis_scope: ::std::option::Option<crate::types::AnalysisScope>,
    /// <p>The locale identifier for the bot locale to analyze. Required when <code>analysisScope</code> is <code>BotLocale</code>.</p>
    pub locale_id: ::std::option::Option<::std::string::String>,
    /// <p>The version of the bot to analyze. Defaults to <code>DRAFT</code> if not specified.</p>
    pub bot_version: ::std::option::Option<::std::string::String>,
}
impl StartBotAnalyzerInput {
    /// <p>The unique identifier of the bot to analyze.</p>
    pub fn bot_id(&self) -> ::std::option::Option<&str> {
        self.bot_id.as_deref()
    }
    /// <p>The scope of analysis to perform. Currently only <code>BotLocale</code> scope is supported.</p>
    /// <p>Valid Values: <code>BotLocale</code></p>
    pub fn analysis_scope(&self) -> ::std::option::Option<&crate::types::AnalysisScope> {
        self.analysis_scope.as_ref()
    }
    /// <p>The locale identifier for the bot locale to analyze. Required when <code>analysisScope</code> is <code>BotLocale</code>.</p>
    pub fn locale_id(&self) -> ::std::option::Option<&str> {
        self.locale_id.as_deref()
    }
    /// <p>The version of the bot to analyze. Defaults to <code>DRAFT</code> if not specified.</p>
    pub fn bot_version(&self) -> ::std::option::Option<&str> {
        self.bot_version.as_deref()
    }
}
impl StartBotAnalyzerInput {
    /// Creates a new builder-style object to manufacture [`StartBotAnalyzerInput`](crate::operation::start_bot_analyzer::StartBotAnalyzerInput).
    pub fn builder() -> crate::operation::start_bot_analyzer::builders::StartBotAnalyzerInputBuilder {
        crate::operation::start_bot_analyzer::builders::StartBotAnalyzerInputBuilder::default()
    }
}

/// A builder for [`StartBotAnalyzerInput`](crate::operation::start_bot_analyzer::StartBotAnalyzerInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct StartBotAnalyzerInputBuilder {
    pub(crate) bot_id: ::std::option::Option<::std::string::String>,
    pub(crate) analysis_scope: ::std::option::Option<crate::types::AnalysisScope>,
    pub(crate) locale_id: ::std::option::Option<::std::string::String>,
    pub(crate) bot_version: ::std::option::Option<::std::string::String>,
}
impl StartBotAnalyzerInputBuilder {
    /// <p>The unique identifier of the bot to analyze.</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 to analyze.</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 to analyze.</p>
    pub fn get_bot_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.bot_id
    }
    /// <p>The scope of analysis to perform. Currently only <code>BotLocale</code> scope is supported.</p>
    /// <p>Valid Values: <code>BotLocale</code></p>
    /// This field is required.
    pub fn analysis_scope(mut self, input: crate::types::AnalysisScope) -> Self {
        self.analysis_scope = ::std::option::Option::Some(input);
        self
    }
    /// <p>The scope of analysis to perform. Currently only <code>BotLocale</code> scope is supported.</p>
    /// <p>Valid Values: <code>BotLocale</code></p>
    pub fn set_analysis_scope(mut self, input: ::std::option::Option<crate::types::AnalysisScope>) -> Self {
        self.analysis_scope = input;
        self
    }
    /// <p>The scope of analysis to perform. Currently only <code>BotLocale</code> scope is supported.</p>
    /// <p>Valid Values: <code>BotLocale</code></p>
    pub fn get_analysis_scope(&self) -> &::std::option::Option<crate::types::AnalysisScope> {
        &self.analysis_scope
    }
    /// <p>The locale identifier for the bot locale to analyze. Required when <code>analysisScope</code> is <code>BotLocale</code>.</p>
    pub fn locale_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.locale_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The locale identifier for the bot locale to analyze. Required when <code>analysisScope</code> is <code>BotLocale</code>.</p>
    pub fn set_locale_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.locale_id = input;
        self
    }
    /// <p>The locale identifier for the bot locale to analyze. Required when <code>analysisScope</code> is <code>BotLocale</code>.</p>
    pub fn get_locale_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.locale_id
    }
    /// <p>The version of the bot to analyze. Defaults to <code>DRAFT</code> if not specified.</p>
    pub fn bot_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.bot_version = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The version of the bot to analyze. Defaults to <code>DRAFT</code> if not specified.</p>
    pub fn set_bot_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.bot_version = input;
        self
    }
    /// <p>The version of the bot to analyze. Defaults to <code>DRAFT</code> if not specified.</p>
    pub fn get_bot_version(&self) -> &::std::option::Option<::std::string::String> {
        &self.bot_version
    }
    /// Consumes the builder and constructs a [`StartBotAnalyzerInput`](crate::operation::start_bot_analyzer::StartBotAnalyzerInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::start_bot_analyzer::StartBotAnalyzerInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::start_bot_analyzer::StartBotAnalyzerInput {
            bot_id: self.bot_id,
            analysis_scope: self.analysis_scope,
            locale_id: self.locale_id,
            bot_version: self.bot_version,
        })
    }
}