1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// <p> Result structure used for requests to updated project configuration. </p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UpdateProjectOutput {
/// <p> Detailed information about the updated AWS Mobile Hub project. </p>
#[doc(hidden)]
pub details: std::option::Option<crate::model::ProjectDetails>,
}
impl UpdateProjectOutput {
/// <p> Detailed information about the updated AWS Mobile Hub project. </p>
pub fn details(&self) -> std::option::Option<&crate::model::ProjectDetails> {
self.details.as_ref()
}
}
/// See [`UpdateProjectOutput`](crate::output::UpdateProjectOutput).
pub mod update_project_output {
/// A builder for [`UpdateProjectOutput`](crate::output::UpdateProjectOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) details: std::option::Option<crate::model::ProjectDetails>,
}
impl Builder {
/// <p> Detailed information about the updated AWS Mobile Hub project. </p>
pub fn details(mut self, input: crate::model::ProjectDetails) -> Self {
self.details = Some(input);
self
}
/// <p> Detailed information about the updated AWS Mobile Hub project. </p>
pub fn set_details(
mut self,
input: std::option::Option<crate::model::ProjectDetails>,
) -> Self {
self.details = input;
self
}
/// Consumes the builder and constructs a [`UpdateProjectOutput`](crate::output::UpdateProjectOutput).
pub fn build(self) -> crate::output::UpdateProjectOutput {
crate::output::UpdateProjectOutput {
details: self.details,
}
}
}
}
impl UpdateProjectOutput {
/// Creates a new builder-style object to manufacture [`UpdateProjectOutput`](crate::output::UpdateProjectOutput).
pub fn builder() -> crate::output::update_project_output::Builder {
crate::output::update_project_output::Builder::default()
}
}
/// <p> Result structure used for requests to list projects in AWS Mobile Hub. </p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ListProjectsOutput {
/// <p> List of projects. </p>
#[doc(hidden)]
pub projects: std::option::Option<std::vec::Vec<crate::model::ProjectSummary>>,
/// <p> Pagination token. Set to null to start listing records from start. If non-null pagination token is returned in a result, then pass its value in here in another request to list more entries. </p>
#[doc(hidden)]
pub next_token: std::option::Option<std::string::String>,
}
impl ListProjectsOutput {
/// <p> List of projects. </p>
pub fn projects(&self) -> std::option::Option<&[crate::model::ProjectSummary]> {
self.projects.as_deref()
}
/// <p> Pagination token. Set to null to start listing records from start. If non-null pagination token is returned in a result, then pass its value in here in another request to list more entries. </p>
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
}
/// See [`ListProjectsOutput`](crate::output::ListProjectsOutput).
pub mod list_projects_output {
/// A builder for [`ListProjectsOutput`](crate::output::ListProjectsOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) projects: std::option::Option<std::vec::Vec<crate::model::ProjectSummary>>,
pub(crate) next_token: std::option::Option<std::string::String>,
}
impl Builder {
/// Appends an item to `projects`.
///
/// To override the contents of this collection use [`set_projects`](Self::set_projects).
///
/// <p> List of projects. </p>
pub fn projects(mut self, input: crate::model::ProjectSummary) -> Self {
let mut v = self.projects.unwrap_or_default();
v.push(input);
self.projects = Some(v);
self
}
/// <p> List of projects. </p>
pub fn set_projects(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::ProjectSummary>>,
) -> Self {
self.projects = input;
self
}
/// <p> Pagination token. Set to null to start listing records from start. If non-null pagination token is returned in a result, then pass its value in here in another request to list more entries. </p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
/// <p> Pagination token. Set to null to start listing records from start. If non-null pagination token is returned in a result, then pass its value in here in another request to list more entries. </p>
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = input;
self
}
/// Consumes the builder and constructs a [`ListProjectsOutput`](crate::output::ListProjectsOutput).
pub fn build(self) -> crate::output::ListProjectsOutput {
crate::output::ListProjectsOutput {
projects: self.projects,
next_token: self.next_token,
}
}
}
}
impl ListProjectsOutput {
/// Creates a new builder-style object to manufacture [`ListProjectsOutput`](crate::output::ListProjectsOutput).
pub fn builder() -> crate::output::list_projects_output::Builder {
crate::output::list_projects_output::Builder::default()
}
}
/// <p> Result structure contains a list of all available bundles with details. </p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ListBundlesOutput {
/// <p> A list of bundles. </p>
#[doc(hidden)]
pub bundle_list: std::option::Option<std::vec::Vec<crate::model::BundleDetails>>,
/// <p> Pagination token. If non-null pagination token is returned in a result, then pass its value in another request to fetch more entries. </p>
#[doc(hidden)]
pub next_token: std::option::Option<std::string::String>,
}
impl ListBundlesOutput {
/// <p> A list of bundles. </p>
pub fn bundle_list(&self) -> std::option::Option<&[crate::model::BundleDetails]> {
self.bundle_list.as_deref()
}
/// <p> Pagination token. If non-null pagination token is returned in a result, then pass its value in another request to fetch more entries. </p>
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
}
/// See [`ListBundlesOutput`](crate::output::ListBundlesOutput).
pub mod list_bundles_output {
/// A builder for [`ListBundlesOutput`](crate::output::ListBundlesOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) bundle_list: std::option::Option<std::vec::Vec<crate::model::BundleDetails>>,
pub(crate) next_token: std::option::Option<std::string::String>,
}
impl Builder {
/// Appends an item to `bundle_list`.
///
/// To override the contents of this collection use [`set_bundle_list`](Self::set_bundle_list).
///
/// <p> A list of bundles. </p>
pub fn bundle_list(mut self, input: crate::model::BundleDetails) -> Self {
let mut v = self.bundle_list.unwrap_or_default();
v.push(input);
self.bundle_list = Some(v);
self
}
/// <p> A list of bundles. </p>
pub fn set_bundle_list(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::BundleDetails>>,
) -> Self {
self.bundle_list = input;
self
}
/// <p> Pagination token. If non-null pagination token is returned in a result, then pass its value in another request to fetch more entries. </p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
/// <p> Pagination token. If non-null pagination token is returned in a result, then pass its value in another request to fetch more entries. </p>
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = input;
self
}
/// Consumes the builder and constructs a [`ListBundlesOutput`](crate::output::ListBundlesOutput).
pub fn build(self) -> crate::output::ListBundlesOutput {
crate::output::ListBundlesOutput {
bundle_list: self.bundle_list,
next_token: self.next_token,
}
}
}
}
impl ListBundlesOutput {
/// Creates a new builder-style object to manufacture [`ListBundlesOutput`](crate::output::ListBundlesOutput).
pub fn builder() -> crate::output::list_bundles_output::Builder {
crate::output::list_bundles_output::Builder::default()
}
}
/// <p> Result structure used for requests to export project configuration details. </p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ExportProjectOutput {
/// <p> URL which can be used to download the exported project configuation file(s). </p>
#[doc(hidden)]
pub download_url: std::option::Option<std::string::String>,
/// <p> URL which can be shared to allow other AWS users to create their own project in AWS Mobile Hub with the same configuration as the specified project. This URL pertains to a snapshot in time of the project configuration that is created when this API is called. If you want to share additional changes to your project configuration, then you will need to create and share a new snapshot by calling this method again. </p>
#[doc(hidden)]
pub share_url: std::option::Option<std::string::String>,
/// <p> Unique identifier for the exported snapshot of the project configuration. This snapshot identifier is included in the share URL. </p>
#[doc(hidden)]
pub snapshot_id: std::option::Option<std::string::String>,
}
impl ExportProjectOutput {
/// <p> URL which can be used to download the exported project configuation file(s). </p>
pub fn download_url(&self) -> std::option::Option<&str> {
self.download_url.as_deref()
}
/// <p> URL which can be shared to allow other AWS users to create their own project in AWS Mobile Hub with the same configuration as the specified project. This URL pertains to a snapshot in time of the project configuration that is created when this API is called. If you want to share additional changes to your project configuration, then you will need to create and share a new snapshot by calling this method again. </p>
pub fn share_url(&self) -> std::option::Option<&str> {
self.share_url.as_deref()
}
/// <p> Unique identifier for the exported snapshot of the project configuration. This snapshot identifier is included in the share URL. </p>
pub fn snapshot_id(&self) -> std::option::Option<&str> {
self.snapshot_id.as_deref()
}
}
/// See [`ExportProjectOutput`](crate::output::ExportProjectOutput).
pub mod export_project_output {
/// A builder for [`ExportProjectOutput`](crate::output::ExportProjectOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) download_url: std::option::Option<std::string::String>,
pub(crate) share_url: std::option::Option<std::string::String>,
pub(crate) snapshot_id: std::option::Option<std::string::String>,
}
impl Builder {
/// <p> URL which can be used to download the exported project configuation file(s). </p>
pub fn download_url(mut self, input: impl Into<std::string::String>) -> Self {
self.download_url = Some(input.into());
self
}
/// <p> URL which can be used to download the exported project configuation file(s). </p>
pub fn set_download_url(mut self, input: std::option::Option<std::string::String>) -> Self {
self.download_url = input;
self
}
/// <p> URL which can be shared to allow other AWS users to create their own project in AWS Mobile Hub with the same configuration as the specified project. This URL pertains to a snapshot in time of the project configuration that is created when this API is called. If you want to share additional changes to your project configuration, then you will need to create and share a new snapshot by calling this method again. </p>
pub fn share_url(mut self, input: impl Into<std::string::String>) -> Self {
self.share_url = Some(input.into());
self
}
/// <p> URL which can be shared to allow other AWS users to create their own project in AWS Mobile Hub with the same configuration as the specified project. This URL pertains to a snapshot in time of the project configuration that is created when this API is called. If you want to share additional changes to your project configuration, then you will need to create and share a new snapshot by calling this method again. </p>
pub fn set_share_url(mut self, input: std::option::Option<std::string::String>) -> Self {
self.share_url = input;
self
}
/// <p> Unique identifier for the exported snapshot of the project configuration. This snapshot identifier is included in the share URL. </p>
pub fn snapshot_id(mut self, input: impl Into<std::string::String>) -> Self {
self.snapshot_id = Some(input.into());
self
}
/// <p> Unique identifier for the exported snapshot of the project configuration. This snapshot identifier is included in the share URL. </p>
pub fn set_snapshot_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.snapshot_id = input;
self
}
/// Consumes the builder and constructs a [`ExportProjectOutput`](crate::output::ExportProjectOutput).
pub fn build(self) -> crate::output::ExportProjectOutput {
crate::output::ExportProjectOutput {
download_url: self.download_url,
share_url: self.share_url,
snapshot_id: self.snapshot_id,
}
}
}
}
impl ExportProjectOutput {
/// Creates a new builder-style object to manufacture [`ExportProjectOutput`](crate::output::ExportProjectOutput).
pub fn builder() -> crate::output::export_project_output::Builder {
crate::output::export_project_output::Builder::default()
}
}
/// <p> Result structure which contains link to download custom-generated SDK and tool packages used to integrate mobile web or app clients with backed AWS resources. </p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ExportBundleOutput {
/// <p> URL which contains the custom-generated SDK and tool packages used to integrate the client mobile app or web app with the AWS resources created by the AWS Mobile Hub project. </p>
#[doc(hidden)]
pub download_url: std::option::Option<std::string::String>,
}
impl ExportBundleOutput {
/// <p> URL which contains the custom-generated SDK and tool packages used to integrate the client mobile app or web app with the AWS resources created by the AWS Mobile Hub project. </p>
pub fn download_url(&self) -> std::option::Option<&str> {
self.download_url.as_deref()
}
}
/// See [`ExportBundleOutput`](crate::output::ExportBundleOutput).
pub mod export_bundle_output {
/// A builder for [`ExportBundleOutput`](crate::output::ExportBundleOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) download_url: std::option::Option<std::string::String>,
}
impl Builder {
/// <p> URL which contains the custom-generated SDK and tool packages used to integrate the client mobile app or web app with the AWS resources created by the AWS Mobile Hub project. </p>
pub fn download_url(mut self, input: impl Into<std::string::String>) -> Self {
self.download_url = Some(input.into());
self
}
/// <p> URL which contains the custom-generated SDK and tool packages used to integrate the client mobile app or web app with the AWS resources created by the AWS Mobile Hub project. </p>
pub fn set_download_url(mut self, input: std::option::Option<std::string::String>) -> Self {
self.download_url = input;
self
}
/// Consumes the builder and constructs a [`ExportBundleOutput`](crate::output::ExportBundleOutput).
pub fn build(self) -> crate::output::ExportBundleOutput {
crate::output::ExportBundleOutput {
download_url: self.download_url,
}
}
}
}
impl ExportBundleOutput {
/// Creates a new builder-style object to manufacture [`ExportBundleOutput`](crate::output::ExportBundleOutput).
pub fn builder() -> crate::output::export_bundle_output::Builder {
crate::output::export_bundle_output::Builder::default()
}
}
/// <p> Result structure used for requests of project details. </p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DescribeProjectOutput {
/// <p> Detailed information about an AWS Mobile Hub project. </p>
#[doc(hidden)]
pub details: std::option::Option<crate::model::ProjectDetails>,
}
impl DescribeProjectOutput {
/// <p> Detailed information about an AWS Mobile Hub project. </p>
pub fn details(&self) -> std::option::Option<&crate::model::ProjectDetails> {
self.details.as_ref()
}
}
/// See [`DescribeProjectOutput`](crate::output::DescribeProjectOutput).
pub mod describe_project_output {
/// A builder for [`DescribeProjectOutput`](crate::output::DescribeProjectOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) details: std::option::Option<crate::model::ProjectDetails>,
}
impl Builder {
/// <p> Detailed information about an AWS Mobile Hub project. </p>
pub fn details(mut self, input: crate::model::ProjectDetails) -> Self {
self.details = Some(input);
self
}
/// <p> Detailed information about an AWS Mobile Hub project. </p>
pub fn set_details(
mut self,
input: std::option::Option<crate::model::ProjectDetails>,
) -> Self {
self.details = input;
self
}
/// Consumes the builder and constructs a [`DescribeProjectOutput`](crate::output::DescribeProjectOutput).
pub fn build(self) -> crate::output::DescribeProjectOutput {
crate::output::DescribeProjectOutput {
details: self.details,
}
}
}
}
impl DescribeProjectOutput {
/// Creates a new builder-style object to manufacture [`DescribeProjectOutput`](crate::output::DescribeProjectOutput).
pub fn builder() -> crate::output::describe_project_output::Builder {
crate::output::describe_project_output::Builder::default()
}
}
/// <p> Result structure contains the details of the bundle. </p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DescribeBundleOutput {
/// <p> The details of the bundle. </p>
#[doc(hidden)]
pub details: std::option::Option<crate::model::BundleDetails>,
}
impl DescribeBundleOutput {
/// <p> The details of the bundle. </p>
pub fn details(&self) -> std::option::Option<&crate::model::BundleDetails> {
self.details.as_ref()
}
}
/// See [`DescribeBundleOutput`](crate::output::DescribeBundleOutput).
pub mod describe_bundle_output {
/// A builder for [`DescribeBundleOutput`](crate::output::DescribeBundleOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) details: std::option::Option<crate::model::BundleDetails>,
}
impl Builder {
/// <p> The details of the bundle. </p>
pub fn details(mut self, input: crate::model::BundleDetails) -> Self {
self.details = Some(input);
self
}
/// <p> The details of the bundle. </p>
pub fn set_details(
mut self,
input: std::option::Option<crate::model::BundleDetails>,
) -> Self {
self.details = input;
self
}
/// Consumes the builder and constructs a [`DescribeBundleOutput`](crate::output::DescribeBundleOutput).
pub fn build(self) -> crate::output::DescribeBundleOutput {
crate::output::DescribeBundleOutput {
details: self.details,
}
}
}
}
impl DescribeBundleOutput {
/// Creates a new builder-style object to manufacture [`DescribeBundleOutput`](crate::output::DescribeBundleOutput).
pub fn builder() -> crate::output::describe_bundle_output::Builder {
crate::output::describe_bundle_output::Builder::default()
}
}
/// <p> Result structure used in response to request to delete a project. </p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeleteProjectOutput {
/// <p> Resources which were deleted. </p>
#[doc(hidden)]
pub deleted_resources: std::option::Option<std::vec::Vec<crate::model::Resource>>,
/// <p> Resources which were not deleted, due to a risk of losing potentially important data or files. </p>
#[doc(hidden)]
pub orphaned_resources: std::option::Option<std::vec::Vec<crate::model::Resource>>,
}
impl DeleteProjectOutput {
/// <p> Resources which were deleted. </p>
pub fn deleted_resources(&self) -> std::option::Option<&[crate::model::Resource]> {
self.deleted_resources.as_deref()
}
/// <p> Resources which were not deleted, due to a risk of losing potentially important data or files. </p>
pub fn orphaned_resources(&self) -> std::option::Option<&[crate::model::Resource]> {
self.orphaned_resources.as_deref()
}
}
/// See [`DeleteProjectOutput`](crate::output::DeleteProjectOutput).
pub mod delete_project_output {
/// A builder for [`DeleteProjectOutput`](crate::output::DeleteProjectOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) deleted_resources: std::option::Option<std::vec::Vec<crate::model::Resource>>,
pub(crate) orphaned_resources: std::option::Option<std::vec::Vec<crate::model::Resource>>,
}
impl Builder {
/// Appends an item to `deleted_resources`.
///
/// To override the contents of this collection use [`set_deleted_resources`](Self::set_deleted_resources).
///
/// <p> Resources which were deleted. </p>
pub fn deleted_resources(mut self, input: crate::model::Resource) -> Self {
let mut v = self.deleted_resources.unwrap_or_default();
v.push(input);
self.deleted_resources = Some(v);
self
}
/// <p> Resources which were deleted. </p>
pub fn set_deleted_resources(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::Resource>>,
) -> Self {
self.deleted_resources = input;
self
}
/// Appends an item to `orphaned_resources`.
///
/// To override the contents of this collection use [`set_orphaned_resources`](Self::set_orphaned_resources).
///
/// <p> Resources which were not deleted, due to a risk of losing potentially important data or files. </p>
pub fn orphaned_resources(mut self, input: crate::model::Resource) -> Self {
let mut v = self.orphaned_resources.unwrap_or_default();
v.push(input);
self.orphaned_resources = Some(v);
self
}
/// <p> Resources which were not deleted, due to a risk of losing potentially important data or files. </p>
pub fn set_orphaned_resources(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::Resource>>,
) -> Self {
self.orphaned_resources = input;
self
}
/// Consumes the builder and constructs a [`DeleteProjectOutput`](crate::output::DeleteProjectOutput).
pub fn build(self) -> crate::output::DeleteProjectOutput {
crate::output::DeleteProjectOutput {
deleted_resources: self.deleted_resources,
orphaned_resources: self.orphaned_resources,
}
}
}
}
impl DeleteProjectOutput {
/// Creates a new builder-style object to manufacture [`DeleteProjectOutput`](crate::output::DeleteProjectOutput).
pub fn builder() -> crate::output::delete_project_output::Builder {
crate::output::delete_project_output::Builder::default()
}
}
/// <p> Result structure used in response to a request to create a project. </p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct CreateProjectOutput {
/// <p> Detailed information about the created AWS Mobile Hub project. </p>
#[doc(hidden)]
pub details: std::option::Option<crate::model::ProjectDetails>,
}
impl CreateProjectOutput {
/// <p> Detailed information about the created AWS Mobile Hub project. </p>
pub fn details(&self) -> std::option::Option<&crate::model::ProjectDetails> {
self.details.as_ref()
}
}
/// See [`CreateProjectOutput`](crate::output::CreateProjectOutput).
pub mod create_project_output {
/// A builder for [`CreateProjectOutput`](crate::output::CreateProjectOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) details: std::option::Option<crate::model::ProjectDetails>,
}
impl Builder {
/// <p> Detailed information about the created AWS Mobile Hub project. </p>
pub fn details(mut self, input: crate::model::ProjectDetails) -> Self {
self.details = Some(input);
self
}
/// <p> Detailed information about the created AWS Mobile Hub project. </p>
pub fn set_details(
mut self,
input: std::option::Option<crate::model::ProjectDetails>,
) -> Self {
self.details = input;
self
}
/// Consumes the builder and constructs a [`CreateProjectOutput`](crate::output::CreateProjectOutput).
pub fn build(self) -> crate::output::CreateProjectOutput {
crate::output::CreateProjectOutput {
details: self.details,
}
}
}
}
impl CreateProjectOutput {
/// Creates a new builder-style object to manufacture [`CreateProjectOutput`](crate::output::CreateProjectOutput).
pub fn builder() -> crate::output::create_project_output::Builder {
crate::output::create_project_output::Builder::default()
}
}