Skip to main content

aws_sdk_datazone/operation/create_environment/
_create_environment_output.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 CreateEnvironmentOutput {
6    /// <p>The ID of the Amazon DataZone project in which this environment is created.</p>
7    pub project_id: ::std::string::String,
8    /// <p>The ID of this Amazon DataZone environment.</p>
9    pub id: ::std::option::Option<::std::string::String>,
10    /// <p>The identifier of the Amazon DataZone domain in which the environment is created.</p>
11    pub domain_id: ::std::string::String,
12    /// <p>The Amazon DataZone user who created this environment.</p>
13    pub created_by: ::std::string::String,
14    /// <p>The timestamp of when the environment was created.</p>
15    pub created_at: ::std::option::Option<::aws_smithy_types::DateTime>,
16    /// <p>The timestamp of when this environment was updated.</p>
17    pub updated_at: ::std::option::Option<::aws_smithy_types::DateTime>,
18    /// <p>The name of this environment.</p>
19    pub name: ::std::string::String,
20    /// <p>The description of this Amazon DataZone environment.</p>
21    pub description: ::std::option::Option<::std::string::String>,
22    /// <p>The ID of the environment profile with which this Amazon DataZone environment was created.</p>
23    pub environment_profile_id: ::std::string::String,
24    /// <p>The Amazon Web Services account in which the Amazon DataZone environment is created.</p>
25    pub aws_account_id: ::std::option::Option<::std::string::String>,
26    /// <p>The Amazon Web Services region in which the Amazon DataZone environment is created.</p>
27    pub aws_account_region: ::std::option::Option<::std::string::String>,
28    /// <p>The provider of this Amazon DataZone environment.</p>
29    pub provider: ::std::string::String,
30    /// <p>The provisioned resources of this Amazon DataZone environment.</p>
31    pub provisioned_resources: ::std::option::Option<::std::vec::Vec<crate::types::Resource>>,
32    /// <p>The status of this Amazon DataZone environment.</p>
33    pub status: ::std::option::Option<crate::types::EnvironmentStatus>,
34    /// <p>The configurable actions of this Amazon DataZone environment.</p>
35    pub environment_actions: ::std::option::Option<::std::vec::Vec<crate::types::ConfigurableEnvironmentAction>>,
36    /// <p>The glossary terms that can be used in this Amazon DataZone environment.</p>
37    pub glossary_terms: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
38    /// <p>The user parameters of this Amazon DataZone environment.</p>
39    pub user_parameters: ::std::option::Option<::std::vec::Vec<crate::types::CustomParameter>>,
40    /// <p>The details of the last deployment of this Amazon DataZone environment.</p>
41    pub last_deployment: ::std::option::Option<crate::types::Deployment>,
42    /// <p>The provisioning properties of this Amazon DataZone environment.</p>
43    pub provisioning_properties: ::std::option::Option<crate::types::ProvisioningProperties>,
44    /// <p>The deployment properties of this Amazon DataZone environment.</p>
45    pub deployment_properties: ::std::option::Option<crate::types::DeploymentProperties>,
46    /// <p>The ID of the blueprint with which this Amazon DataZone environment was created.</p>
47    pub environment_blueprint_id: ::std::option::Option<::std::string::String>,
48    /// <p>The configuration ID of the environment.</p>
49    pub environment_configuration_id: ::std::option::Option<::std::string::String>,
50    /// <p>The configuration name of the environment.</p>
51    pub environment_configuration_name: ::std::option::Option<::std::string::String>,
52    _request_id: Option<String>,
53}
54impl CreateEnvironmentOutput {
55    /// <p>The ID of the Amazon DataZone project in which this environment is created.</p>
56    pub fn project_id(&self) -> &str {
57        use std::ops::Deref;
58        self.project_id.deref()
59    }
60    /// <p>The ID of this Amazon DataZone environment.</p>
61    pub fn id(&self) -> ::std::option::Option<&str> {
62        self.id.as_deref()
63    }
64    /// <p>The identifier of the Amazon DataZone domain in which the environment is created.</p>
65    pub fn domain_id(&self) -> &str {
66        use std::ops::Deref;
67        self.domain_id.deref()
68    }
69    /// <p>The Amazon DataZone user who created this environment.</p>
70    pub fn created_by(&self) -> &str {
71        use std::ops::Deref;
72        self.created_by.deref()
73    }
74    /// <p>The timestamp of when the environment was created.</p>
75    pub fn created_at(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
76        self.created_at.as_ref()
77    }
78    /// <p>The timestamp of when this environment was updated.</p>
79    pub fn updated_at(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
80        self.updated_at.as_ref()
81    }
82    /// <p>The name of this environment.</p>
83    pub fn name(&self) -> &str {
84        use std::ops::Deref;
85        self.name.deref()
86    }
87    /// <p>The description of this Amazon DataZone environment.</p>
88    pub fn description(&self) -> ::std::option::Option<&str> {
89        self.description.as_deref()
90    }
91    /// <p>The ID of the environment profile with which this Amazon DataZone environment was created.</p>
92    pub fn environment_profile_id(&self) -> &str {
93        use std::ops::Deref;
94        self.environment_profile_id.deref()
95    }
96    /// <p>The Amazon Web Services account in which the Amazon DataZone environment is created.</p>
97    pub fn aws_account_id(&self) -> ::std::option::Option<&str> {
98        self.aws_account_id.as_deref()
99    }
100    /// <p>The Amazon Web Services region in which the Amazon DataZone environment is created.</p>
101    pub fn aws_account_region(&self) -> ::std::option::Option<&str> {
102        self.aws_account_region.as_deref()
103    }
104    /// <p>The provider of this Amazon DataZone environment.</p>
105    pub fn provider(&self) -> &str {
106        use std::ops::Deref;
107        self.provider.deref()
108    }
109    /// <p>The provisioned resources of this Amazon DataZone environment.</p>
110    ///
111    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.provisioned_resources.is_none()`.
112    pub fn provisioned_resources(&self) -> &[crate::types::Resource] {
113        self.provisioned_resources.as_deref().unwrap_or_default()
114    }
115    /// <p>The status of this Amazon DataZone environment.</p>
116    pub fn status(&self) -> ::std::option::Option<&crate::types::EnvironmentStatus> {
117        self.status.as_ref()
118    }
119    /// <p>The configurable actions of this Amazon DataZone environment.</p>
120    ///
121    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.environment_actions.is_none()`.
122    pub fn environment_actions(&self) -> &[crate::types::ConfigurableEnvironmentAction] {
123        self.environment_actions.as_deref().unwrap_or_default()
124    }
125    /// <p>The glossary terms that can be used in this Amazon DataZone environment.</p>
126    ///
127    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.glossary_terms.is_none()`.
128    pub fn glossary_terms(&self) -> &[::std::string::String] {
129        self.glossary_terms.as_deref().unwrap_or_default()
130    }
131    /// <p>The user parameters of this Amazon DataZone environment.</p>
132    ///
133    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.user_parameters.is_none()`.
134    pub fn user_parameters(&self) -> &[crate::types::CustomParameter] {
135        self.user_parameters.as_deref().unwrap_or_default()
136    }
137    /// <p>The details of the last deployment of this Amazon DataZone environment.</p>
138    pub fn last_deployment(&self) -> ::std::option::Option<&crate::types::Deployment> {
139        self.last_deployment.as_ref()
140    }
141    /// <p>The provisioning properties of this Amazon DataZone environment.</p>
142    pub fn provisioning_properties(&self) -> ::std::option::Option<&crate::types::ProvisioningProperties> {
143        self.provisioning_properties.as_ref()
144    }
145    /// <p>The deployment properties of this Amazon DataZone environment.</p>
146    pub fn deployment_properties(&self) -> ::std::option::Option<&crate::types::DeploymentProperties> {
147        self.deployment_properties.as_ref()
148    }
149    /// <p>The ID of the blueprint with which this Amazon DataZone environment was created.</p>
150    pub fn environment_blueprint_id(&self) -> ::std::option::Option<&str> {
151        self.environment_blueprint_id.as_deref()
152    }
153    /// <p>The configuration ID of the environment.</p>
154    pub fn environment_configuration_id(&self) -> ::std::option::Option<&str> {
155        self.environment_configuration_id.as_deref()
156    }
157    /// <p>The configuration name of the environment.</p>
158    pub fn environment_configuration_name(&self) -> ::std::option::Option<&str> {
159        self.environment_configuration_name.as_deref()
160    }
161}
162impl ::std::fmt::Debug for CreateEnvironmentOutput {
163    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
164        let mut formatter = f.debug_struct("CreateEnvironmentOutput");
165        formatter.field("project_id", &self.project_id);
166        formatter.field("id", &self.id);
167        formatter.field("domain_id", &self.domain_id);
168        formatter.field("created_by", &self.created_by);
169        formatter.field("created_at", &self.created_at);
170        formatter.field("updated_at", &self.updated_at);
171        formatter.field("name", &"*** Sensitive Data Redacted ***");
172        formatter.field("description", &"*** Sensitive Data Redacted ***");
173        formatter.field("environment_profile_id", &self.environment_profile_id);
174        formatter.field("aws_account_id", &self.aws_account_id);
175        formatter.field("aws_account_region", &self.aws_account_region);
176        formatter.field("provider", &self.provider);
177        formatter.field("provisioned_resources", &self.provisioned_resources);
178        formatter.field("status", &self.status);
179        formatter.field("environment_actions", &self.environment_actions);
180        formatter.field("glossary_terms", &self.glossary_terms);
181        formatter.field("user_parameters", &self.user_parameters);
182        formatter.field("last_deployment", &self.last_deployment);
183        formatter.field("provisioning_properties", &self.provisioning_properties);
184        formatter.field("deployment_properties", &self.deployment_properties);
185        formatter.field("environment_blueprint_id", &self.environment_blueprint_id);
186        formatter.field("environment_configuration_id", &"*** Sensitive Data Redacted ***");
187        formatter.field("environment_configuration_name", &"*** Sensitive Data Redacted ***");
188        formatter.field("_request_id", &self._request_id);
189        formatter.finish()
190    }
191}
192impl ::aws_types::request_id::RequestId for CreateEnvironmentOutput {
193    fn request_id(&self) -> Option<&str> {
194        self._request_id.as_deref()
195    }
196}
197impl CreateEnvironmentOutput {
198    /// Creates a new builder-style object to manufacture [`CreateEnvironmentOutput`](crate::operation::create_environment::CreateEnvironmentOutput).
199    pub fn builder() -> crate::operation::create_environment::builders::CreateEnvironmentOutputBuilder {
200        crate::operation::create_environment::builders::CreateEnvironmentOutputBuilder::default()
201    }
202}
203
204/// A builder for [`CreateEnvironmentOutput`](crate::operation::create_environment::CreateEnvironmentOutput).
205#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
206#[non_exhaustive]
207pub struct CreateEnvironmentOutputBuilder {
208    pub(crate) project_id: ::std::option::Option<::std::string::String>,
209    pub(crate) id: ::std::option::Option<::std::string::String>,
210    pub(crate) domain_id: ::std::option::Option<::std::string::String>,
211    pub(crate) created_by: ::std::option::Option<::std::string::String>,
212    pub(crate) created_at: ::std::option::Option<::aws_smithy_types::DateTime>,
213    pub(crate) updated_at: ::std::option::Option<::aws_smithy_types::DateTime>,
214    pub(crate) name: ::std::option::Option<::std::string::String>,
215    pub(crate) description: ::std::option::Option<::std::string::String>,
216    pub(crate) environment_profile_id: ::std::option::Option<::std::string::String>,
217    pub(crate) aws_account_id: ::std::option::Option<::std::string::String>,
218    pub(crate) aws_account_region: ::std::option::Option<::std::string::String>,
219    pub(crate) provider: ::std::option::Option<::std::string::String>,
220    pub(crate) provisioned_resources: ::std::option::Option<::std::vec::Vec<crate::types::Resource>>,
221    pub(crate) status: ::std::option::Option<crate::types::EnvironmentStatus>,
222    pub(crate) environment_actions: ::std::option::Option<::std::vec::Vec<crate::types::ConfigurableEnvironmentAction>>,
223    pub(crate) glossary_terms: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
224    pub(crate) user_parameters: ::std::option::Option<::std::vec::Vec<crate::types::CustomParameter>>,
225    pub(crate) last_deployment: ::std::option::Option<crate::types::Deployment>,
226    pub(crate) provisioning_properties: ::std::option::Option<crate::types::ProvisioningProperties>,
227    pub(crate) deployment_properties: ::std::option::Option<crate::types::DeploymentProperties>,
228    pub(crate) environment_blueprint_id: ::std::option::Option<::std::string::String>,
229    pub(crate) environment_configuration_id: ::std::option::Option<::std::string::String>,
230    pub(crate) environment_configuration_name: ::std::option::Option<::std::string::String>,
231    _request_id: Option<String>,
232}
233impl CreateEnvironmentOutputBuilder {
234    /// <p>The ID of the Amazon DataZone project in which this environment is created.</p>
235    /// This field is required.
236    pub fn project_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
237        self.project_id = ::std::option::Option::Some(input.into());
238        self
239    }
240    /// <p>The ID of the Amazon DataZone project in which this environment is created.</p>
241    pub fn set_project_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
242        self.project_id = input;
243        self
244    }
245    /// <p>The ID of the Amazon DataZone project in which this environment is created.</p>
246    pub fn get_project_id(&self) -> &::std::option::Option<::std::string::String> {
247        &self.project_id
248    }
249    /// <p>The ID of this Amazon DataZone environment.</p>
250    pub fn id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
251        self.id = ::std::option::Option::Some(input.into());
252        self
253    }
254    /// <p>The ID of this Amazon DataZone environment.</p>
255    pub fn set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
256        self.id = input;
257        self
258    }
259    /// <p>The ID of this Amazon DataZone environment.</p>
260    pub fn get_id(&self) -> &::std::option::Option<::std::string::String> {
261        &self.id
262    }
263    /// <p>The identifier of the Amazon DataZone domain in which the environment is created.</p>
264    /// This field is required.
265    pub fn domain_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
266        self.domain_id = ::std::option::Option::Some(input.into());
267        self
268    }
269    /// <p>The identifier of the Amazon DataZone domain in which the environment is created.</p>
270    pub fn set_domain_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
271        self.domain_id = input;
272        self
273    }
274    /// <p>The identifier of the Amazon DataZone domain in which the environment is created.</p>
275    pub fn get_domain_id(&self) -> &::std::option::Option<::std::string::String> {
276        &self.domain_id
277    }
278    /// <p>The Amazon DataZone user who created this environment.</p>
279    /// This field is required.
280    pub fn created_by(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
281        self.created_by = ::std::option::Option::Some(input.into());
282        self
283    }
284    /// <p>The Amazon DataZone user who created this environment.</p>
285    pub fn set_created_by(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
286        self.created_by = input;
287        self
288    }
289    /// <p>The Amazon DataZone user who created this environment.</p>
290    pub fn get_created_by(&self) -> &::std::option::Option<::std::string::String> {
291        &self.created_by
292    }
293    /// <p>The timestamp of when the environment was created.</p>
294    pub fn created_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
295        self.created_at = ::std::option::Option::Some(input);
296        self
297    }
298    /// <p>The timestamp of when the environment was created.</p>
299    pub fn set_created_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
300        self.created_at = input;
301        self
302    }
303    /// <p>The timestamp of when the environment was created.</p>
304    pub fn get_created_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
305        &self.created_at
306    }
307    /// <p>The timestamp of when this environment was updated.</p>
308    pub fn updated_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
309        self.updated_at = ::std::option::Option::Some(input);
310        self
311    }
312    /// <p>The timestamp of when this environment was updated.</p>
313    pub fn set_updated_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
314        self.updated_at = input;
315        self
316    }
317    /// <p>The timestamp of when this environment was updated.</p>
318    pub fn get_updated_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
319        &self.updated_at
320    }
321    /// <p>The name of this environment.</p>
322    /// This field is required.
323    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
324        self.name = ::std::option::Option::Some(input.into());
325        self
326    }
327    /// <p>The name of this environment.</p>
328    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
329        self.name = input;
330        self
331    }
332    /// <p>The name of this environment.</p>
333    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
334        &self.name
335    }
336    /// <p>The description of this Amazon DataZone environment.</p>
337    pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
338        self.description = ::std::option::Option::Some(input.into());
339        self
340    }
341    /// <p>The description of this Amazon DataZone environment.</p>
342    pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
343        self.description = input;
344        self
345    }
346    /// <p>The description of this Amazon DataZone environment.</p>
347    pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
348        &self.description
349    }
350    /// <p>The ID of the environment profile with which this Amazon DataZone environment was created.</p>
351    pub fn environment_profile_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
352        self.environment_profile_id = ::std::option::Option::Some(input.into());
353        self
354    }
355    /// <p>The ID of the environment profile with which this Amazon DataZone environment was created.</p>
356    pub fn set_environment_profile_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
357        self.environment_profile_id = input;
358        self
359    }
360    /// <p>The ID of the environment profile with which this Amazon DataZone environment was created.</p>
361    pub fn get_environment_profile_id(&self) -> &::std::option::Option<::std::string::String> {
362        &self.environment_profile_id
363    }
364    /// <p>The Amazon Web Services account in which the Amazon DataZone environment is created.</p>
365    pub fn aws_account_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
366        self.aws_account_id = ::std::option::Option::Some(input.into());
367        self
368    }
369    /// <p>The Amazon Web Services account in which the Amazon DataZone environment is created.</p>
370    pub fn set_aws_account_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
371        self.aws_account_id = input;
372        self
373    }
374    /// <p>The Amazon Web Services account in which the Amazon DataZone environment is created.</p>
375    pub fn get_aws_account_id(&self) -> &::std::option::Option<::std::string::String> {
376        &self.aws_account_id
377    }
378    /// <p>The Amazon Web Services region in which the Amazon DataZone environment is created.</p>
379    pub fn aws_account_region(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
380        self.aws_account_region = ::std::option::Option::Some(input.into());
381        self
382    }
383    /// <p>The Amazon Web Services region in which the Amazon DataZone environment is created.</p>
384    pub fn set_aws_account_region(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
385        self.aws_account_region = input;
386        self
387    }
388    /// <p>The Amazon Web Services region in which the Amazon DataZone environment is created.</p>
389    pub fn get_aws_account_region(&self) -> &::std::option::Option<::std::string::String> {
390        &self.aws_account_region
391    }
392    /// <p>The provider of this Amazon DataZone environment.</p>
393    /// This field is required.
394    pub fn provider(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
395        self.provider = ::std::option::Option::Some(input.into());
396        self
397    }
398    /// <p>The provider of this Amazon DataZone environment.</p>
399    pub fn set_provider(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
400        self.provider = input;
401        self
402    }
403    /// <p>The provider of this Amazon DataZone environment.</p>
404    pub fn get_provider(&self) -> &::std::option::Option<::std::string::String> {
405        &self.provider
406    }
407    /// Appends an item to `provisioned_resources`.
408    ///
409    /// To override the contents of this collection use [`set_provisioned_resources`](Self::set_provisioned_resources).
410    ///
411    /// <p>The provisioned resources of this Amazon DataZone environment.</p>
412    pub fn provisioned_resources(mut self, input: crate::types::Resource) -> Self {
413        let mut v = self.provisioned_resources.unwrap_or_default();
414        v.push(input);
415        self.provisioned_resources = ::std::option::Option::Some(v);
416        self
417    }
418    /// <p>The provisioned resources of this Amazon DataZone environment.</p>
419    pub fn set_provisioned_resources(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Resource>>) -> Self {
420        self.provisioned_resources = input;
421        self
422    }
423    /// <p>The provisioned resources of this Amazon DataZone environment.</p>
424    pub fn get_provisioned_resources(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Resource>> {
425        &self.provisioned_resources
426    }
427    /// <p>The status of this Amazon DataZone environment.</p>
428    pub fn status(mut self, input: crate::types::EnvironmentStatus) -> Self {
429        self.status = ::std::option::Option::Some(input);
430        self
431    }
432    /// <p>The status of this Amazon DataZone environment.</p>
433    pub fn set_status(mut self, input: ::std::option::Option<crate::types::EnvironmentStatus>) -> Self {
434        self.status = input;
435        self
436    }
437    /// <p>The status of this Amazon DataZone environment.</p>
438    pub fn get_status(&self) -> &::std::option::Option<crate::types::EnvironmentStatus> {
439        &self.status
440    }
441    /// Appends an item to `environment_actions`.
442    ///
443    /// To override the contents of this collection use [`set_environment_actions`](Self::set_environment_actions).
444    ///
445    /// <p>The configurable actions of this Amazon DataZone environment.</p>
446    pub fn environment_actions(mut self, input: crate::types::ConfigurableEnvironmentAction) -> Self {
447        let mut v = self.environment_actions.unwrap_or_default();
448        v.push(input);
449        self.environment_actions = ::std::option::Option::Some(v);
450        self
451    }
452    /// <p>The configurable actions of this Amazon DataZone environment.</p>
453    pub fn set_environment_actions(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::ConfigurableEnvironmentAction>>) -> Self {
454        self.environment_actions = input;
455        self
456    }
457    /// <p>The configurable actions of this Amazon DataZone environment.</p>
458    pub fn get_environment_actions(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ConfigurableEnvironmentAction>> {
459        &self.environment_actions
460    }
461    /// Appends an item to `glossary_terms`.
462    ///
463    /// To override the contents of this collection use [`set_glossary_terms`](Self::set_glossary_terms).
464    ///
465    /// <p>The glossary terms that can be used in this Amazon DataZone environment.</p>
466    pub fn glossary_terms(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
467        let mut v = self.glossary_terms.unwrap_or_default();
468        v.push(input.into());
469        self.glossary_terms = ::std::option::Option::Some(v);
470        self
471    }
472    /// <p>The glossary terms that can be used in this Amazon DataZone environment.</p>
473    pub fn set_glossary_terms(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
474        self.glossary_terms = input;
475        self
476    }
477    /// <p>The glossary terms that can be used in this Amazon DataZone environment.</p>
478    pub fn get_glossary_terms(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
479        &self.glossary_terms
480    }
481    /// Appends an item to `user_parameters`.
482    ///
483    /// To override the contents of this collection use [`set_user_parameters`](Self::set_user_parameters).
484    ///
485    /// <p>The user parameters of this Amazon DataZone environment.</p>
486    pub fn user_parameters(mut self, input: crate::types::CustomParameter) -> Self {
487        let mut v = self.user_parameters.unwrap_or_default();
488        v.push(input);
489        self.user_parameters = ::std::option::Option::Some(v);
490        self
491    }
492    /// <p>The user parameters of this Amazon DataZone environment.</p>
493    pub fn set_user_parameters(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::CustomParameter>>) -> Self {
494        self.user_parameters = input;
495        self
496    }
497    /// <p>The user parameters of this Amazon DataZone environment.</p>
498    pub fn get_user_parameters(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::CustomParameter>> {
499        &self.user_parameters
500    }
501    /// <p>The details of the last deployment of this Amazon DataZone environment.</p>
502    pub fn last_deployment(mut self, input: crate::types::Deployment) -> Self {
503        self.last_deployment = ::std::option::Option::Some(input);
504        self
505    }
506    /// <p>The details of the last deployment of this Amazon DataZone environment.</p>
507    pub fn set_last_deployment(mut self, input: ::std::option::Option<crate::types::Deployment>) -> Self {
508        self.last_deployment = input;
509        self
510    }
511    /// <p>The details of the last deployment of this Amazon DataZone environment.</p>
512    pub fn get_last_deployment(&self) -> &::std::option::Option<crate::types::Deployment> {
513        &self.last_deployment
514    }
515    /// <p>The provisioning properties of this Amazon DataZone environment.</p>
516    pub fn provisioning_properties(mut self, input: crate::types::ProvisioningProperties) -> Self {
517        self.provisioning_properties = ::std::option::Option::Some(input);
518        self
519    }
520    /// <p>The provisioning properties of this Amazon DataZone environment.</p>
521    pub fn set_provisioning_properties(mut self, input: ::std::option::Option<crate::types::ProvisioningProperties>) -> Self {
522        self.provisioning_properties = input;
523        self
524    }
525    /// <p>The provisioning properties of this Amazon DataZone environment.</p>
526    pub fn get_provisioning_properties(&self) -> &::std::option::Option<crate::types::ProvisioningProperties> {
527        &self.provisioning_properties
528    }
529    /// <p>The deployment properties of this Amazon DataZone environment.</p>
530    pub fn deployment_properties(mut self, input: crate::types::DeploymentProperties) -> Self {
531        self.deployment_properties = ::std::option::Option::Some(input);
532        self
533    }
534    /// <p>The deployment properties of this Amazon DataZone environment.</p>
535    pub fn set_deployment_properties(mut self, input: ::std::option::Option<crate::types::DeploymentProperties>) -> Self {
536        self.deployment_properties = input;
537        self
538    }
539    /// <p>The deployment properties of this Amazon DataZone environment.</p>
540    pub fn get_deployment_properties(&self) -> &::std::option::Option<crate::types::DeploymentProperties> {
541        &self.deployment_properties
542    }
543    /// <p>The ID of the blueprint with which this Amazon DataZone environment was created.</p>
544    pub fn environment_blueprint_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
545        self.environment_blueprint_id = ::std::option::Option::Some(input.into());
546        self
547    }
548    /// <p>The ID of the blueprint with which this Amazon DataZone environment was created.</p>
549    pub fn set_environment_blueprint_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
550        self.environment_blueprint_id = input;
551        self
552    }
553    /// <p>The ID of the blueprint with which this Amazon DataZone environment was created.</p>
554    pub fn get_environment_blueprint_id(&self) -> &::std::option::Option<::std::string::String> {
555        &self.environment_blueprint_id
556    }
557    /// <p>The configuration ID of the environment.</p>
558    pub fn environment_configuration_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
559        self.environment_configuration_id = ::std::option::Option::Some(input.into());
560        self
561    }
562    /// <p>The configuration ID of the environment.</p>
563    pub fn set_environment_configuration_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
564        self.environment_configuration_id = input;
565        self
566    }
567    /// <p>The configuration ID of the environment.</p>
568    pub fn get_environment_configuration_id(&self) -> &::std::option::Option<::std::string::String> {
569        &self.environment_configuration_id
570    }
571    /// <p>The configuration name of the environment.</p>
572    pub fn environment_configuration_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
573        self.environment_configuration_name = ::std::option::Option::Some(input.into());
574        self
575    }
576    /// <p>The configuration name of the environment.</p>
577    pub fn set_environment_configuration_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
578        self.environment_configuration_name = input;
579        self
580    }
581    /// <p>The configuration name of the environment.</p>
582    pub fn get_environment_configuration_name(&self) -> &::std::option::Option<::std::string::String> {
583        &self.environment_configuration_name
584    }
585    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
586        self._request_id = Some(request_id.into());
587        self
588    }
589
590    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
591        self._request_id = request_id;
592        self
593    }
594    /// Consumes the builder and constructs a [`CreateEnvironmentOutput`](crate::operation::create_environment::CreateEnvironmentOutput).
595    /// This method will fail if any of the following fields are not set:
596    /// - [`project_id`](crate::operation::create_environment::builders::CreateEnvironmentOutputBuilder::project_id)
597    /// - [`domain_id`](crate::operation::create_environment::builders::CreateEnvironmentOutputBuilder::domain_id)
598    /// - [`created_by`](crate::operation::create_environment::builders::CreateEnvironmentOutputBuilder::created_by)
599    /// - [`name`](crate::operation::create_environment::builders::CreateEnvironmentOutputBuilder::name)
600    /// - [`provider`](crate::operation::create_environment::builders::CreateEnvironmentOutputBuilder::provider)
601    pub fn build(
602        self,
603    ) -> ::std::result::Result<crate::operation::create_environment::CreateEnvironmentOutput, ::aws_smithy_types::error::operation::BuildError> {
604        ::std::result::Result::Ok(crate::operation::create_environment::CreateEnvironmentOutput {
605            project_id: self.project_id.ok_or_else(|| {
606                ::aws_smithy_types::error::operation::BuildError::missing_field(
607                    "project_id",
608                    "project_id was not specified but it is required when building CreateEnvironmentOutput",
609                )
610            })?,
611            id: self.id,
612            domain_id: self.domain_id.ok_or_else(|| {
613                ::aws_smithy_types::error::operation::BuildError::missing_field(
614                    "domain_id",
615                    "domain_id was not specified but it is required when building CreateEnvironmentOutput",
616                )
617            })?,
618            created_by: self.created_by.ok_or_else(|| {
619                ::aws_smithy_types::error::operation::BuildError::missing_field(
620                    "created_by",
621                    "created_by was not specified but it is required when building CreateEnvironmentOutput",
622                )
623            })?,
624            created_at: self.created_at,
625            updated_at: self.updated_at,
626            name: self.name.ok_or_else(|| {
627                ::aws_smithy_types::error::operation::BuildError::missing_field(
628                    "name",
629                    "name was not specified but it is required when building CreateEnvironmentOutput",
630                )
631            })?,
632            description: self.description,
633            environment_profile_id: self.environment_profile_id.unwrap_or_default(),
634            aws_account_id: self.aws_account_id,
635            aws_account_region: self.aws_account_region,
636            provider: self.provider.ok_or_else(|| {
637                ::aws_smithy_types::error::operation::BuildError::missing_field(
638                    "provider",
639                    "provider was not specified but it is required when building CreateEnvironmentOutput",
640                )
641            })?,
642            provisioned_resources: self.provisioned_resources,
643            status: self.status,
644            environment_actions: self.environment_actions,
645            glossary_terms: self.glossary_terms,
646            user_parameters: self.user_parameters,
647            last_deployment: self.last_deployment,
648            provisioning_properties: self.provisioning_properties,
649            deployment_properties: self.deployment_properties,
650            environment_blueprint_id: self.environment_blueprint_id,
651            environment_configuration_id: self.environment_configuration_id,
652            environment_configuration_name: self.environment_configuration_name,
653            _request_id: self._request_id,
654        })
655    }
656}
657impl ::std::fmt::Debug for CreateEnvironmentOutputBuilder {
658    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
659        let mut formatter = f.debug_struct("CreateEnvironmentOutputBuilder");
660        formatter.field("project_id", &self.project_id);
661        formatter.field("id", &self.id);
662        formatter.field("domain_id", &self.domain_id);
663        formatter.field("created_by", &self.created_by);
664        formatter.field("created_at", &self.created_at);
665        formatter.field("updated_at", &self.updated_at);
666        formatter.field("name", &"*** Sensitive Data Redacted ***");
667        formatter.field("description", &"*** Sensitive Data Redacted ***");
668        formatter.field("environment_profile_id", &self.environment_profile_id);
669        formatter.field("aws_account_id", &self.aws_account_id);
670        formatter.field("aws_account_region", &self.aws_account_region);
671        formatter.field("provider", &self.provider);
672        formatter.field("provisioned_resources", &self.provisioned_resources);
673        formatter.field("status", &self.status);
674        formatter.field("environment_actions", &self.environment_actions);
675        formatter.field("glossary_terms", &self.glossary_terms);
676        formatter.field("user_parameters", &self.user_parameters);
677        formatter.field("last_deployment", &self.last_deployment);
678        formatter.field("provisioning_properties", &self.provisioning_properties);
679        formatter.field("deployment_properties", &self.deployment_properties);
680        formatter.field("environment_blueprint_id", &self.environment_blueprint_id);
681        formatter.field("environment_configuration_id", &"*** Sensitive Data Redacted ***");
682        formatter.field("environment_configuration_name", &"*** Sensitive Data Redacted ***");
683        formatter.field("_request_id", &self._request_id);
684        formatter.finish()
685    }
686}