aws-sdk-appstream 1.112.0

AWS SDK for Amazon AppStream
Documentation
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
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>Describes an image.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Image {
    /// <p>The name of the image.</p>
    pub name: ::std::option::Option<::std::string::String>,
    /// <p>The ARN of the image.</p>
    pub arn: ::std::option::Option<::std::string::String>,
    /// <p>The ARN of the image from which this image was created.</p>
    pub base_image_arn: ::std::option::Option<::std::string::String>,
    /// <p>The image name to display.</p>
    pub display_name: ::std::option::Option<::std::string::String>,
    /// <p>The image starts in the <code>PENDING</code> state. If image creation succeeds, the state is <code>AVAILABLE</code>. If image creation fails, the state is <code>FAILED</code>.</p>
    pub state: ::std::option::Option<crate::types::ImageState>,
    /// <p>Indicates whether the image is public or private.</p>
    pub visibility: ::std::option::Option<crate::types::VisibilityType>,
    /// <p>Indicates whether an image builder can be launched from this image.</p>
    pub image_builder_supported: ::std::option::Option<bool>,
    /// <p>The name of the image builder that was used to create the private image. If the image is shared, copied, or updated by using Managed Image Updates, this value is null.</p>
    pub image_builder_name: ::std::option::Option<::std::string::String>,
    /// <p>The operating system platform of the image.</p>
    pub platform: ::std::option::Option<crate::types::PlatformType>,
    /// <p>The description to display.</p>
    pub description: ::std::option::Option<::std::string::String>,
    /// <p>The reason why the last state change occurred.</p>
    pub state_change_reason: ::std::option::Option<crate::types::ImageStateChangeReason>,
    /// <p>The applications associated with the image.</p>
    pub applications: ::std::option::Option<::std::vec::Vec<crate::types::Application>>,
    /// <p>The time the image was created.</p>
    pub created_time: ::std::option::Option<::aws_smithy_types::DateTime>,
    /// <p>The release date of the public base image. For private images, this date is the release date of the base image from which the image was created.</p>
    pub public_base_image_released_date: ::std::option::Option<::aws_smithy_types::DateTime>,
    /// <p>The version of the WorkSpaces Applications agent to use for instances that are launched from this image.</p>
    pub appstream_agent_version: ::std::option::Option<::std::string::String>,
    /// <p>The permissions to provide to the destination AWS account for the specified image.</p>
    pub image_permissions: ::std::option::Option<crate::types::ImagePermissions>,
    /// <p>Describes the errors that are returned when a new image can't be created.</p>
    pub image_errors: ::std::option::Option<::std::vec::Vec<crate::types::ResourceError>>,
    /// <p>Indicates whether the image is using the latest WorkSpaces Applications agent version or not.</p>
    pub latest_appstream_agent_version: ::std::option::Option<crate::types::LatestAppstreamAgentVersion>,
    /// <p>The supported instances families that determine which image a customer can use when the customer launches a fleet or image builder. The following instances families are supported:</p>
    /// <ul>
    /// <li>
    /// <p>General Purpose</p></li>
    /// <li>
    /// <p>Compute Optimized</p></li>
    /// <li>
    /// <p>Memory Optimized</p></li>
    /// <li>
    /// <p>Graphics G4</p></li>
    /// <li>
    /// <p>Graphics G5</p></li>
    /// <li>
    /// <p>Graphics G6</p></li>
    /// </ul>
    pub supported_instance_families: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
    /// <p>Indicates whether dynamic app providers are enabled within an WorkSpaces Applications image or not.</p>
    pub dynamic_app_providers_enabled: ::std::option::Option<crate::types::DynamicAppProvidersEnabled>,
    /// <p>Indicates whether the image is shared with another account ID.</p>
    pub image_shared_with_others: ::std::option::Option<crate::types::ImageSharedWithOthers>,
    /// <p>Indicates whether the image includes license-included applications.</p>
    pub managed_software_included: ::std::option::Option<bool>,
    /// <p>The type of the image. Images created through AMI import have type "custom", while WorkSpaces Applications provided images have type "native". Custom images support additional instance types including GeneralPurpose, MemoryOptimized, ComputeOptimized, and Accelerated instance families.</p>
    pub image_type: ::std::option::Option<crate::types::ImageType>,
}
impl Image {
    /// <p>The name of the image.</p>
    pub fn name(&self) -> ::std::option::Option<&str> {
        self.name.as_deref()
    }
    /// <p>The ARN of the image.</p>
    pub fn arn(&self) -> ::std::option::Option<&str> {
        self.arn.as_deref()
    }
    /// <p>The ARN of the image from which this image was created.</p>
    pub fn base_image_arn(&self) -> ::std::option::Option<&str> {
        self.base_image_arn.as_deref()
    }
    /// <p>The image name to display.</p>
    pub fn display_name(&self) -> ::std::option::Option<&str> {
        self.display_name.as_deref()
    }
    /// <p>The image starts in the <code>PENDING</code> state. If image creation succeeds, the state is <code>AVAILABLE</code>. If image creation fails, the state is <code>FAILED</code>.</p>
    pub fn state(&self) -> ::std::option::Option<&crate::types::ImageState> {
        self.state.as_ref()
    }
    /// <p>Indicates whether the image is public or private.</p>
    pub fn visibility(&self) -> ::std::option::Option<&crate::types::VisibilityType> {
        self.visibility.as_ref()
    }
    /// <p>Indicates whether an image builder can be launched from this image.</p>
    pub fn image_builder_supported(&self) -> ::std::option::Option<bool> {
        self.image_builder_supported
    }
    /// <p>The name of the image builder that was used to create the private image. If the image is shared, copied, or updated by using Managed Image Updates, this value is null.</p>
    pub fn image_builder_name(&self) -> ::std::option::Option<&str> {
        self.image_builder_name.as_deref()
    }
    /// <p>The operating system platform of the image.</p>
    pub fn platform(&self) -> ::std::option::Option<&crate::types::PlatformType> {
        self.platform.as_ref()
    }
    /// <p>The description to display.</p>
    pub fn description(&self) -> ::std::option::Option<&str> {
        self.description.as_deref()
    }
    /// <p>The reason why the last state change occurred.</p>
    pub fn state_change_reason(&self) -> ::std::option::Option<&crate::types::ImageStateChangeReason> {
        self.state_change_reason.as_ref()
    }
    /// <p>The applications associated with the image.</p>
    ///
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.applications.is_none()`.
    pub fn applications(&self) -> &[crate::types::Application] {
        self.applications.as_deref().unwrap_or_default()
    }
    /// <p>The time the image was created.</p>
    pub fn created_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
        self.created_time.as_ref()
    }
    /// <p>The release date of the public base image. For private images, this date is the release date of the base image from which the image was created.</p>
    pub fn public_base_image_released_date(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
        self.public_base_image_released_date.as_ref()
    }
    /// <p>The version of the WorkSpaces Applications agent to use for instances that are launched from this image.</p>
    pub fn appstream_agent_version(&self) -> ::std::option::Option<&str> {
        self.appstream_agent_version.as_deref()
    }
    /// <p>The permissions to provide to the destination AWS account for the specified image.</p>
    pub fn image_permissions(&self) -> ::std::option::Option<&crate::types::ImagePermissions> {
        self.image_permissions.as_ref()
    }
    /// <p>Describes the errors that are returned when a new image can't be created.</p>
    ///
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.image_errors.is_none()`.
    pub fn image_errors(&self) -> &[crate::types::ResourceError] {
        self.image_errors.as_deref().unwrap_or_default()
    }
    /// <p>Indicates whether the image is using the latest WorkSpaces Applications agent version or not.</p>
    pub fn latest_appstream_agent_version(&self) -> ::std::option::Option<&crate::types::LatestAppstreamAgentVersion> {
        self.latest_appstream_agent_version.as_ref()
    }
    /// <p>The supported instances families that determine which image a customer can use when the customer launches a fleet or image builder. The following instances families are supported:</p>
    /// <ul>
    /// <li>
    /// <p>General Purpose</p></li>
    /// <li>
    /// <p>Compute Optimized</p></li>
    /// <li>
    /// <p>Memory Optimized</p></li>
    /// <li>
    /// <p>Graphics G4</p></li>
    /// <li>
    /// <p>Graphics G5</p></li>
    /// <li>
    /// <p>Graphics G6</p></li>
    /// </ul>
    ///
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.supported_instance_families.is_none()`.
    pub fn supported_instance_families(&self) -> &[::std::string::String] {
        self.supported_instance_families.as_deref().unwrap_or_default()
    }
    /// <p>Indicates whether dynamic app providers are enabled within an WorkSpaces Applications image or not.</p>
    pub fn dynamic_app_providers_enabled(&self) -> ::std::option::Option<&crate::types::DynamicAppProvidersEnabled> {
        self.dynamic_app_providers_enabled.as_ref()
    }
    /// <p>Indicates whether the image is shared with another account ID.</p>
    pub fn image_shared_with_others(&self) -> ::std::option::Option<&crate::types::ImageSharedWithOthers> {
        self.image_shared_with_others.as_ref()
    }
    /// <p>Indicates whether the image includes license-included applications.</p>
    pub fn managed_software_included(&self) -> ::std::option::Option<bool> {
        self.managed_software_included
    }
    /// <p>The type of the image. Images created through AMI import have type "custom", while WorkSpaces Applications provided images have type "native". Custom images support additional instance types including GeneralPurpose, MemoryOptimized, ComputeOptimized, and Accelerated instance families.</p>
    pub fn image_type(&self) -> ::std::option::Option<&crate::types::ImageType> {
        self.image_type.as_ref()
    }
}
impl Image {
    /// Creates a new builder-style object to manufacture [`Image`](crate::types::Image).
    pub fn builder() -> crate::types::builders::ImageBuilder {
        crate::types::builders::ImageBuilder::default()
    }
}

/// A builder for [`Image`](crate::types::Image).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct ImageBuilder {
    pub(crate) name: ::std::option::Option<::std::string::String>,
    pub(crate) arn: ::std::option::Option<::std::string::String>,
    pub(crate) base_image_arn: ::std::option::Option<::std::string::String>,
    pub(crate) display_name: ::std::option::Option<::std::string::String>,
    pub(crate) state: ::std::option::Option<crate::types::ImageState>,
    pub(crate) visibility: ::std::option::Option<crate::types::VisibilityType>,
    pub(crate) image_builder_supported: ::std::option::Option<bool>,
    pub(crate) image_builder_name: ::std::option::Option<::std::string::String>,
    pub(crate) platform: ::std::option::Option<crate::types::PlatformType>,
    pub(crate) description: ::std::option::Option<::std::string::String>,
    pub(crate) state_change_reason: ::std::option::Option<crate::types::ImageStateChangeReason>,
    pub(crate) applications: ::std::option::Option<::std::vec::Vec<crate::types::Application>>,
    pub(crate) created_time: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) public_base_image_released_date: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) appstream_agent_version: ::std::option::Option<::std::string::String>,
    pub(crate) image_permissions: ::std::option::Option<crate::types::ImagePermissions>,
    pub(crate) image_errors: ::std::option::Option<::std::vec::Vec<crate::types::ResourceError>>,
    pub(crate) latest_appstream_agent_version: ::std::option::Option<crate::types::LatestAppstreamAgentVersion>,
    pub(crate) supported_instance_families: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
    pub(crate) dynamic_app_providers_enabled: ::std::option::Option<crate::types::DynamicAppProvidersEnabled>,
    pub(crate) image_shared_with_others: ::std::option::Option<crate::types::ImageSharedWithOthers>,
    pub(crate) managed_software_included: ::std::option::Option<bool>,
    pub(crate) image_type: ::std::option::Option<crate::types::ImageType>,
}
impl ImageBuilder {
    /// <p>The name of the image.</p>
    /// This field is required.
    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the image.</p>
    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.name = input;
        self
    }
    /// <p>The name of the image.</p>
    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.name
    }
    /// <p>The ARN of the image.</p>
    pub fn arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ARN of the image.</p>
    pub fn set_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.arn = input;
        self
    }
    /// <p>The ARN of the image.</p>
    pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.arn
    }
    /// <p>The ARN of the image from which this image was created.</p>
    pub fn base_image_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.base_image_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ARN of the image from which this image was created.</p>
    pub fn set_base_image_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.base_image_arn = input;
        self
    }
    /// <p>The ARN of the image from which this image was created.</p>
    pub fn get_base_image_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.base_image_arn
    }
    /// <p>The image name to display.</p>
    pub fn display_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.display_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The image name to display.</p>
    pub fn set_display_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.display_name = input;
        self
    }
    /// <p>The image name to display.</p>
    pub fn get_display_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.display_name
    }
    /// <p>The image starts in the <code>PENDING</code> state. If image creation succeeds, the state is <code>AVAILABLE</code>. If image creation fails, the state is <code>FAILED</code>.</p>
    pub fn state(mut self, input: crate::types::ImageState) -> Self {
        self.state = ::std::option::Option::Some(input);
        self
    }
    /// <p>The image starts in the <code>PENDING</code> state. If image creation succeeds, the state is <code>AVAILABLE</code>. If image creation fails, the state is <code>FAILED</code>.</p>
    pub fn set_state(mut self, input: ::std::option::Option<crate::types::ImageState>) -> Self {
        self.state = input;
        self
    }
    /// <p>The image starts in the <code>PENDING</code> state. If image creation succeeds, the state is <code>AVAILABLE</code>. If image creation fails, the state is <code>FAILED</code>.</p>
    pub fn get_state(&self) -> &::std::option::Option<crate::types::ImageState> {
        &self.state
    }
    /// <p>Indicates whether the image is public or private.</p>
    pub fn visibility(mut self, input: crate::types::VisibilityType) -> Self {
        self.visibility = ::std::option::Option::Some(input);
        self
    }
    /// <p>Indicates whether the image is public or private.</p>
    pub fn set_visibility(mut self, input: ::std::option::Option<crate::types::VisibilityType>) -> Self {
        self.visibility = input;
        self
    }
    /// <p>Indicates whether the image is public or private.</p>
    pub fn get_visibility(&self) -> &::std::option::Option<crate::types::VisibilityType> {
        &self.visibility
    }
    /// <p>Indicates whether an image builder can be launched from this image.</p>
    pub fn image_builder_supported(mut self, input: bool) -> Self {
        self.image_builder_supported = ::std::option::Option::Some(input);
        self
    }
    /// <p>Indicates whether an image builder can be launched from this image.</p>
    pub fn set_image_builder_supported(mut self, input: ::std::option::Option<bool>) -> Self {
        self.image_builder_supported = input;
        self
    }
    /// <p>Indicates whether an image builder can be launched from this image.</p>
    pub fn get_image_builder_supported(&self) -> &::std::option::Option<bool> {
        &self.image_builder_supported
    }
    /// <p>The name of the image builder that was used to create the private image. If the image is shared, copied, or updated by using Managed Image Updates, this value is null.</p>
    pub fn image_builder_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.image_builder_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the image builder that was used to create the private image. If the image is shared, copied, or updated by using Managed Image Updates, this value is null.</p>
    pub fn set_image_builder_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.image_builder_name = input;
        self
    }
    /// <p>The name of the image builder that was used to create the private image. If the image is shared, copied, or updated by using Managed Image Updates, this value is null.</p>
    pub fn get_image_builder_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.image_builder_name
    }
    /// <p>The operating system platform of the image.</p>
    pub fn platform(mut self, input: crate::types::PlatformType) -> Self {
        self.platform = ::std::option::Option::Some(input);
        self
    }
    /// <p>The operating system platform of the image.</p>
    pub fn set_platform(mut self, input: ::std::option::Option<crate::types::PlatformType>) -> Self {
        self.platform = input;
        self
    }
    /// <p>The operating system platform of the image.</p>
    pub fn get_platform(&self) -> &::std::option::Option<crate::types::PlatformType> {
        &self.platform
    }
    /// <p>The description to display.</p>
    pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.description = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The description to display.</p>
    pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.description = input;
        self
    }
    /// <p>The description to display.</p>
    pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
        &self.description
    }
    /// <p>The reason why the last state change occurred.</p>
    pub fn state_change_reason(mut self, input: crate::types::ImageStateChangeReason) -> Self {
        self.state_change_reason = ::std::option::Option::Some(input);
        self
    }
    /// <p>The reason why the last state change occurred.</p>
    pub fn set_state_change_reason(mut self, input: ::std::option::Option<crate::types::ImageStateChangeReason>) -> Self {
        self.state_change_reason = input;
        self
    }
    /// <p>The reason why the last state change occurred.</p>
    pub fn get_state_change_reason(&self) -> &::std::option::Option<crate::types::ImageStateChangeReason> {
        &self.state_change_reason
    }
    /// Appends an item to `applications`.
    ///
    /// To override the contents of this collection use [`set_applications`](Self::set_applications).
    ///
    /// <p>The applications associated with the image.</p>
    pub fn applications(mut self, input: crate::types::Application) -> Self {
        let mut v = self.applications.unwrap_or_default();
        v.push(input);
        self.applications = ::std::option::Option::Some(v);
        self
    }
    /// <p>The applications associated with the image.</p>
    pub fn set_applications(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Application>>) -> Self {
        self.applications = input;
        self
    }
    /// <p>The applications associated with the image.</p>
    pub fn get_applications(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Application>> {
        &self.applications
    }
    /// <p>The time the image was created.</p>
    pub fn created_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.created_time = ::std::option::Option::Some(input);
        self
    }
    /// <p>The time the image was created.</p>
    pub fn set_created_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.created_time = input;
        self
    }
    /// <p>The time the image was created.</p>
    pub fn get_created_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.created_time
    }
    /// <p>The release date of the public base image. For private images, this date is the release date of the base image from which the image was created.</p>
    pub fn public_base_image_released_date(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.public_base_image_released_date = ::std::option::Option::Some(input);
        self
    }
    /// <p>The release date of the public base image. For private images, this date is the release date of the base image from which the image was created.</p>
    pub fn set_public_base_image_released_date(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.public_base_image_released_date = input;
        self
    }
    /// <p>The release date of the public base image. For private images, this date is the release date of the base image from which the image was created.</p>
    pub fn get_public_base_image_released_date(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.public_base_image_released_date
    }
    /// <p>The version of the WorkSpaces Applications agent to use for instances that are launched from this image.</p>
    pub fn appstream_agent_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.appstream_agent_version = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The version of the WorkSpaces Applications agent to use for instances that are launched from this image.</p>
    pub fn set_appstream_agent_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.appstream_agent_version = input;
        self
    }
    /// <p>The version of the WorkSpaces Applications agent to use for instances that are launched from this image.</p>
    pub fn get_appstream_agent_version(&self) -> &::std::option::Option<::std::string::String> {
        &self.appstream_agent_version
    }
    /// <p>The permissions to provide to the destination AWS account for the specified image.</p>
    pub fn image_permissions(mut self, input: crate::types::ImagePermissions) -> Self {
        self.image_permissions = ::std::option::Option::Some(input);
        self
    }
    /// <p>The permissions to provide to the destination AWS account for the specified image.</p>
    pub fn set_image_permissions(mut self, input: ::std::option::Option<crate::types::ImagePermissions>) -> Self {
        self.image_permissions = input;
        self
    }
    /// <p>The permissions to provide to the destination AWS account for the specified image.</p>
    pub fn get_image_permissions(&self) -> &::std::option::Option<crate::types::ImagePermissions> {
        &self.image_permissions
    }
    /// Appends an item to `image_errors`.
    ///
    /// To override the contents of this collection use [`set_image_errors`](Self::set_image_errors).
    ///
    /// <p>Describes the errors that are returned when a new image can't be created.</p>
    pub fn image_errors(mut self, input: crate::types::ResourceError) -> Self {
        let mut v = self.image_errors.unwrap_or_default();
        v.push(input);
        self.image_errors = ::std::option::Option::Some(v);
        self
    }
    /// <p>Describes the errors that are returned when a new image can't be created.</p>
    pub fn set_image_errors(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::ResourceError>>) -> Self {
        self.image_errors = input;
        self
    }
    /// <p>Describes the errors that are returned when a new image can't be created.</p>
    pub fn get_image_errors(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ResourceError>> {
        &self.image_errors
    }
    /// <p>Indicates whether the image is using the latest WorkSpaces Applications agent version or not.</p>
    pub fn latest_appstream_agent_version(mut self, input: crate::types::LatestAppstreamAgentVersion) -> Self {
        self.latest_appstream_agent_version = ::std::option::Option::Some(input);
        self
    }
    /// <p>Indicates whether the image is using the latest WorkSpaces Applications agent version or not.</p>
    pub fn set_latest_appstream_agent_version(mut self, input: ::std::option::Option<crate::types::LatestAppstreamAgentVersion>) -> Self {
        self.latest_appstream_agent_version = input;
        self
    }
    /// <p>Indicates whether the image is using the latest WorkSpaces Applications agent version or not.</p>
    pub fn get_latest_appstream_agent_version(&self) -> &::std::option::Option<crate::types::LatestAppstreamAgentVersion> {
        &self.latest_appstream_agent_version
    }
    /// Appends an item to `supported_instance_families`.
    ///
    /// To override the contents of this collection use [`set_supported_instance_families`](Self::set_supported_instance_families).
    ///
    /// <p>The supported instances families that determine which image a customer can use when the customer launches a fleet or image builder. The following instances families are supported:</p>
    /// <ul>
    /// <li>
    /// <p>General Purpose</p></li>
    /// <li>
    /// <p>Compute Optimized</p></li>
    /// <li>
    /// <p>Memory Optimized</p></li>
    /// <li>
    /// <p>Graphics G4</p></li>
    /// <li>
    /// <p>Graphics G5</p></li>
    /// <li>
    /// <p>Graphics G6</p></li>
    /// </ul>
    pub fn supported_instance_families(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        let mut v = self.supported_instance_families.unwrap_or_default();
        v.push(input.into());
        self.supported_instance_families = ::std::option::Option::Some(v);
        self
    }
    /// <p>The supported instances families that determine which image a customer can use when the customer launches a fleet or image builder. The following instances families are supported:</p>
    /// <ul>
    /// <li>
    /// <p>General Purpose</p></li>
    /// <li>
    /// <p>Compute Optimized</p></li>
    /// <li>
    /// <p>Memory Optimized</p></li>
    /// <li>
    /// <p>Graphics G4</p></li>
    /// <li>
    /// <p>Graphics G5</p></li>
    /// <li>
    /// <p>Graphics G6</p></li>
    /// </ul>
    pub fn set_supported_instance_families(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
        self.supported_instance_families = input;
        self
    }
    /// <p>The supported instances families that determine which image a customer can use when the customer launches a fleet or image builder. The following instances families are supported:</p>
    /// <ul>
    /// <li>
    /// <p>General Purpose</p></li>
    /// <li>
    /// <p>Compute Optimized</p></li>
    /// <li>
    /// <p>Memory Optimized</p></li>
    /// <li>
    /// <p>Graphics G4</p></li>
    /// <li>
    /// <p>Graphics G5</p></li>
    /// <li>
    /// <p>Graphics G6</p></li>
    /// </ul>
    pub fn get_supported_instance_families(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
        &self.supported_instance_families
    }
    /// <p>Indicates whether dynamic app providers are enabled within an WorkSpaces Applications image or not.</p>
    pub fn dynamic_app_providers_enabled(mut self, input: crate::types::DynamicAppProvidersEnabled) -> Self {
        self.dynamic_app_providers_enabled = ::std::option::Option::Some(input);
        self
    }
    /// <p>Indicates whether dynamic app providers are enabled within an WorkSpaces Applications image or not.</p>
    pub fn set_dynamic_app_providers_enabled(mut self, input: ::std::option::Option<crate::types::DynamicAppProvidersEnabled>) -> Self {
        self.dynamic_app_providers_enabled = input;
        self
    }
    /// <p>Indicates whether dynamic app providers are enabled within an WorkSpaces Applications image or not.</p>
    pub fn get_dynamic_app_providers_enabled(&self) -> &::std::option::Option<crate::types::DynamicAppProvidersEnabled> {
        &self.dynamic_app_providers_enabled
    }
    /// <p>Indicates whether the image is shared with another account ID.</p>
    pub fn image_shared_with_others(mut self, input: crate::types::ImageSharedWithOthers) -> Self {
        self.image_shared_with_others = ::std::option::Option::Some(input);
        self
    }
    /// <p>Indicates whether the image is shared with another account ID.</p>
    pub fn set_image_shared_with_others(mut self, input: ::std::option::Option<crate::types::ImageSharedWithOthers>) -> Self {
        self.image_shared_with_others = input;
        self
    }
    /// <p>Indicates whether the image is shared with another account ID.</p>
    pub fn get_image_shared_with_others(&self) -> &::std::option::Option<crate::types::ImageSharedWithOthers> {
        &self.image_shared_with_others
    }
    /// <p>Indicates whether the image includes license-included applications.</p>
    pub fn managed_software_included(mut self, input: bool) -> Self {
        self.managed_software_included = ::std::option::Option::Some(input);
        self
    }
    /// <p>Indicates whether the image includes license-included applications.</p>
    pub fn set_managed_software_included(mut self, input: ::std::option::Option<bool>) -> Self {
        self.managed_software_included = input;
        self
    }
    /// <p>Indicates whether the image includes license-included applications.</p>
    pub fn get_managed_software_included(&self) -> &::std::option::Option<bool> {
        &self.managed_software_included
    }
    /// <p>The type of the image. Images created through AMI import have type "custom", while WorkSpaces Applications provided images have type "native". Custom images support additional instance types including GeneralPurpose, MemoryOptimized, ComputeOptimized, and Accelerated instance families.</p>
    pub fn image_type(mut self, input: crate::types::ImageType) -> Self {
        self.image_type = ::std::option::Option::Some(input);
        self
    }
    /// <p>The type of the image. Images created through AMI import have type "custom", while WorkSpaces Applications provided images have type "native". Custom images support additional instance types including GeneralPurpose, MemoryOptimized, ComputeOptimized, and Accelerated instance families.</p>
    pub fn set_image_type(mut self, input: ::std::option::Option<crate::types::ImageType>) -> Self {
        self.image_type = input;
        self
    }
    /// <p>The type of the image. Images created through AMI import have type "custom", while WorkSpaces Applications provided images have type "native". Custom images support additional instance types including GeneralPurpose, MemoryOptimized, ComputeOptimized, and Accelerated instance families.</p>
    pub fn get_image_type(&self) -> &::std::option::Option<crate::types::ImageType> {
        &self.image_type
    }
    /// Consumes the builder and constructs a [`Image`](crate::types::Image).
    pub fn build(self) -> crate::types::Image {
        crate::types::Image {
            name: self.name,
            arn: self.arn,
            base_image_arn: self.base_image_arn,
            display_name: self.display_name,
            state: self.state,
            visibility: self.visibility,
            image_builder_supported: self.image_builder_supported,
            image_builder_name: self.image_builder_name,
            platform: self.platform,
            description: self.description,
            state_change_reason: self.state_change_reason,
            applications: self.applications,
            created_time: self.created_time,
            public_base_image_released_date: self.public_base_image_released_date,
            appstream_agent_version: self.appstream_agent_version,
            image_permissions: self.image_permissions,
            image_errors: self.image_errors,
            latest_appstream_agent_version: self.latest_appstream_agent_version,
            supported_instance_families: self.supported_instance_families,
            dynamic_app_providers_enabled: self.dynamic_app_providers_enabled,
            image_shared_with_others: self.image_shared_with_others,
            managed_software_included: self.managed_software_included,
            image_type: self.image_type,
        }
    }
}