aws-sdk-bedrockagent 1.5.0

AWS SDK for Agents for Amazon Bedrock
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// Get Agent Request
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetAgentInput {
    /// Id generated at the server side when an Agent is created
    pub agent_id: ::std::option::Option<::std::string::String>,
}
impl GetAgentInput {
    /// Id generated at the server side when an Agent is created
    pub fn agent_id(&self) -> ::std::option::Option<&str> {
        self.agent_id.as_deref()
    }
}
impl GetAgentInput {
    /// Creates a new builder-style object to manufacture [`GetAgentInput`](crate::operation::get_agent::GetAgentInput).
    pub fn builder() -> crate::operation::get_agent::builders::GetAgentInputBuilder {
        crate::operation::get_agent::builders::GetAgentInputBuilder::default()
    }
}

/// A builder for [`GetAgentInput`](crate::operation::get_agent::GetAgentInput).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct GetAgentInputBuilder {
    pub(crate) agent_id: ::std::option::Option<::std::string::String>,
}
impl GetAgentInputBuilder {
    /// Id generated at the server side when an Agent is created
    /// 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
    }
    /// Id generated at the server side when an Agent is created
    pub fn set_agent_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.agent_id = input;
        self
    }
    /// Id generated at the server side when an Agent is created
    pub fn get_agent_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.agent_id
    }
    /// Consumes the builder and constructs a [`GetAgentInput`](crate::operation::get_agent::GetAgentInput).
    pub fn build(self) -> ::std::result::Result<crate::operation::get_agent::GetAgentInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::get_agent::GetAgentInput { agent_id: self.agent_id })
    }
}