aws-sdk-lightsail 1.107.0

AWS SDK for Amazon Lightsail
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
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>Describes a block storage disk.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Disk {
    /// <p>The unique name of the disk.</p>
    pub name: ::std::option::Option<::std::string::String>,
    /// <p>The Amazon Resource Name (ARN) of the disk.</p>
    pub arn: ::std::option::Option<::std::string::String>,
    /// <p>The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.</p>
    pub support_code: ::std::option::Option<::std::string::String>,
    /// <p>The date when the disk was created.</p>
    pub created_at: ::std::option::Option<::aws_smithy_types::DateTime>,
    /// <p>The AWS Region and Availability Zone where the disk is located.</p>
    pub location: ::std::option::Option<crate::types::ResourceLocation>,
    /// <p>The Lightsail resource type (<code>Disk</code>).</p>
    pub resource_type: ::std::option::Option<crate::types::ResourceType>,
    /// <p>The tag keys and optional values for the resource. For more information about tags in Lightsail, see the <a href="https://docs.aws.amazon.com/lightsail/latest/userguide/amazon-lightsail-tags">Amazon Lightsail Developer Guide</a>.</p>
    pub tags: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>,
    /// <p>An array of objects representing the add-ons enabled on the disk.</p>
    pub add_ons: ::std::option::Option<::std::vec::Vec<crate::types::AddOn>>,
    /// <p>The size of the disk in GB.</p>
    pub size_in_gb: ::std::option::Option<i32>,
    /// <p>A Boolean value indicating whether this disk is a system disk (has an operating system loaded on it).</p>
    pub is_system_disk: ::std::option::Option<bool>,
    /// <p>The input/output operations per second (IOPS) of the disk.</p>
    pub iops: ::std::option::Option<i32>,
    /// <p>The disk path.</p>
    pub path: ::std::option::Option<::std::string::String>,
    /// <p>Describes the status of the disk.</p>
    pub state: ::std::option::Option<crate::types::DiskState>,
    /// <p>The resources to which the disk is attached.</p>
    pub attached_to: ::std::option::Option<::std::string::String>,
    /// <p>A Boolean value indicating whether the disk is attached.</p>
    pub is_attached: ::std::option::Option<bool>,
    /// <p>(Discontinued) The attachment state of the disk.</p><note>
    /// <p>In releases prior to November 14, 2017, this parameter returned <code>attached</code> for system disks in the API response. It is now discontinued, but still included in the response. Use <code>isAttached</code> instead.</p>
    /// </note>
    #[deprecated]
    pub attachment_state: ::std::option::Option<::std::string::String>,
    /// <p>(Discontinued) The number of GB in use by the disk.</p><note>
    /// <p>In releases prior to November 14, 2017, this parameter was not included in the API response. It is now discontinued.</p>
    /// </note>
    #[deprecated]
    pub gb_in_use: ::std::option::Option<i32>,
    /// <p>The status of automatically mounting a storage disk to a virtual computer.</p><important>
    /// <p>This parameter only applies to Lightsail for Research resources.</p>
    /// </important>
    pub auto_mount_status: ::std::option::Option<crate::types::AutoMountStatus>,
}
impl Disk {
    /// <p>The unique name of the disk.</p>
    pub fn name(&self) -> ::std::option::Option<&str> {
        self.name.as_deref()
    }
    /// <p>The Amazon Resource Name (ARN) of the disk.</p>
    pub fn arn(&self) -> ::std::option::Option<&str> {
        self.arn.as_deref()
    }
    /// <p>The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.</p>
    pub fn support_code(&self) -> ::std::option::Option<&str> {
        self.support_code.as_deref()
    }
    /// <p>The date when the disk was created.</p>
    pub fn created_at(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
        self.created_at.as_ref()
    }
    /// <p>The AWS Region and Availability Zone where the disk is located.</p>
    pub fn location(&self) -> ::std::option::Option<&crate::types::ResourceLocation> {
        self.location.as_ref()
    }
    /// <p>The Lightsail resource type (<code>Disk</code>).</p>
    pub fn resource_type(&self) -> ::std::option::Option<&crate::types::ResourceType> {
        self.resource_type.as_ref()
    }
    /// <p>The tag keys and optional values for the resource. For more information about tags in Lightsail, see the <a href="https://docs.aws.amazon.com/lightsail/latest/userguide/amazon-lightsail-tags">Amazon Lightsail Developer Guide</a>.</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 `.tags.is_none()`.
    pub fn tags(&self) -> &[crate::types::Tag] {
        self.tags.as_deref().unwrap_or_default()
    }
    /// <p>An array of objects representing the add-ons enabled on the disk.</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 `.add_ons.is_none()`.
    pub fn add_ons(&self) -> &[crate::types::AddOn] {
        self.add_ons.as_deref().unwrap_or_default()
    }
    /// <p>The size of the disk in GB.</p>
    pub fn size_in_gb(&self) -> ::std::option::Option<i32> {
        self.size_in_gb
    }
    /// <p>A Boolean value indicating whether this disk is a system disk (has an operating system loaded on it).</p>
    pub fn is_system_disk(&self) -> ::std::option::Option<bool> {
        self.is_system_disk
    }
    /// <p>The input/output operations per second (IOPS) of the disk.</p>
    pub fn iops(&self) -> ::std::option::Option<i32> {
        self.iops
    }
    /// <p>The disk path.</p>
    pub fn path(&self) -> ::std::option::Option<&str> {
        self.path.as_deref()
    }
    /// <p>Describes the status of the disk.</p>
    pub fn state(&self) -> ::std::option::Option<&crate::types::DiskState> {
        self.state.as_ref()
    }
    /// <p>The resources to which the disk is attached.</p>
    pub fn attached_to(&self) -> ::std::option::Option<&str> {
        self.attached_to.as_deref()
    }
    /// <p>A Boolean value indicating whether the disk is attached.</p>
    pub fn is_attached(&self) -> ::std::option::Option<bool> {
        self.is_attached
    }
    /// <p>(Discontinued) The attachment state of the disk.</p><note>
    /// <p>In releases prior to November 14, 2017, this parameter returned <code>attached</code> for system disks in the API response. It is now discontinued, but still included in the response. Use <code>isAttached</code> instead.</p>
    /// </note>
    #[deprecated]
    pub fn attachment_state(&self) -> ::std::option::Option<&str> {
        self.attachment_state.as_deref()
    }
    /// <p>(Discontinued) The number of GB in use by the disk.</p><note>
    /// <p>In releases prior to November 14, 2017, this parameter was not included in the API response. It is now discontinued.</p>
    /// </note>
    #[deprecated]
    pub fn gb_in_use(&self) -> ::std::option::Option<i32> {
        self.gb_in_use
    }
    /// <p>The status of automatically mounting a storage disk to a virtual computer.</p><important>
    /// <p>This parameter only applies to Lightsail for Research resources.</p>
    /// </important>
    pub fn auto_mount_status(&self) -> ::std::option::Option<&crate::types::AutoMountStatus> {
        self.auto_mount_status.as_ref()
    }
}
impl Disk {
    /// Creates a new builder-style object to manufacture [`Disk`](crate::types::Disk).
    pub fn builder() -> crate::types::builders::DiskBuilder {
        crate::types::builders::DiskBuilder::default()
    }
}

