aws-sdk-qconnect 1.109.0

AWS SDK for Amazon Q Connect
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 GetAiAgentOutput {
    /// <p>The data of the AI Agent.</p>
    pub ai_agent: ::std::option::Option<crate::types::AiAgentData>,
    /// <p>The version number of the AI Agent version (returned if an AI Agent version was specified via use of a qualifier for the <code>aiAgentId</code> on the request).</p>
    pub version_number: ::std::option::Option<i64>,
    _request_id: Option<String>,
}
impl GetAiAgentOutput {
    /// <p>The data of the AI Agent.</p>
    pub fn ai_agent(&self) -> ::std::option::Option<&crate::types::AiAgentData> {
        self.ai_agent.as_ref()
    }
    /// <p>The version number of the AI Agent version (returned if an AI Agent version was specified via use of a qualifier for the <code>aiAgentId</code> on the request).</p>
    pub fn version_number(&self) -> ::std::option::Option<i64> {
        self.version_number
    }
}
impl ::aws_types::request_id::RequestId for GetAiAgentOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl GetAiAgentOutput {
    /// Creates a new builder-style object to manufacture [`GetAiAgentOutput`](crate::operation::get_ai_agent::GetAiAgentOutput).
    pub fn builder() -> crate::operation::get_ai_agent::builders::GetAiAgentOutputBuilder {
        crate::operation::get_ai_agent::builders::GetAiAgentOutputBuilder::default()
    }
}

/// A builder for [`GetAiAgentOutput`](crate::operation::get_ai_agent::GetAiAgentOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetAiAgentOutputBuilder {
    pub(crate) ai_agent: ::std::option::Option<crate::types::AiAgentData>,
    pub(crate) version_number: ::std::option::Option<i64>,
    _request_id: Option<String>,
}
impl GetAiAgentOutputBuilder {
    /// <p>The data of the AI Agent.</p>
    pub fn ai_agent(mut self, input: crate::types::AiAgentData) -> Self {
        self.ai_agent = ::std::option::Option::Some(input);
        self
    }
    /// <p>The data of the AI Agent.</p>
    pub fn set_ai_agent(mut self, input: ::std::option::Option<crate::types::AiAgentData>) -> Self {
        self.ai_agent = input;
        self
    }
    /// <p>The data of the AI Agent.</p>
    pub fn get_ai_agent(&self) -> &::std::option::Option<crate::types::AiAgentData> {
        &self.ai_agent
    }
    /// <p>The version number of the AI Agent version (returned if an AI Agent version was specified via use of a qualifier for the <code>aiAgentId</code> on the request).</p>
    pub fn version_number(mut self, input: i64) -> Self {
        self.version_number = ::std::option::Option::Some(input);
        self
    }
    /// <p>The version number of the AI Agent version (returned if an AI Agent version was specified via use of a qualifier for the <code>aiAgentId</code> on the request).</p>
    pub fn set_version_number(mut self, input: ::std::option::Option<i64>) -> Self {
        self.version_number = input;
        self
    }
    /// <p>The version number of the AI Agent version (returned if an AI Agent version was specified via use of a qualifier for the <code>aiAgentId</code> on the request).</p>
    pub fn get_version_number(&self) -> &::std::option::Option<i64> {
        &self.version_number
    }
    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 [`GetAiAgentOutput`](crate::operation::get_ai_agent::GetAiAgentOutput).
    pub fn build(self) -> crate::operation::get_ai_agent::GetAiAgentOutput {
        crate::operation::get_ai_agent::GetAiAgentOutput {
            ai_agent: self.ai_agent,
            version_number: self.version_number,
            _request_id: self._request_id,
        }
    }
}