aws-sdk-context 1.0.0

AWS SDK for AWS Context
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 DeleteAgentContextInput {
    /// <p>The agent context to delete, by its ID or ARN.</p>
    pub agent_context_id: ::std::option::Option<::std::string::String>,
}
impl DeleteAgentContextInput {
    /// <p>The agent context to delete, by its ID or ARN.</p>
    pub fn agent_context_id(&self) -> ::std::option::Option<&str> {
        self.agent_context_id.as_deref()
    }
}
impl DeleteAgentContextInput {
    /// Creates a new builder-style object to manufacture [`DeleteAgentContextInput`](crate::operation::delete_agent_context::DeleteAgentContextInput).
    pub fn builder() -> crate::operation::delete_agent_context::builders::DeleteAgentContextInputBuilder {
        crate::operation::delete_agent_context::builders::DeleteAgentContextInputBuilder::default()
    }
}

/// A builder for [`DeleteAgentContextInput`](crate::operation::delete_agent_context::DeleteAgentContextInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteAgentContextInputBuilder {
    pub(crate) agent_context_id: ::std::option::Option<::std::string::String>,
}
impl DeleteAgentContextInputBuilder {
    /// <p>The agent context to delete, by its ID or ARN.</p>
    /// This field is required.
    pub fn agent_context_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.agent_context_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The agent context to delete, by its ID or ARN.</p>
    pub fn set_agent_context_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.agent_context_id = input;
        self
    }
    /// <p>The agent context to delete, by its ID or ARN.</p>
    pub fn get_agent_context_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.agent_context_id
    }
    /// Consumes the builder and constructs a [`DeleteAgentContextInput`](crate::operation::delete_agent_context::DeleteAgentContextInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::delete_agent_context::DeleteAgentContextInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::delete_agent_context::DeleteAgentContextInput {
            agent_context_id: self.agent_context_id,
        })
    }
}