/// A builder for [`Disk`](crate::types::Disk).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DiskBuilder {
    pub(crate) name: ::std::option::Option<::std::string::String>,
    pub(crate) arn: ::std::option::Option<::std::string::String>,
    pub(crate) support_code: ::std::option::Option<::std::string::String>,
    pub(crate) created_at: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) location: ::std::option::Option<crate::types::ResourceLocation>,
    pub(crate) resource_type: ::std::option::Option<crate::types::ResourceType>,
    pub(crate) tags: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>,
    pub(crate) add_ons: ::std::option::Option<::std::vec::Vec<crate::types::AddOn>>,
    pub(crate) size_in_gb: ::std::option::Option<i32>,
    pub(crate) is_system_disk: ::std::option::Option<bool>,
    pub(crate) iops: ::std::option::Option<i32>,
    pub(crate) path: ::std::option::Option<::std::string::String>,
    pub(crate) state: ::std::option::Option<crate::types::DiskState>,
    pub(crate) attached_to: ::std::option::Option<::std::string::String>,
    pub(crate) is_attached: ::std::option::Option<bool>,
    pub(crate) attachment_state: ::std::option::Option<::std::string::String>,
    pub(crate) gb_in_use: ::std::option::Option<i32>,
    pub(crate) auto_mount_status: ::std::option::Option<crate::types::AutoMountStatus>,
}
impl DiskBuilder {
    /// <p>The unique name of the disk.</p>
    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 unique name of the disk.</p>
    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.name = input;
        self
    }
    /// <p>The unique name of the disk.</p>
    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.name
    }
    /// <p>The Amazon Resource Name (ARN) of the disk.</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 Amazon Resource Name (ARN) of the disk.</p>
    pub fn set_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.arn = input;
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the disk.</p>
    pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.arn
    }
    /// <p>The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.</p>
    pub fn support_code(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.support_code = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.</p>
    pub fn set_support_code(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.support_code = input;
        self
    }
    /// <p>The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.</p>
    pub fn get_support_code(&self) -> &::std::option::Option<::std::string::String> {
        &self.support_code
    }
    /// <p>The date when the disk was created.</p>
    pub fn created_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.created_at = ::std::option::Option::Some(input);
        self
    }
    /// <p>The date when the disk was created.</p>
    pub fn set_created_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.created_at = input;
        self
    }
    /// <p>The date when the disk was created.</p>
    pub fn get_created_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.created_at
    }
    /// <p>The AWS Region and Availability Zone where the disk is located.</p>
    pub fn location(mut self, input: crate::types::ResourceLocation) -> Self {
        self.location = ::std::option::Option::Some(input);
        self
    }
    /// <p>The AWS Region and Availability Zone where the disk is located.</p>
    pub fn set_location(mut self, input: ::std::option::Option<crate::types::ResourceLocation>) -> Self {
        self.location = input;
        self
    }
    /// <p>The AWS Region and Availability Zone where the disk is located.</p>
    pub fn get_location(&self) -> &::std::option::Option<crate::types::ResourceLocation> {
        &self.location
    }
    /// <p>The Lightsail resource type (<code>Disk</code>).</p>
    pub fn resource_type(mut self, input: crate::types::ResourceType) -> Self {
        self.resource_type = ::std::option::Option::Some(input);
        self
    }
    /// <p>The Lightsail resource type (<code>Disk</code>).</p>
    pub fn set_resource_type(mut self, input: ::std::option::Option<crate::types::ResourceType>) -> Self {
        self.resource_type = input;
        self
    }
    /// <p>The Lightsail resource type (<code>Disk</code>).</p>
    pub fn get_resource_type(&self) -> &::std::option::Option<crate::types::ResourceType> {
        &self.resource_type
    }
    /// Appends an item to `tags`.
    ///
    /// To override the contents of this collection use [`set_tags`](Self::set_tags).
    ///
    /// <p>The tag keys and optional values for the resource. For more information about tags in Lightsail, see the <a href="https://docs.aws.amazon.com/lightsail/latest/userguide/amazon-lightsail-tags">Amazon Lightsail Developer Guide</a>.</p>
    pub fn tags(mut self, input: crate::types::Tag) -> Self {
        let mut v = self.tags.unwrap_or_default();
        v.push(input);
        self.tags = ::std::option::Option::Some(v);
        self
    }
    /// <p>The tag keys and optional values for the resource. For more information about tags in Lightsail, see the <a href="https://docs.aws.amazon.com/lightsail/latest/userguide/amazon-lightsail-tags">Amazon Lightsail Developer Guide</a>.</p>
    pub fn set_tags(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>) -> Self {
        self.tags = input;
        self
    }
    /// <p>The tag keys and optional values for the resource. For more information about tags in Lightsail, see the <a href="https://docs.aws.amazon.com/lightsail/latest/userguide/amazon-lightsail-tags">Amazon Lightsail Developer Guide</a>.</p>
    pub fn get_tags(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Tag>> {
        &self.tags
    }
    /// Appends an item to `add_ons`.
    ///
    /// To override the contents of this collection use [`set_add_ons`](Self::set_add_ons).
    ///
    /// <p>An array of objects representing the add-ons enabled on the disk.</p>
    pub fn add_ons(mut self, input: crate::types::AddOn) -> Self {
        let mut v = self.add_ons.unwrap_or_default();
        v.push(input);
        self.add_ons = ::std::option::Option::Some(v);
        self
    }
    /// <p>An array of objects representing the add-ons enabled on the disk.</p>
    pub fn set_add_ons(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::AddOn>>) -> Self {
        self.add_ons = input;
        self
    }
    /// <p>An array of objects representing the add-ons enabled on the disk.</p>
    pub fn get_add_ons(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::AddOn>> {
        &self.add_ons
    }
    /// <p>The size of the disk in GB.</p>
    pub fn size_in_gb(mut self, input: i32) -> Self {
        self.size_in_gb = ::std::option::Option::Some(input);
        self
    }
    /// <p>The size of the disk in GB.</p>
    pub fn set_size_in_gb(mut self, input: ::std::option::Option<i32>) -> Self {
        self.size_in_gb = input;
        self
    }
    /// <p>The size of the disk in GB.</p>
    pub fn get_size_in_gb(&self) -> &::std::option::Option<i32> {
        &self.size_in_gb
    }
    /// <p>A Boolean value indicating whether this disk is a system disk (has an operating system loaded on it).</p>
    pub fn is_system_disk(mut self, input: bool) -> Self {
        self.is_system_disk = ::std::option::Option::Some(input);
        self
    }
    /// <p>A Boolean value indicating whether this disk is a system disk (has an operating system loaded on it).</p>
    pub fn set_is_system_disk(mut self, input: ::std::option::Option<bool>) -> Self {
        self.is_system_disk = input;
        self
    }
    /// <p>A Boolean value indicating whether this disk is a system disk (has an operating system loaded on it).</p>
    pub fn get_is_system_disk(&self) -> &::std::option::Option<bool> {
        &self.is_system_disk
    }
    /// <p>The input/output operations per second (IOPS) of the disk.</p>
    pub fn iops(mut self, input: i32) -> Self {
        self.iops = ::std::option::Option::Some(input);
        self
    }
    /// <p>The input/output operations per second (IOPS) of the disk.</p>
    pub fn set_iops(mut self, input: ::std::option::Option<i32>) -> Self {
        self.iops = input;
        self
    }
    /// <p>The input/output operations per second (IOPS) of the disk.</p>
    pub fn get_iops(&self) -> &::std::option::Option<i32> {
        &self.iops
    }
    /// <p>The disk path.</p>
    pub fn path(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.path = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The disk path.</p>
    pub fn set_path(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.path = input;
        self
    }
    /// <p>The disk path.</p>
    pub fn get_path(&self) -> &::std::option::Option<::std::string::String> {
        &self.path
    }
    /// <p>Describes the status of the disk.</p>
    pub fn state(mut self, input: crate::types::DiskState) -> Self {
        self.state = ::std::option::Option::Some(input);
        self
    }
    /// <p>Describes the status of the disk.</p>
    pub fn set_state(mut self, input: ::std::option::Option<crate::types::DiskState>) -> Self {
        self.state = input;
        self
    }
    /// <p>Describes the status of the disk.</p>
    pub fn get_state(&self) -> &::std::option::Option<crate::types::DiskState> {
        &self.state
    }
    /// <p>The resources to which the disk is attached.</p>
    pub fn attached_to(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.attached_to = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The resources to which the disk is attached.</p>
    pub fn set_attached_to(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.attached_to = input;
        self
    }
    /// <p>The resources to which the disk is attached.</p>
    pub fn get_attached_to(&self) -> &::std::option::Option<::std::string::String> {
        &self.attached_to
    }
    /// <p>A Boolean value indicating whether the disk is attached.</p>
    pub fn is_attached(mut self, input: bool) -> Self {
        self.is_attached = ::std::option::Option::Some(input);
        self
    }
    /// <p>A Boolean value indicating whether the disk is attached.</p>
    pub fn set_is_attached(mut self, input: ::std::option::Option<bool>) -> Self {
        self.is_attached = input;
        self
    }
    /// <p>A Boolean value indicating whether the disk is attached.</p>
    pub fn get_is_attached(&self) -> &::std::option::Option<bool> {
        &self.is_attached
    }
    /// <p>(Discontinued) The attachment state of the disk.</p><note>
    /// <p>In releases prior to November 14, 2017, this parameter returned <code>attached</code> for system disks in the API response. It is now discontinued, but still included in the response. Use <code>isAttached</code> instead.</p>
    /// </note>
    #[deprecated]
    pub fn attachment_state(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.attachment_state = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>(Discontinued) The attachment state of the disk.</p><note>
    /// <p>In releases prior to November 14, 2017, this parameter returned <code>attached</code> for system disks in the API response. It is now discontinued, but still included in the response. Use <code>isAttached</code> instead.</p>
    /// </note>
    #[deprecated]
    pub fn set_attachment_state(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.attachment_state = input;
        self
    }
    /// <p>(Discontinued) The attachment state of the disk.</p><note>
    /// <p>In releases prior to November 14, 2017, this parameter returned <code>attached</code> for system disks in the API response. It is now discontinued, but still included in the response. Use <code>isAttached</code> instead.</p>
    /// </note>
    #[deprecated]
    pub fn get_attachment_state(&self) -> &::std::option::Option<::std::string::String> {
        &self.attachment_state
    }
    /// <p>(Discontinued) The number of GB in use by the disk.</p><note>
    /// <p>In releases prior to November 14, 2017, this parameter was not included in the API response. It is now discontinued.</p>
    /// </note>
    #[deprecated]
    pub fn gb_in_use(mut self, input: i32) -> Self {
        self.gb_in_use = ::std::option::Option::Some(input);
        self
    }
    /// <p>(Discontinued) The number of GB in use by the disk.</p><note>
    /// <p>In releases prior to November 14, 2017, this parameter was not included in the API response. It is now discontinued.</p>
    /// </note>
    #[deprecated]
    pub fn set_gb_in_use(mut self, input: ::std::option::Option<i32>) -> Self {
        self.gb_in_use = input;
        self
    }
    /// <p>(Discontinued) The number of GB in use by the disk.</p><note>
    /// <p>In releases prior to November 14, 2017, this parameter was not included in the API response. It is now discontinued.</p>
    /// </note>
    #[deprecated]
    pub fn get_gb_in_use(&self) -> &::std::option::Option<i32> {
        &self.gb_in_use
    }
    /// <p>The status of automatically mounting a storage disk to a virtual computer.</p><important>
    /// <p>This parameter only applies to Lightsail for Research resources.</p>
    /// </important>
    pub fn auto_mount_status(mut self, input: crate::types::AutoMountStatus) -> Self {
        self.auto_mount_status = ::std::option::Option::Some(input);
        self
    }
    /// <p>The status of automatically mounting a storage disk to a virtual computer.</p><important>
    /// <p>This parameter only applies to Lightsail for Research resources.</p>
    /// </important>
    pub fn set_auto_mount_status(mut self, input: ::std::option::Option<crate::types::AutoMountStatus>) -> Self {
        self.auto_mount_status = input;
        self
    }
    /// <p>The status of automatically mounting a storage disk to a virtual computer.</p><important>
    /// <p>This parameter only applies to Lightsail for Research resources.</p>
    /// </important>
    pub fn get_auto_mount_status(&self) -> &::std::option::Option<crate::types::AutoMountStatus> {
        &self.auto_mount_status
    }
    /// Consumes the builder and constructs a [`Disk`](crate::types::Disk).
    pub fn build(self) -> crate::types::Disk {
        crate::types::Disk {
            name: self.name,
            arn: self.arn,
            support_code: self.support_code,
            created_at: self.created_at,
            location: self.location,
            resource_type: self.resource_type,
            tags: self.tags,
            add_ons: self.add_ons,
            size_in_gb: self.size_in_gb,
            is_system_disk: self.is_system_disk,
            iops: self.iops,
            path: self.path,
            state: self.state,
            attached_to: self.attached_to,
            is_attached: self.is_attached,
            attachment_state: self.attachment_state,
            gb_in_use: self.gb_in_use,
            auto_mount_status: self.auto_mount_status,
        }
    }
}