#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateAgentSpaceOutput {
pub agent_space: ::std::option::Option<crate::types::AgentSpace>,
_request_id: Option<String>,
}
impl UpdateAgentSpaceOutput {
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 {
pub fn builder() -> crate::operation::update_agent_space::builders::UpdateAgentSpaceOutputBuilder {
crate::operation::update_agent_space::builders::UpdateAgentSpaceOutputBuilder::default()
}
}
#[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 {
pub fn agent_space(mut self, input: crate::types::AgentSpace) -> Self {
self.agent_space = ::std::option::Option::Some(input);
self
}
pub fn set_agent_space(mut self, input: ::std::option::Option<crate::types::AgentSpace>) -> Self {
self.agent_space = input;
self
}
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
}
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,
}
}
}