#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteProjectInput {
pub environment_arn: ::std::option::Option<::std::string::String>,
pub project: ::std::option::Option<::std::string::String>,
}
impl DeleteProjectInput {
pub fn environment_arn(&self) -> ::std::option::Option<&str> {
self.environment_arn.as_deref()
}
pub fn project(&self) -> ::std::option::Option<&str> {
self.project.as_deref()
}
}
impl DeleteProjectInput {
pub fn builder() -> crate::operation::delete_project::builders::DeleteProjectInputBuilder {
crate::operation::delete_project::builders::DeleteProjectInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteProjectInputBuilder {
pub(crate) environment_arn: ::std::option::Option<::std::string::String>,
pub(crate) project: ::std::option::Option<::std::string::String>,
}
impl DeleteProjectInputBuilder {
pub fn environment_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.environment_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_environment_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.environment_arn = input;
self
}
pub fn get_environment_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.environment_arn
}
pub fn project(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.project = ::std::option::Option::Some(input.into());
self
}
pub fn set_project(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.project = input;
self
}
pub fn get_project(&self) -> &::std::option::Option<::std::string::String> {
&self.project
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::delete_project::DeleteProjectInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::delete_project::DeleteProjectInput {
environment_arn: self.environment_arn,
project: self.project,
})
}
}