aws-sdk-devopsagent 1.3.0

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

/// Input for retrieving a specific AgentSpace by ID.
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetAgentSpaceInput {
    /// The unique identifier of the AgentSpace
    pub agent_space_id: ::std::option::Option<::std::string::String>,
}
impl GetAgentSpaceInput {
    /// The unique identifier of the AgentSpace
    pub fn agent_space_id(&self) -> ::std::option::Option<&str> {
        self.agent_space_id.as_deref()
    }
}
impl GetAgentSpaceInput {
    /// Creates a new builder-style object to manufacture [`GetAgentSpaceInput`](crate::operation::get_agent_space::GetAgentSpaceInput).
    pub fn builder() -> crate::operation::get_agent_space::builders::GetAgentSpaceInputBuilder {
        crate::operation::get_agent_space::builders::GetAgentSpaceInputBuilder::default()
    }
}

/// A builder for [`GetAgentSpaceInput`](crate::operation::get_agent_space::GetAgentSpaceInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetAgentSpaceInputBuilder {
    pub(crate) agent_space_id: ::std::option::Option<::std::string::String>,
}
impl GetAgentSpaceInputBuilder {
    /// The unique identifier of the AgentSpace
    /// 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
    }
    /// The unique identifier of the AgentSpace
    pub fn set_agent_space_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.agent_space_id = input;
        self
    }
    /// The unique identifier of the AgentSpace
    pub fn get_agent_space_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.agent_space_id
    }
    /// Consumes the builder and constructs a [`GetAgentSpaceInput`](crate::operation::get_agent_space::GetAgentSpaceInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::get_agent_space::GetAgentSpaceInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::get_agent_space::GetAgentSpaceInput {
            agent_space_id: self.agent_space_id,
        })
    }
}