aws_sdk_datazone/operation/delete_project/
_delete_project_input.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2#[allow(missing_docs)] // documentation missing in model
3#[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct DeleteProjectInput {
6    /// <p>The ID of the Amazon DataZone domain in which the project is deleted.</p>
7    pub domain_identifier: ::std::option::Option<::std::string::String>,
8    /// <p>The identifier of the project that is to be deleted.</p>
9    pub identifier: ::std::option::Option<::std::string::String>,
10    /// <p>Specifies the optional flag to delete all child entities within the project.</p>
11    pub skip_deletion_check: ::std::option::Option<bool>,
12}
13impl DeleteProjectInput {
14    /// <p>The ID of the Amazon DataZone domain in which the project is deleted.</p>
15    pub fn domain_identifier(&self) -> ::std::option::Option<&str> {
16        self.domain_identifier.as_deref()
17    }
18    /// <p>The identifier of the project that is to be deleted.</p>
19    pub fn identifier(&self) -> ::std::option::Option<&str> {
20        self.identifier.as_deref()
21    }
22    /// <p>Specifies the optional flag to delete all child entities within the project.</p>
23    pub fn skip_deletion_check(&self) -> ::std::option::Option<bool> {
24        self.skip_deletion_check
25    }
26}
27impl DeleteProjectInput {
28    /// Creates a new builder-style object to manufacture [`DeleteProjectInput`](crate::operation::delete_project::DeleteProjectInput).
29    pub fn builder() -> crate::operation::delete_project::builders::DeleteProjectInputBuilder {
30        crate::operation::delete_project::builders::DeleteProjectInputBuilder::default()
31    }
32}
33
34/// A builder for [`DeleteProjectInput`](crate::operation::delete_project::DeleteProjectInput).
35#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
36#[non_exhaustive]
37pub struct DeleteProjectInputBuilder {
38    pub(crate) domain_identifier: ::std::option::Option<::std::string::String>,
39    pub(crate) identifier: ::std::option::Option<::std::string::String>,
40    pub(crate) skip_deletion_check: ::std::option::Option<bool>,
41}
42impl DeleteProjectInputBuilder {
43    /// <p>The ID of the Amazon DataZone domain in which the project is deleted.</p>
44    /// This field is required.
45    pub fn domain_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
46        self.domain_identifier = ::std::option::Option::Some(input.into());
47        self
48    }
49    /// <p>The ID of the Amazon DataZone domain in which the project is deleted.</p>
50    pub fn set_domain_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
51        self.domain_identifier = input;
52        self
53    }
54    /// <p>The ID of the Amazon DataZone domain in which the project is deleted.</p>
55    pub fn get_domain_identifier(&self) -> &::std::option::Option<::std::string::String> {
56        &self.domain_identifier
57    }
58    /// <p>The identifier of the project that is to be deleted.</p>
59    /// This field is required.
60    pub fn identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
61        self.identifier = ::std::option::Option::Some(input.into());
62        self
63    }
64    /// <p>The identifier of the project that is to be deleted.</p>
65    pub fn set_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
66        self.identifier = input;
67        self
68    }
69    /// <p>The identifier of the project that is to be deleted.</p>
70    pub fn get_identifier(&self) -> &::std::option::Option<::std::string::String> {
71        &self.identifier
72    }
73    /// <p>Specifies the optional flag to delete all child entities within the project.</p>
74    pub fn skip_deletion_check(mut self, input: bool) -> Self {
75        self.skip_deletion_check = ::std::option::Option::Some(input);
76        self
77    }
78    /// <p>Specifies the optional flag to delete all child entities within the project.</p>
79    pub fn set_skip_deletion_check(mut self, input: ::std::option::Option<bool>) -> Self {
80        self.skip_deletion_check = input;
81        self
82    }
83    /// <p>Specifies the optional flag to delete all child entities within the project.</p>
84    pub fn get_skip_deletion_check(&self) -> &::std::option::Option<bool> {
85        &self.skip_deletion_check
86    }
87    /// Consumes the builder and constructs a [`DeleteProjectInput`](crate::operation::delete_project::DeleteProjectInput).
88    pub fn build(
89        self,
90    ) -> ::std::result::Result<crate::operation::delete_project::DeleteProjectInput, ::aws_smithy_types::error::operation::BuildError> {
91        ::std::result::Result::Ok(crate::operation::delete_project::DeleteProjectInput {
92            domain_identifier: self.domain_identifier,
93            identifier: self.identifier,
94            skip_deletion_check: self.skip_deletion_check,
95        })
96    }
97}