aws_sdk_datazone/operation/update_glossary/
_update_glossary_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)]
5pub struct UpdateGlossaryInput {
6    /// <p>The identifier of the Amazon DataZone domain in which a business glossary is to be updated.</p>
7    pub domain_identifier: ::std::option::Option<::std::string::String>,
8    /// <p>The identifier of the business glossary to be updated.</p>
9    pub identifier: ::std::option::Option<::std::string::String>,
10    /// <p>The name to be updated as part of the <code>UpdateGlossary</code> action.</p>
11    pub name: ::std::option::Option<::std::string::String>,
12    /// <p>The description to be updated as part of the <code>UpdateGlossary</code> action.</p>
13    pub description: ::std::option::Option<::std::string::String>,
14    /// <p>The status to be updated as part of the <code>UpdateGlossary</code> action.</p>
15    pub status: ::std::option::Option<crate::types::GlossaryStatus>,
16    /// <p>A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.</p>
17    pub client_token: ::std::option::Option<::std::string::String>,
18}
19impl UpdateGlossaryInput {
20    /// <p>The identifier of the Amazon DataZone domain in which a business glossary is to be updated.</p>
21    pub fn domain_identifier(&self) -> ::std::option::Option<&str> {
22        self.domain_identifier.as_deref()
23    }
24    /// <p>The identifier of the business glossary to be updated.</p>
25    pub fn identifier(&self) -> ::std::option::Option<&str> {
26        self.identifier.as_deref()
27    }
28    /// <p>The name to be updated as part of the <code>UpdateGlossary</code> action.</p>
29    pub fn name(&self) -> ::std::option::Option<&str> {
30        self.name.as_deref()
31    }
32    /// <p>The description to be updated as part of the <code>UpdateGlossary</code> action.</p>
33    pub fn description(&self) -> ::std::option::Option<&str> {
34        self.description.as_deref()
35    }
36    /// <p>The status to be updated as part of the <code>UpdateGlossary</code> action.</p>
37    pub fn status(&self) -> ::std::option::Option<&crate::types::GlossaryStatus> {
38        self.status.as_ref()
39    }
40    /// <p>A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.</p>
41    pub fn client_token(&self) -> ::std::option::Option<&str> {
42        self.client_token.as_deref()
43    }
44}
45impl ::std::fmt::Debug for UpdateGlossaryInput {
46    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
47        let mut formatter = f.debug_struct("UpdateGlossaryInput");
48        formatter.field("domain_identifier", &self.domain_identifier);
49        formatter.field("identifier", &self.identifier);
50        formatter.field("name", &"*** Sensitive Data Redacted ***");
51        formatter.field("description", &"*** Sensitive Data Redacted ***");
52        formatter.field("status", &self.status);
53        formatter.field("client_token", &self.client_token);
54        formatter.finish()
55    }
56}
57impl UpdateGlossaryInput {
58    /// Creates a new builder-style object to manufacture [`UpdateGlossaryInput`](crate::operation::update_glossary::UpdateGlossaryInput).
59    pub fn builder() -> crate::operation::update_glossary::builders::UpdateGlossaryInputBuilder {
60        crate::operation::update_glossary::builders::UpdateGlossaryInputBuilder::default()
61    }
62}
63
64/// A builder for [`UpdateGlossaryInput`](crate::operation::update_glossary::UpdateGlossaryInput).
65#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
66#[non_exhaustive]
67pub struct UpdateGlossaryInputBuilder {
68    pub(crate) domain_identifier: ::std::option::Option<::std::string::String>,
69    pub(crate) identifier: ::std::option::Option<::std::string::String>,
70    pub(crate) name: ::std::option::Option<::std::string::String>,
71    pub(crate) description: ::std::option::Option<::std::string::String>,
72    pub(crate) status: ::std::option::Option<crate::types::GlossaryStatus>,
73    pub(crate) client_token: ::std::option::Option<::std::string::String>,
74}
75impl UpdateGlossaryInputBuilder {
76    /// <p>The identifier of the Amazon DataZone domain in which a business glossary is to be updated.</p>
77    /// This field is required.
78    pub fn domain_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
79        self.domain_identifier = ::std::option::Option::Some(input.into());
80        self
81    }
82    /// <p>The identifier of the Amazon DataZone domain in which a business glossary is to be updated.</p>
83    pub fn set_domain_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
84        self.domain_identifier = input;
85        self
86    }
87    /// <p>The identifier of the Amazon DataZone domain in which a business glossary is to be updated.</p>
88    pub fn get_domain_identifier(&self) -> &::std::option::Option<::std::string::String> {
89        &self.domain_identifier
90    }
91    /// <p>The identifier of the business glossary to be updated.</p>
92    /// This field is required.
93    pub fn identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
94        self.identifier = ::std::option::Option::Some(input.into());
95        self
96    }
97    /// <p>The identifier of the business glossary to be updated.</p>
98    pub fn set_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
99        self.identifier = input;
100        self
101    }
102    /// <p>The identifier of the business glossary to be updated.</p>
103    pub fn get_identifier(&self) -> &::std::option::Option<::std::string::String> {
104        &self.identifier
105    }
106    /// <p>The name to be updated as part of the <code>UpdateGlossary</code> action.</p>
107    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
108        self.name = ::std::option::Option::Some(input.into());
109        self
110    }
111    /// <p>The name to be updated as part of the <code>UpdateGlossary</code> action.</p>
112    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
113        self.name = input;
114        self
115    }
116    /// <p>The name to be updated as part of the <code>UpdateGlossary</code> action.</p>
117    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
118        &self.name
119    }
120    /// <p>The description to be updated as part of the <code>UpdateGlossary</code> action.</p>
121    pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
122        self.description = ::std::option::Option::Some(input.into());
123        self
124    }
125    /// <p>The description to be updated as part of the <code>UpdateGlossary</code> action.</p>
126    pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
127        self.description = input;
128        self
129    }
130    /// <p>The description to be updated as part of the <code>UpdateGlossary</code> action.</p>
131    pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
132        &self.description
133    }
134    /// <p>The status to be updated as part of the <code>UpdateGlossary</code> action.</p>
135    pub fn status(mut self, input: crate::types::GlossaryStatus) -> Self {
136        self.status = ::std::option::Option::Some(input);
137        self
138    }
139    /// <p>The status to be updated as part of the <code>UpdateGlossary</code> action.</p>
140    pub fn set_status(mut self, input: ::std::option::Option<crate::types::GlossaryStatus>) -> Self {
141        self.status = input;
142        self
143    }
144    /// <p>The status to be updated as part of the <code>UpdateGlossary</code> action.</p>
145    pub fn get_status(&self) -> &::std::option::Option<crate::types::GlossaryStatus> {
146        &self.status
147    }
148    /// <p>A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.</p>
149    pub fn client_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
150        self.client_token = ::std::option::Option::Some(input.into());
151        self
152    }
153    /// <p>A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.</p>
154    pub fn set_client_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
155        self.client_token = input;
156        self
157    }
158    /// <p>A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.</p>
159    pub fn get_client_token(&self) -> &::std::option::Option<::std::string::String> {
160        &self.client_token
161    }
162    /// Consumes the builder and constructs a [`UpdateGlossaryInput`](crate::operation::update_glossary::UpdateGlossaryInput).
163    pub fn build(
164        self,
165    ) -> ::std::result::Result<crate::operation::update_glossary::UpdateGlossaryInput, ::aws_smithy_types::error::operation::BuildError> {
166        ::std::result::Result::Ok(crate::operation::update_glossary::UpdateGlossaryInput {
167            domain_identifier: self.domain_identifier,
168            identifier: self.identifier,
169            name: self.name,
170            description: self.description,
171            status: self.status,
172            client_token: self.client_token,
173        })
174    }
175}
176impl ::std::fmt::Debug for UpdateGlossaryInputBuilder {
177    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
178        let mut formatter = f.debug_struct("UpdateGlossaryInputBuilder");
179        formatter.field("domain_identifier", &self.domain_identifier);
180        formatter.field("identifier", &self.identifier);
181        formatter.field("name", &"*** Sensitive Data Redacted ***");
182        formatter.field("description", &"*** Sensitive Data Redacted ***");
183        formatter.field("status", &self.status);
184        formatter.field("client_token", &self.client_token);
185        formatter.finish()
186    }
187}