aws-sdk-securityagent 1.1.0

AWS SDK for AWS Security Agent
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// Input for deleting an agent space
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteAgentSpaceInput {
    /// Unique identifier of the agent space to delete
    pub agent_space_id: ::std::option::Option<::std::string::String>,
}
impl DeleteAgentSpaceInput {
    /// Unique identifier of the agent space to delete
    pub fn agent_space_id(&self) -> ::std::option::Option<&str> {
        self.agent_space_id.as_deref()
    }
}
impl DeleteAgentSpaceInput {
    /// Creates a new builder-style object to manufacture [`DeleteAgentSpaceInput`](crate::operation::delete_agent_space::DeleteAgentSpaceInput).
    pub fn builder() -> crate::operation::delete_agent_space::builders::DeleteAgentSpaceInputBuilder {
        crate::operation::delete_agent_space::builders::DeleteAgentSpaceInputBuilder::default()
    }
}

/// A builder for [`DeleteAgentSpaceInput`](crate::operation::delete_agent_space::DeleteAgentSpaceInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteAgentSpaceInputBuilder {
    pub(crate) agent_space_id: ::std::option::Option<::std::string::String>,
}
impl DeleteAgentSpaceInputBuilder {
    /// Unique identifier of the agent space to delete
    /// This field is required.
    pub fn agent_space_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.agent_space_id = ::std::option::Option::Some(input.into());
        self
    }
    /// Unique identifier of the agent space to delete
    pub fn set_agent_space_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.agent_space_id = input;
        self
    }
    /// Unique identifier of the agent space to delete
    pub fn get_agent_space_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.agent_space_id
    }
    /// Consumes the builder and constructs a [`DeleteAgentSpaceInput`](crate::operation::delete_agent_space::DeleteAgentSpaceInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::delete_agent_space::DeleteAgentSpaceInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::delete_agent_space::DeleteAgentSpaceInput {
            agent_space_id: self.agent_space_id,
        })
    }
}