Skip to main content

aws_sdk_datazone/operation/create_notebook/
_create_notebook_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 CreateNotebookOutput {
6    /// <p>The identifier of the notebook.</p>
7    pub id: ::std::string::String,
8    /// <p>The name of the notebook.</p>
9    pub name: ::std::string::String,
10    /// <p>The identifier of the project that owns the notebook.</p>
11    pub owning_project_id: ::std::string::String,
12    /// <p>The identifier of the Amazon SageMaker Unified Studio domain.</p>
13    pub domain_id: ::std::string::String,
14    /// <p>The ordered list of cells in the notebook.</p>
15    pub cell_order: ::std::vec::Vec<crate::types::CellInformation>,
16    /// <p>The status of the notebook.</p>
17    pub status: crate::types::NotebookStatus,
18    /// <p>The description of the notebook.</p>
19    pub description: ::std::option::Option<::std::string::String>,
20    /// <p>The timestamp of when the notebook was created.</p>
21    pub created_at: ::std::option::Option<::aws_smithy_types::DateTime>,
22    /// <p>The identifier of the user who created the notebook.</p>
23    pub created_by: ::std::option::Option<::std::string::String>,
24    /// <p>The timestamp of when the notebook was last updated.</p>
25    pub updated_at: ::std::option::Option<::aws_smithy_types::DateTime>,
26    /// <p>The identifier of the user who last updated the notebook.</p>
27    pub updated_by: ::std::option::Option<::std::string::String>,
28    /// <p>The identifier of the user who locked the notebook.</p>
29    pub locked_by: ::std::option::Option<::std::string::String>,
30    /// <p>The timestamp of when the notebook was locked.</p>
31    pub locked_at: ::std::option::Option<::aws_smithy_types::DateTime>,
32    /// <p>The timestamp of when the notebook lock expires.</p>
33    pub lock_expires_at: ::std::option::Option<::aws_smithy_types::DateTime>,
34    /// <p>The identifier of the compute associated with the notebook.</p>
35    pub compute_id: ::std::option::Option<::std::string::String>,
36    /// <p>The metadata of the notebook.</p>
37    pub metadata: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
38    /// <p>The sensitive parameters of the notebook.</p>
39    pub parameters: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
40    /// <p>The environment configuration of the notebook.</p>
41    pub environment_configuration: ::std::option::Option<crate::types::EnvironmentConfig>,
42    /// <p>The error details if the notebook creation failed.</p>
43    pub error: ::std::option::Option<crate::types::NotebookError>,
44    /// <p>The Git metadata associated with the notebook.</p>
45    pub git_metadata: ::std::option::Option<crate::types::GitMetadata>,
46    _request_id: Option<String>,
47}
48impl CreateNotebookOutput {
49    /// <p>The identifier of the notebook.</p>
50    pub fn id(&self) -> &str {
51        use std::ops::Deref;
52        self.id.deref()
53    }
54    /// <p>The name of the notebook.</p>
55    pub fn name(&self) -> &str {
56        use std::ops::Deref;
57        self.name.deref()
58    }
59    /// <p>The identifier of the project that owns the notebook.</p>
60    pub fn owning_project_id(&self) -> &str {
61        use std::ops::Deref;
62        self.owning_project_id.deref()
63    }
64    /// <p>The identifier of the Amazon SageMaker Unified Studio domain.</p>
65    pub fn domain_id(&self) -> &str {
66        use std::ops::Deref;
67        self.domain_id.deref()
68    }
69    /// <p>The ordered list of cells in the notebook.</p>
70    pub fn cell_order(&self) -> &[crate::types::CellInformation] {
71        use std::ops::Deref;
72        self.cell_order.deref()
73    }
74    /// <p>The status of the notebook.</p>
75    pub fn status(&self) -> &crate::types::NotebookStatus {
76        &self.status
77    }
78    /// <p>The description of the notebook.</p>
79    pub fn description(&self) -> ::std::option::Option<&str> {
80        self.description.as_deref()
81    }
82    /// <p>The timestamp of when the notebook was created.</p>
83    pub fn created_at(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
84        self.created_at.as_ref()
85    }
86    /// <p>The identifier of the user who created the notebook.</p>
87    pub fn created_by(&self) -> ::std::option::Option<&str> {
88        self.created_by.as_deref()
89    }
90    /// <p>The timestamp of when the notebook was last updated.</p>
91    pub fn updated_at(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
92        self.updated_at.as_ref()
93    }
94    /// <p>The identifier of the user who last updated the notebook.</p>
95    pub fn updated_by(&self) -> ::std::option::Option<&str> {
96        self.updated_by.as_deref()
97    }
98    /// <p>The identifier of the user who locked the notebook.</p>
99    pub fn locked_by(&self) -> ::std::option::Option<&str> {
100        self.locked_by.as_deref()
101    }
102    /// <p>The timestamp of when the notebook was locked.</p>
103    pub fn locked_at(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
104        self.locked_at.as_ref()
105    }
106    /// <p>The timestamp of when the notebook lock expires.</p>
107    pub fn lock_expires_at(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
108        self.lock_expires_at.as_ref()
109    }
110    /// <p>The identifier of the compute associated with the notebook.</p>
111    pub fn compute_id(&self) -> ::std::option::Option<&str> {
112        self.compute_id.as_deref()
113    }
114    /// <p>The metadata of the notebook.</p>
115    pub fn metadata(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::string::String>> {
116        self.metadata.as_ref()
117    }
118    /// <p>The sensitive parameters of the notebook.</p>
119    pub fn parameters(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::string::String>> {
120        self.parameters.as_ref()
121    }
122    /// <p>The environment configuration of the notebook.</p>
123    pub fn environment_configuration(&self) -> ::std::option::Option<&crate::types::EnvironmentConfig> {
124        self.environment_configuration.as_ref()
125    }
126    /// <p>The error details if the notebook creation failed.</p>
127    pub fn error(&self) -> ::std::option::Option<&crate::types::NotebookError> {
128        self.error.as_ref()
129    }
130    /// <p>The Git metadata associated with the notebook.</p>
131    pub fn git_metadata(&self) -> ::std::option::Option<&crate::types::GitMetadata> {
132        self.git_metadata.as_ref()
133    }
134}
135impl ::std::fmt::Debug for CreateNotebookOutput {
136    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
137        let mut formatter = f.debug_struct("CreateNotebookOutput");
138        formatter.field("id", &self.id);
139        formatter.field("name", &"*** Sensitive Data Redacted ***");
140        formatter.field("owning_project_id", &self.owning_project_id);
141        formatter.field("domain_id", &self.domain_id);
142        formatter.field("cell_order", &self.cell_order);
143        formatter.field("status", &self.status);
144        formatter.field("description", &"*** Sensitive Data Redacted ***");
145        formatter.field("created_at", &self.created_at);
146        formatter.field("created_by", &self.created_by);
147        formatter.field("updated_at", &self.updated_at);
148        formatter.field("updated_by", &self.updated_by);
149        formatter.field("locked_by", &self.locked_by);
150        formatter.field("locked_at", &self.locked_at);
151        formatter.field("lock_expires_at", &self.lock_expires_at);
152        formatter.field("compute_id", &self.compute_id);
153        formatter.field("metadata", &"*** Sensitive Data Redacted ***");
154        formatter.field("parameters", &"*** Sensitive Data Redacted ***");
155        formatter.field("environment_configuration", &self.environment_configuration);
156        formatter.field("error", &self.error);
157        formatter.field("git_metadata", &self.git_metadata);
158        formatter.field("_request_id", &self._request_id);
159        formatter.finish()
160    }
161}
162impl ::aws_types::request_id::RequestId for CreateNotebookOutput {
163    fn request_id(&self) -> Option<&str> {
164        self._request_id.as_deref()
165    }
166}
167impl CreateNotebookOutput {
168    /// Creates a new builder-style object to manufacture [`CreateNotebookOutput`](crate::operation::create_notebook::CreateNotebookOutput).
169    pub fn builder() -> crate::operation::create_notebook::builders::CreateNotebookOutputBuilder {
170        crate::operation::create_notebook::builders::CreateNotebookOutputBuilder::default()
171    }
172}
173
174/// A builder for [`CreateNotebookOutput`](crate::operation::create_notebook::CreateNotebookOutput).
175#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
176#[non_exhaustive]
177pub struct CreateNotebookOutputBuilder {
178    pub(crate) id: ::std::option::Option<::std::string::String>,
179    pub(crate) name: ::std::option::Option<::std::string::String>,
180    pub(crate) owning_project_id: ::std::option::Option<::std::string::String>,
181    pub(crate) domain_id: ::std::option::Option<::std::string::String>,
182    pub(crate) cell_order: ::std::option::Option<::std::vec::Vec<crate::types::CellInformation>>,
183    pub(crate) status: ::std::option::Option<crate::types::NotebookStatus>,
184    pub(crate) description: ::std::option::Option<::std::string::String>,
185    pub(crate) created_at: ::std::option::Option<::aws_smithy_types::DateTime>,
186    pub(crate) created_by: ::std::option::Option<::std::string::String>,
187    pub(crate) updated_at: ::std::option::Option<::aws_smithy_types::DateTime>,
188    pub(crate) updated_by: ::std::option::Option<::std::string::String>,
189    pub(crate) locked_by: ::std::option::Option<::std::string::String>,
190    pub(crate) locked_at: ::std::option::Option<::aws_smithy_types::DateTime>,
191    pub(crate) lock_expires_at: ::std::option::Option<::aws_smithy_types::DateTime>,
192    pub(crate) compute_id: ::std::option::Option<::std::string::String>,
193    pub(crate) metadata: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
194    pub(crate) parameters: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
195    pub(crate) environment_configuration: ::std::option::Option<crate::types::EnvironmentConfig>,
196    pub(crate) error: ::std::option::Option<crate::types::NotebookError>,
197    pub(crate) git_metadata: ::std::option::Option<crate::types::GitMetadata>,
198    _request_id: Option<String>,
199}
200impl CreateNotebookOutputBuilder {
201    /// <p>The identifier of the notebook.</p>
202    /// This field is required.
203    pub fn id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
204        self.id = ::std::option::Option::Some(input.into());
205        self
206    }
207    /// <p>The identifier of the notebook.</p>
208    pub fn set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
209        self.id = input;
210        self
211    }
212    /// <p>The identifier of the notebook.</p>
213    pub fn get_id(&self) -> &::std::option::Option<::std::string::String> {
214        &self.id
215    }
216    /// <p>The name of the notebook.</p>
217    /// This field is required.
218    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
219        self.name = ::std::option::Option::Some(input.into());
220        self
221    }
222    /// <p>The name of the notebook.</p>
223    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
224        self.name = input;
225        self
226    }
227    /// <p>The name of the notebook.</p>
228    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
229        &self.name
230    }
231    /// <p>The identifier of the project that owns the notebook.</p>
232    /// This field is required.
233    pub fn owning_project_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
234        self.owning_project_id = ::std::option::Option::Some(input.into());
235        self
236    }
237    /// <p>The identifier of the project that owns the notebook.</p>
238    pub fn set_owning_project_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
239        self.owning_project_id = input;
240        self
241    }
242    /// <p>The identifier of the project that owns the notebook.</p>
243    pub fn get_owning_project_id(&self) -> &::std::option::Option<::std::string::String> {
244        &self.owning_project_id
245    }
246    /// <p>The identifier of the Amazon SageMaker Unified Studio domain.</p>
247    /// This field is required.
248    pub fn domain_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
249        self.domain_id = ::std::option::Option::Some(input.into());
250        self
251    }
252    /// <p>The identifier of the Amazon SageMaker Unified Studio domain.</p>
253    pub fn set_domain_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
254        self.domain_id = input;
255        self
256    }
257    /// <p>The identifier of the Amazon SageMaker Unified Studio domain.</p>
258    pub fn get_domain_id(&self) -> &::std::option::Option<::std::string::String> {
259        &self.domain_id
260    }
261    /// Appends an item to `cell_order`.
262    ///
263    /// To override the contents of this collection use [`set_cell_order`](Self::set_cell_order).
264    ///
265    /// <p>The ordered list of cells in the notebook.</p>
266    pub fn cell_order(mut self, input: crate::types::CellInformation) -> Self {
267        let mut v = self.cell_order.unwrap_or_default();
268        v.push(input);
269        self.cell_order = ::std::option::Option::Some(v);
270        self
271    }
272    /// <p>The ordered list of cells in the notebook.</p>
273    pub fn set_cell_order(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::CellInformation>>) -> Self {
274        self.cell_order = input;
275        self
276    }
277    /// <p>The ordered list of cells in the notebook.</p>
278    pub fn get_cell_order(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::CellInformation>> {
279        &self.cell_order
280    }
281    /// <p>The status of the notebook.</p>
282    /// This field is required.
283    pub fn status(mut self, input: crate::types::NotebookStatus) -> Self {
284        self.status = ::std::option::Option::Some(input);
285        self
286    }
287    /// <p>The status of the notebook.</p>
288    pub fn set_status(mut self, input: ::std::option::Option<crate::types::NotebookStatus>) -> Self {
289        self.status = input;
290        self
291    }
292    /// <p>The status of the notebook.</p>
293    pub fn get_status(&self) -> &::std::option::Option<crate::types::NotebookStatus> {
294        &self.status
295    }
296    /// <p>The description of the notebook.</p>
297    pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
298        self.description = ::std::option::Option::Some(input.into());
299        self
300    }
301    /// <p>The description of the notebook.</p>
302    pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
303        self.description = input;
304        self
305    }
306    /// <p>The description of the notebook.</p>
307    pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
308        &self.description
309    }
310    /// <p>The timestamp of when the notebook was created.</p>
311    pub fn created_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
312        self.created_at = ::std::option::Option::Some(input);
313        self
314    }
315    /// <p>The timestamp of when the notebook was created.</p>
316    pub fn set_created_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
317        self.created_at = input;
318        self
319    }
320    /// <p>The timestamp of when the notebook was created.</p>
321    pub fn get_created_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
322        &self.created_at
323    }
324    /// <p>The identifier of the user who created the notebook.</p>
325    pub fn created_by(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
326        self.created_by = ::std::option::Option::Some(input.into());
327        self
328    }
329    /// <p>The identifier of the user who created the notebook.</p>
330    pub fn set_created_by(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
331        self.created_by = input;
332        self
333    }
334    /// <p>The identifier of the user who created the notebook.</p>
335    pub fn get_created_by(&self) -> &::std::option::Option<::std::string::String> {
336        &self.created_by
337    }
338    /// <p>The timestamp of when the notebook was last updated.</p>
339    pub fn updated_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
340        self.updated_at = ::std::option::Option::Some(input);
341        self
342    }
343    /// <p>The timestamp of when the notebook was last updated.</p>
344    pub fn set_updated_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
345        self.updated_at = input;
346        self
347    }
348    /// <p>The timestamp of when the notebook was last updated.</p>
349    pub fn get_updated_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
350        &self.updated_at
351    }
352    /// <p>The identifier of the user who last updated the notebook.</p>
353    pub fn updated_by(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
354        self.updated_by = ::std::option::Option::Some(input.into());
355        self
356    }
357    /// <p>The identifier of the user who last updated the notebook.</p>
358    pub fn set_updated_by(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
359        self.updated_by = input;
360        self
361    }
362    /// <p>The identifier of the user who last updated the notebook.</p>
363    pub fn get_updated_by(&self) -> &::std::option::Option<::std::string::String> {
364        &self.updated_by
365    }
366    /// <p>The identifier of the user who locked the notebook.</p>
367    pub fn locked_by(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
368        self.locked_by = ::std::option::Option::Some(input.into());
369        self
370    }
371    /// <p>The identifier of the user who locked the notebook.</p>
372    pub fn set_locked_by(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
373        self.locked_by = input;
374        self
375    }
376    /// <p>The identifier of the user who locked the notebook.</p>
377    pub fn get_locked_by(&self) -> &::std::option::Option<::std::string::String> {
378        &self.locked_by
379    }
380    /// <p>The timestamp of when the notebook was locked.</p>
381    pub fn locked_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
382        self.locked_at = ::std::option::Option::Some(input);
383        self
384    }
385    /// <p>The timestamp of when the notebook was locked.</p>
386    pub fn set_locked_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
387        self.locked_at = input;
388        self
389    }
390    /// <p>The timestamp of when the notebook was locked.</p>
391    pub fn get_locked_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
392        &self.locked_at
393    }
394    /// <p>The timestamp of when the notebook lock expires.</p>
395    pub fn lock_expires_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
396        self.lock_expires_at = ::std::option::Option::Some(input);
397        self
398    }
399    /// <p>The timestamp of when the notebook lock expires.</p>
400    pub fn set_lock_expires_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
401        self.lock_expires_at = input;
402        self
403    }
404    /// <p>The timestamp of when the notebook lock expires.</p>
405    pub fn get_lock_expires_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
406        &self.lock_expires_at
407    }
408    /// <p>The identifier of the compute associated with the notebook.</p>
409    pub fn compute_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
410        self.compute_id = ::std::option::Option::Some(input.into());
411        self
412    }
413    /// <p>The identifier of the compute associated with the notebook.</p>
414    pub fn set_compute_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
415        self.compute_id = input;
416        self
417    }
418    /// <p>The identifier of the compute associated with the notebook.</p>
419    pub fn get_compute_id(&self) -> &::std::option::Option<::std::string::String> {
420        &self.compute_id
421    }
422    /// Adds a key-value pair to `metadata`.
423    ///
424    /// To override the contents of this collection use [`set_metadata`](Self::set_metadata).
425    ///
426    /// <p>The metadata of the notebook.</p>
427    pub fn metadata(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
428        let mut hash_map = self.metadata.unwrap_or_default();
429        hash_map.insert(k.into(), v.into());
430        self.metadata = ::std::option::Option::Some(hash_map);
431        self
432    }
433    /// <p>The metadata of the notebook.</p>
434    pub fn set_metadata(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self {
435        self.metadata = input;
436        self
437    }
438    /// <p>The metadata of the notebook.</p>
439    pub fn get_metadata(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
440        &self.metadata
441    }
442    /// Adds a key-value pair to `parameters`.
443    ///
444    /// To override the contents of this collection use [`set_parameters`](Self::set_parameters).
445    ///
446    /// <p>The sensitive parameters of the notebook.</p>
447    pub fn parameters(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
448        let mut hash_map = self.parameters.unwrap_or_default();
449        hash_map.insert(k.into(), v.into());
450        self.parameters = ::std::option::Option::Some(hash_map);
451        self
452    }
453    /// <p>The sensitive parameters of the notebook.</p>
454    pub fn set_parameters(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self {
455        self.parameters = input;
456        self
457    }
458    /// <p>The sensitive parameters of the notebook.</p>
459    pub fn get_parameters(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
460        &self.parameters
461    }
462    /// <p>The environment configuration of the notebook.</p>
463    pub fn environment_configuration(mut self, input: crate::types::EnvironmentConfig) -> Self {
464        self.environment_configuration = ::std::option::Option::Some(input);
465        self
466    }
467    /// <p>The environment configuration of the notebook.</p>
468    pub fn set_environment_configuration(mut self, input: ::std::option::Option<crate::types::EnvironmentConfig>) -> Self {
469        self.environment_configuration = input;
470        self
471    }
472    /// <p>The environment configuration of the notebook.</p>
473    pub fn get_environment_configuration(&self) -> &::std::option::Option<crate::types::EnvironmentConfig> {
474        &self.environment_configuration
475    }
476    /// <p>The error details if the notebook creation failed.</p>
477    pub fn error(mut self, input: crate::types::NotebookError) -> Self {
478        self.error = ::std::option::Option::Some(input);
479        self
480    }
481    /// <p>The error details if the notebook creation failed.</p>
482    pub fn set_error(mut self, input: ::std::option::Option<crate::types::NotebookError>) -> Self {
483        self.error = input;
484        self
485    }
486    /// <p>The error details if the notebook creation failed.</p>
487    pub fn get_error(&self) -> &::std::option::Option<crate::types::NotebookError> {
488        &self.error
489    }
490    /// <p>The Git metadata associated with the notebook.</p>
491    pub fn git_metadata(mut self, input: crate::types::GitMetadata) -> Self {
492        self.git_metadata = ::std::option::Option::Some(input);
493        self
494    }
495    /// <p>The Git metadata associated with the notebook.</p>
496    pub fn set_git_metadata(mut self, input: ::std::option::Option<crate::types::GitMetadata>) -> Self {
497        self.git_metadata = input;
498        self
499    }
500    /// <p>The Git metadata associated with the notebook.</p>
501    pub fn get_git_metadata(&self) -> &::std::option::Option<crate::types::GitMetadata> {
502        &self.git_metadata
503    }
504    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
505        self._request_id = Some(request_id.into());
506        self
507    }
508
509    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
510        self._request_id = request_id;
511        self
512    }
513    /// Consumes the builder and constructs a [`CreateNotebookOutput`](crate::operation::create_notebook::CreateNotebookOutput).
514    /// This method will fail if any of the following fields are not set:
515    /// - [`id`](crate::operation::create_notebook::builders::CreateNotebookOutputBuilder::id)
516    /// - [`name`](crate::operation::create_notebook::builders::CreateNotebookOutputBuilder::name)
517    /// - [`owning_project_id`](crate::operation::create_notebook::builders::CreateNotebookOutputBuilder::owning_project_id)
518    /// - [`domain_id`](crate::operation::create_notebook::builders::CreateNotebookOutputBuilder::domain_id)
519    /// - [`cell_order`](crate::operation::create_notebook::builders::CreateNotebookOutputBuilder::cell_order)
520    /// - [`status`](crate::operation::create_notebook::builders::CreateNotebookOutputBuilder::status)
521    pub fn build(
522        self,
523    ) -> ::std::result::Result<crate::operation::create_notebook::CreateNotebookOutput, ::aws_smithy_types::error::operation::BuildError> {
524        ::std::result::Result::Ok(crate::operation::create_notebook::CreateNotebookOutput {
525            id: self.id.ok_or_else(|| {
526                ::aws_smithy_types::error::operation::BuildError::missing_field(
527                    "id",
528                    "id was not specified but it is required when building CreateNotebookOutput",
529                )
530            })?,
531            name: self.name.ok_or_else(|| {
532                ::aws_smithy_types::error::operation::BuildError::missing_field(
533                    "name",
534                    "name was not specified but it is required when building CreateNotebookOutput",
535                )
536            })?,
537            owning_project_id: self.owning_project_id.ok_or_else(|| {
538                ::aws_smithy_types::error::operation::BuildError::missing_field(
539                    "owning_project_id",
540                    "owning_project_id was not specified but it is required when building CreateNotebookOutput",
541                )
542            })?,
543            domain_id: self.domain_id.ok_or_else(|| {
544                ::aws_smithy_types::error::operation::BuildError::missing_field(
545                    "domain_id",
546                    "domain_id was not specified but it is required when building CreateNotebookOutput",
547                )
548            })?,
549            cell_order: self.cell_order.ok_or_else(|| {
550                ::aws_smithy_types::error::operation::BuildError::missing_field(
551                    "cell_order",
552                    "cell_order was not specified but it is required when building CreateNotebookOutput",
553                )
554            })?,
555            status: self.status.ok_or_else(|| {
556                ::aws_smithy_types::error::operation::BuildError::missing_field(
557                    "status",
558                    "status was not specified but it is required when building CreateNotebookOutput",
559                )
560            })?,
561            description: self.description,
562            created_at: self.created_at,
563            created_by: self.created_by,
564            updated_at: self.updated_at,
565            updated_by: self.updated_by,
566            locked_by: self.locked_by,
567            locked_at: self.locked_at,
568            lock_expires_at: self.lock_expires_at,
569            compute_id: self.compute_id,
570            metadata: self.metadata,
571            parameters: self.parameters,
572            environment_configuration: self.environment_configuration,
573            error: self.error,
574            git_metadata: self.git_metadata,
575            _request_id: self._request_id,
576        })
577    }
578}
579impl ::std::fmt::Debug for CreateNotebookOutputBuilder {
580    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
581        let mut formatter = f.debug_struct("CreateNotebookOutputBuilder");
582        formatter.field("id", &self.id);
583        formatter.field("name", &"*** Sensitive Data Redacted ***");
584        formatter.field("owning_project_id", &self.owning_project_id);
585        formatter.field("domain_id", &self.domain_id);
586        formatter.field("cell_order", &self.cell_order);
587        formatter.field("status", &self.status);
588        formatter.field("description", &"*** Sensitive Data Redacted ***");
589        formatter.field("created_at", &self.created_at);
590        formatter.field("created_by", &self.created_by);
591        formatter.field("updated_at", &self.updated_at);
592        formatter.field("updated_by", &self.updated_by);
593        formatter.field("locked_by", &self.locked_by);
594        formatter.field("locked_at", &self.locked_at);
595        formatter.field("lock_expires_at", &self.lock_expires_at);
596        formatter.field("compute_id", &self.compute_id);
597        formatter.field("metadata", &"*** Sensitive Data Redacted ***");
598        formatter.field("parameters", &"*** Sensitive Data Redacted ***");
599        formatter.field("environment_configuration", &self.environment_configuration);
600        formatter.field("error", &self.error);
601        formatter.field("git_metadata", &self.git_metadata);
602        formatter.field("_request_id", &self._request_id);
603        formatter.finish()
604    }
605}