aws-sdk-bedrockagent 1.53.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 PrepareAgentInput {
    /// <p>The unique identifier of the agent for which to create a <code>DRAFT</code> version.</p>
    pub agent_id: ::std::option::Option<::std::string::String>,
}
impl PrepareAgentInput {
    /// <p>The unique identifier of the agent for which to create a <code>DRAFT</code> version.</p>
    pub fn agent_id(&self) -> ::std::option::Option<&str> {
        self.agent_id.as_deref()
    }
}
impl PrepareAgentInput {
    /// Creates a new builder-style object to manufacture [`PrepareAgentInput`](crate::operation::prepare_agent::PrepareAgentInput).
    pub fn builder() -> crate::operation::prepare_agent::builders::PrepareAgentInputBuilder {
        crate::operation::prepare_agent::builders::PrepareAgentInputBuilder::default()
    }
}

/// A builder for [`PrepareAgentInput`](crate::operation::prepare_agent::PrepareAgentInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct PrepareAgentInputBuilder {
    pub(crate) agent_id: ::std::option::Option<::std::string::String>,
}
impl PrepareAgentInputBuilder {
    /// <p>The unique identifier of the agent for which to create a <code>DRAFT</code> version.</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 for which to create a <code>DRAFT</code> version.</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 for which to create a <code>DRAFT</code> version.</p>
    pub fn get_agent_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.agent_id
    }
    /// Consumes the builder and constructs a [`PrepareAgentInput`](crate::operation::prepare_agent::PrepareAgentInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::prepare_agent::PrepareAgentInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::prepare_agent::PrepareAgentInput { agent_id: self.agent_id })
    }
}