#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetProjectInput {
#[doc(hidden)]
pub space_name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub name: std::option::Option<std::string::String>,
}
impl GetProjectInput {
pub fn space_name(&self) -> std::option::Option<&str> {
self.space_name.as_deref()
}
pub fn name(&self) -> std::option::Option<&str> {
self.name.as_deref()
}
}
impl GetProjectInput {
pub fn builder() -> crate::operation::get_project::builders::GetProjectInputBuilder {
crate::operation::get_project::builders::GetProjectInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct GetProjectInputBuilder {
pub(crate) space_name: std::option::Option<std::string::String>,
pub(crate) name: std::option::Option<std::string::String>,
}
impl GetProjectInputBuilder {
pub fn space_name(mut self, input: impl Into<std::string::String>) -> Self {
self.space_name = Some(input.into());
self
}
pub fn set_space_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.space_name = input;
self
}
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.name = Some(input.into());
self
}
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.name = input;
self
}
pub fn build(
self,
) -> Result<
crate::operation::get_project::GetProjectInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(crate::operation::get_project::GetProjectInput {
space_name: self.space_name,
name: self.name,
})
}
}