aws_sdk_datazone/operation/delete_domain/
_delete_domain_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 DeleteDomainInput {
6    /// <p>The identifier of the Amazon Web Services domain that is to be deleted.</p>
7    pub identifier: ::std::option::Option<::std::string::String>,
8    /// <p>A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.</p>
9    pub client_token: ::std::option::Option<::std::string::String>,
10    /// <p>Specifies the optional flag to delete all child entities within the domain.</p>
11    pub skip_deletion_check: ::std::option::Option<bool>,
12}
13impl DeleteDomainInput {
14    /// <p>The identifier of the Amazon Web Services domain that is to be deleted.</p>
15    pub fn identifier(&self) -> ::std::option::Option<&str> {
16        self.identifier.as_deref()
17    }
18    /// <p>A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.</p>
19    pub fn client_token(&self) -> ::std::option::Option<&str> {
20        self.client_token.as_deref()
21    }
22    /// <p>Specifies the optional flag to delete all child entities within the domain.</p>
23    pub fn skip_deletion_check(&self) -> ::std::option::Option<bool> {
24        self.skip_deletion_check
25    }
26}
27impl DeleteDomainInput {
28    /// Creates a new builder-style object to manufacture [`DeleteDomainInput`](crate::operation::delete_domain::DeleteDomainInput).
29    pub fn builder() -> crate::operation::delete_domain::builders::DeleteDomainInputBuilder {
30        crate::operation::delete_domain::builders::DeleteDomainInputBuilder::default()
31    }
32}
33
34/// A builder for [`DeleteDomainInput`](crate::operation::delete_domain::DeleteDomainInput).
35#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
36#[non_exhaustive]
37pub struct DeleteDomainInputBuilder {
38    pub(crate) identifier: ::std::option::Option<::std::string::String>,
39    pub(crate) client_token: ::std::option::Option<::std::string::String>,
40    pub(crate) skip_deletion_check: ::std::option::Option<bool>,
41}
42impl DeleteDomainInputBuilder {
43    /// <p>The identifier of the Amazon Web Services domain that is to be deleted.</p>
44    /// This field is required.
45    pub fn identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
46        self.identifier = ::std::option::Option::Some(input.into());
47        self
48    }
49    /// <p>The identifier of the Amazon Web Services domain that is to be deleted.</p>
50    pub fn set_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
51        self.identifier = input;
52        self
53    }
54    /// <p>The identifier of the Amazon Web Services domain that is to be deleted.</p>
55    pub fn get_identifier(&self) -> &::std::option::Option<::std::string::String> {
56        &self.identifier
57    }
58    /// <p>A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.</p>
59    pub fn client_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
60        self.client_token = ::std::option::Option::Some(input.into());
61        self
62    }
63    /// <p>A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.</p>
64    pub fn set_client_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
65        self.client_token = input;
66        self
67    }
68    /// <p>A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.</p>
69    pub fn get_client_token(&self) -> &::std::option::Option<::std::string::String> {
70        &self.client_token
71    }
72    /// <p>Specifies the optional flag to delete all child entities within the domain.</p>
73    pub fn skip_deletion_check(mut self, input: bool) -> Self {
74        self.skip_deletion_check = ::std::option::Option::Some(input);
75        self
76    }
77    /// <p>Specifies the optional flag to delete all child entities within the domain.</p>
78    pub fn set_skip_deletion_check(mut self, input: ::std::option::Option<bool>) -> Self {
79        self.skip_deletion_check = input;
80        self
81    }
82    /// <p>Specifies the optional flag to delete all child entities within the domain.</p>
83    pub fn get_skip_deletion_check(&self) -> &::std::option::Option<bool> {
84        &self.skip_deletion_check
85    }
86    /// Consumes the builder and constructs a [`DeleteDomainInput`](crate::operation::delete_domain::DeleteDomainInput).
87    pub fn build(
88        self,
89    ) -> ::std::result::Result<crate::operation::delete_domain::DeleteDomainInput, ::aws_smithy_types::error::operation::BuildError> {
90        ::std::result::Result::Ok(crate::operation::delete_domain::DeleteDomainInput {
91            identifier: self.identifier,
92            client_token: self.client_token,
93            skip_deletion_check: self.skip_deletion_check,
94        })
95    }
96}