aws-sdk-bedrockagent 1.82.0

AWS SDK for Agents for Amazon Bedrock
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 GetAgentAliasInput {
    /// <p>The unique identifier of the agent to which the alias to get information belongs.</p>
    pub agent_id: ::std::option::Option<::std::string::String>,
    /// <p>The unique identifier of the alias for which to get information.</p>
    pub agent_alias_id: ::std::option::Option<::std::string::String>,
}
impl GetAgentAliasInput {
    /// <p>The unique identifier of the agent to which the alias to get information belongs.</p>
    pub fn agent_id(&self) -> ::std::option::Option<&str> {
        self.agent_id.as_deref()
    }
    /// <p>The unique identifier of the alias for which to get information.</p>
    pub fn agent_alias_id(&self) -> ::std::option::Option<&str> {
        self.agent_alias_id.as_deref()
    }
}
impl GetAgentAliasInput {
    /// Creates a new builder-style object to manufacture [`GetAgentAliasInput`](crate::operation::get_agent_alias::GetAgentAliasInput).
    pub fn builder() -> crate::operation::get_agent_alias::builders::GetAgentAliasInputBuilder {
        crate::operation::get_agent_alias::builders::GetAgentAliasInputBuilder::default()
    }
}

/// A builder for [`GetAgentAliasInput`](crate::operation::get_agent_alias::GetAgentAliasInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetAgentAliasInputBuilder {
    pub(crate) agent_id: ::std::option::Option<::std::string::String>,
    pub(crate) agent_alias_id: ::std::option::Option<::std::string::String>,
}
impl GetAgentAliasInputBuilder {
    /// <p>The unique identifier of the agent to which the alias to get information belongs.</p>
    /// This field is required.
    pub fn agent_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.agent_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The unique identifier of the agent to which the alias to get information belongs.</p>
    pub fn set_agent_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.agent_id = input;
        self
    }
    /// <p>The unique identifier of the agent to which the alias to get information belongs.</p>
    pub fn get_agent_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.agent_id
    }
    /// <p>The unique identifier of the alias for which to get information.</p>
    /// This field is required.
    pub fn agent_alias_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.agent_alias_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The unique identifier of the alias for which to get information.</p>
    pub fn set_agent_alias_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.agent_alias_id = input;
        self
    }
    /// <p>The unique identifier of the alias for which to get information.</p>
    pub fn get_agent_alias_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.agent_alias_id
    }
    /// Consumes the builder and constructs a [`GetAgentAliasInput`](crate::operation::get_agent_alias::GetAgentAliasInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::get_agent_alias::GetAgentAliasInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::get_agent_alias::GetAgentAliasInput {
            agent_id: self.agent_id,
            agent_alias_id: self.agent_alias_id,
        })
    }
}