#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct CreateProjectInput {
pub space_name: ::std::option::Option<::std::string::String>,
pub display_name: ::std::option::Option<::std::string::String>,
pub description: ::std::option::Option<::std::string::String>,
}
impl CreateProjectInput {
pub fn space_name(&self) -> ::std::option::Option<&str> {
self.space_name.as_deref()
}
pub fn display_name(&self) -> ::std::option::Option<&str> {
self.display_name.as_deref()
}
pub fn description(&self) -> ::std::option::Option<&str> {
self.description.as_deref()
}
}
impl CreateProjectInput {
pub fn builder() -> crate::operation::create_project::builders::CreateProjectInputBuilder {
crate::operation::create_project::builders::CreateProjectInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct CreateProjectInputBuilder {
pub(crate) space_name: ::std::option::Option<::std::string::String>,
pub(crate) display_name: ::std::option::Option<::std::string::String>,
pub(crate) description: ::std::option::Option<::std::string::String>,
}
impl CreateProjectInputBuilder {
pub fn space_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.space_name = ::std::option::Option::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 get_space_name(&self) -> &::std::option::Option<::std::string::String> {
&self.space_name
}
pub fn display_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.display_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_display_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.display_name = input;
self
}
pub fn get_display_name(&self) -> &::std::option::Option<::std::string::String> {
&self.display_name
}
pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.description = ::std::option::Option::Some(input.into());
self
}
pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.description = input;
self
}
pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
&self.description
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::create_project::CreateProjectInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::create_project::CreateProjectInput {
space_name: self.space_name,
display_name: self.display_name,
description: self.description,
})
}
}