aws_sdk_datazone/operation/delete_project/
_delete_project_input.rs#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteProjectInput {
pub domain_identifier: ::std::option::Option<::std::string::String>,
pub identifier: ::std::option::Option<::std::string::String>,
pub skip_deletion_check: ::std::option::Option<bool>,
}
impl DeleteProjectInput {
pub fn domain_identifier(&self) -> ::std::option::Option<&str> {
self.domain_identifier.as_deref()
}
pub fn identifier(&self) -> ::std::option::Option<&str> {
self.identifier.as_deref()
}
pub fn skip_deletion_check(&self) -> ::std::option::Option<bool> {
self.skip_deletion_check
}
}
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) domain_identifier: ::std::option::Option<::std::string::String>,
pub(crate) identifier: ::std::option::Option<::std::string::String>,
pub(crate) skip_deletion_check: ::std::option::Option<bool>,
}
impl DeleteProjectInputBuilder {
pub fn domain_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.domain_identifier = ::std::option::Option::Some(input.into());
self
}
pub fn set_domain_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.domain_identifier = input;
self
}
pub fn get_domain_identifier(&self) -> &::std::option::Option<::std::string::String> {
&self.domain_identifier
}
pub fn identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.identifier = ::std::option::Option::Some(input.into());
self
}
pub fn set_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.identifier = input;
self
}
pub fn get_identifier(&self) -> &::std::option::Option<::std::string::String> {
&self.identifier
}
pub fn skip_deletion_check(mut self, input: bool) -> Self {
self.skip_deletion_check = ::std::option::Option::Some(input);
self
}
pub fn set_skip_deletion_check(mut self, input: ::std::option::Option<bool>) -> Self {
self.skip_deletion_check = input;
self
}
pub fn get_skip_deletion_check(&self) -> &::std::option::Option<bool> {
&self.skip_deletion_check
}
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 {
domain_identifier: self.domain_identifier,
identifier: self.identifier,
skip_deletion_check: self.skip_deletion_check,
})
}
}