aws-sdk-devopsagent 1.4.0

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

/// Output containing the updated AgentSpace.
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateAgentSpaceOutput {
    /// Represents a complete AgentSpace with all its properties, timestamps, encryption settings, and unique identifier.
    pub agent_space: ::std::option::Option<crate::types::AgentSpace>,
    _request_id: Option<String>,
}
impl UpdateAgentSpaceOutput {
    /// Represents a complete AgentSpace with all its properties, timestamps, encryption settings, and unique identifier.
    pub fn agent_space(&self) -> ::std::option::Option<&crate::types::AgentSpace> {
        self.agent_space.as_ref()
    }
}
impl ::aws_types::request_id::RequestId for UpdateAgentSpaceOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl UpdateAgentSpaceOutput {
    /// Creates a new builder-style object to manufacture [`UpdateAgentSpaceOutput`](crate::operation::update_agent_space::UpdateAgentSpaceOutput).
    pub fn builder() -> crate::operation::update_agent_space::builders::UpdateAgentSpaceOutputBuilder {
        crate::operation::update_agent_space::builders::UpdateAgentSpaceOutputBuilder::default()
    }
}

/// A builder for [`UpdateAgentSpaceOutput`](crate::operation::update_agent_space::UpdateAgentSpaceOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateAgentSpaceOutputBuilder {
    pub(crate) agent_space: ::std::option::Option<crate::types::AgentSpace>,
    _request_id: Option<String>,
}
impl UpdateAgentSpaceOutputBuilder {
    /// Represents a complete AgentSpace with all its properties, timestamps, encryption settings, and unique identifier.
    /// This field is required.
    pub fn agent_space(mut self, input: crate::types::AgentSpace) -> Self {
        self.agent_space = ::std::option::Option::Some(input);
        self
    }
    /// Represents a complete AgentSpace with all its properties, timestamps, encryption settings, and unique identifier.
    pub fn set_agent_space(mut self, input: ::std::option::Option<crate::types::AgentSpace>) -> Self {
        self.agent_space = input;
        self
    }
    /// Represents a complete AgentSpace with all its properties, timestamps, encryption settings, and unique identifier.
    pub fn get_agent_space(&self) -> &::std::option::Option<crate::types::AgentSpace> {
        &self.agent_space
    }
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
        self._request_id = Some(request_id.into());
        self
    }

    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
        self._request_id = request_id;
        self
    }
    /// Consumes the builder and constructs a [`UpdateAgentSpaceOutput`](crate::operation::update_agent_space::UpdateAgentSpaceOutput).
    pub fn build(self) -> crate::operation::update_agent_space::UpdateAgentSpaceOutput {
        crate::operation::update_agent_space::UpdateAgentSpaceOutput {
            agent_space: self.agent_space,
            _request_id: self._request_id,
        }
    }
}