#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetSpaceInput {
pub space_id: ::std::option::Option<::std::string::String>,
}
impl GetSpaceInput {
pub fn space_id(&self) -> ::std::option::Option<&str> {
self.space_id.as_deref()
}
}
impl GetSpaceInput {
pub fn builder() -> crate::operation::get_space::builders::GetSpaceInputBuilder {
crate::operation::get_space::builders::GetSpaceInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct GetSpaceInputBuilder {
pub(crate) space_id: ::std::option::Option<::std::string::String>,
}
impl GetSpaceInputBuilder {
pub fn space_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.space_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_space_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.space_id = input;
self
}
pub fn get_space_id(&self) -> &::std::option::Option<::std::string::String> {
&self.space_id
}
pub fn build(self) -> ::std::result::Result<crate::operation::get_space::GetSpaceInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::get_space::GetSpaceInput { space_id: self.space_id })
}
}