aws-sdk-ec2 1.223.0

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

/// <p>Describes an instance attribute.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribeInstanceAttributeOutput {
    /// <p>The block device mapping of the instance.</p>
    pub block_device_mappings: ::std::option::Option<::std::vec::Vec<crate::types::InstanceBlockDeviceMapping>>,
    /// <p>Indicates whether termination protection is enabled. If the value is <code>true</code>, you can't terminate the instance using the Amazon EC2 console, command line tools, or API.</p>
    pub disable_api_termination: ::std::option::Option<crate::types::AttributeBooleanValue>,
    /// <p>Indicates whether enhanced networking with ENA is enabled.</p>
    pub ena_support: ::std::option::Option<crate::types::AttributeBooleanValue>,
    /// <p>Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves.</p>
    pub enclave_options: ::std::option::Option<crate::types::EnclaveOptions>,
    /// <p>Indicates whether the instance is optimized for Amazon EBS I/O.</p>
    pub ebs_optimized: ::std::option::Option<crate::types::AttributeBooleanValue>,
    /// <p>The ID of the instance.</p>
    pub instance_id: ::std::option::Option<::std::string::String>,
    /// <p>Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).</p>
    pub instance_initiated_shutdown_behavior: ::std::option::Option<crate::types::AttributeValue>,
    /// <p>The instance type.</p>
    pub instance_type: ::std::option::Option<crate::types::AttributeValue>,
    /// <p>The kernel ID.</p>
    pub kernel_id: ::std::option::Option<crate::types::AttributeValue>,
    /// <p>The product codes.</p>
    pub product_codes: ::std::option::Option<::std::vec::Vec<crate::types::ProductCode>>,
    /// <p>The RAM disk ID.</p>
    pub ramdisk_id: ::std::option::Option<crate::types::AttributeValue>,
    /// <p>The device name of the root device volume (for example, <code>/dev/sda1</code>).</p>
    pub root_device_name: ::std::option::Option<crate::types::AttributeValue>,
    /// <p>Indicates whether source/destination checks are enabled.</p>
    pub source_dest_check: ::std::option::Option<crate::types::AttributeBooleanValue>,
    /// <p>Indicates whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.</p>
    pub sriov_net_support: ::std::option::Option<crate::types::AttributeValue>,
    /// <p>The user data.</p>
    pub user_data: ::std::option::Option<crate::types::AttributeValue>,
    /// <p>Indicates whether stop protection is enabled for the instance.</p>
    pub disable_api_stop: ::std::option::Option<crate::types::AttributeBooleanValue>,
    /// <p>The security groups associated with the instance.</p>
    pub groups: ::std::option::Option<::std::vec::Vec<crate::types::GroupIdentifier>>,
    _request_id: Option<String>,
}
impl DescribeInstanceAttributeOutput {
    /// <p>The block device mapping of the instance.</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 `.block_device_mappings.is_none()`.
    pub fn block_device_mappings(&self) -> &[crate::types::InstanceBlockDeviceMapping] {
        self.block_device_mappings.as_deref().unwrap_or_default()
    }
    /// <p>Indicates whether termination protection is enabled. If the value is <code>true</code>, you can't terminate the instance using the Amazon EC2 console, command line tools, or API.</p>
    pub fn disable_api_termination(&self) -> ::std::option::Option<&crate::types::AttributeBooleanValue> {
        self.disable_api_termination.as_ref()
    }
    /// <p>Indicates whether enhanced networking with ENA is enabled.</p>
    pub fn ena_support(&self) -> ::std::option::Option<&crate::types::AttributeBooleanValue> {
        self.ena_support.as_ref()
    }
    /// <p>Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves.</p>
    pub fn enclave_options(&self) -> ::std::option::Option<&crate::types::EnclaveOptions> {
        self.enclave_options.as_ref()
    }
    /// <p>Indicates whether the instance is optimized for Amazon EBS I/O.</p>
    pub fn ebs_optimized(&self) -> ::std::option::Option<&crate::types::AttributeBooleanValue> {
        self.ebs_optimized.as_ref()
    }
    /// <p>The ID of the instance.</p>
    pub fn instance_id(&self) -> ::std::option::Option<&str> {
        self.instance_id.as_deref()
    }
    /// <p>Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).</p>
    pub fn instance_initiated_shutdown_behavior(&self) -> ::std::option::Option<&crate::types::AttributeValue> {
        self.instance_initiated_shutdown_behavior.as_ref()
    }
    /// <p>The instance type.</p>
    pub fn instance_type(&self) -> ::std::option::Option<&crate::types::AttributeValue> {
        self.instance_type.as_ref()
    }
    /// <p>The kernel ID.</p>
    pub fn kernel_id(&self) -> ::std::option::Option<&crate::types::AttributeValue> {
        self.kernel_id.as_ref()
    }
    /// <p>The product codes.</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 `.product_codes.is_none()`.
    pub fn product_codes(&self) -> &[crate::types::ProductCode] {
        self.product_codes.as_deref().unwrap_or_default()
    }
    /// <p>The RAM disk ID.</p>
    pub fn ramdisk_id(&self) -> ::std::option::Option<&crate::types::AttributeValue> {
        self.ramdisk_id.as_ref()
    }
    /// <p>The device name of the root device volume (for example, <code>/dev/sda1</code>).</p>
    pub fn root_device_name(&self) -> ::std::option::Option<&crate::types::AttributeValue> {
        self.root_device_name.as_ref()
    }
    /// <p>Indicates whether source/destination checks are enabled.</p>
    pub fn source_dest_check(&self) -> ::std::option::Option<&crate::types::AttributeBooleanValue> {
        self.source_dest_check.as_ref()
    }
    /// <p>Indicates whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.</p>
    pub fn sriov_net_support(&self) -> ::std::option::Option<&crate::types::AttributeValue> {
        self.sriov_net_support.as_ref()
    }
    /// <p>The user data.</p>
    pub fn user_data(&self) -> ::std::option::Option<&crate::types::AttributeValue> {
        self.user_data.as_ref()
    }
    /// <p>Indicates whether stop protection is enabled for the instance.</p>
    pub fn disable_api_stop(&self) -> ::std::option::Option<&crate::types::AttributeBooleanValue> {
        self.disable_api_stop.as_ref()
    }
    /// <p>The security groups associated with the instance.</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 `.groups.is_none()`.
    pub fn groups(&self) -> &[crate::types::GroupIdentifier] {
        self.groups.as_deref().unwrap_or_default()
    }
}
impl ::aws_types::request_id::RequestId for DescribeInstanceAttributeOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl DescribeInstanceAttributeOutput {
    /// Creates a new builder-style object to manufacture [`DescribeInstanceAttributeOutput`](crate::operation::describe_instance_attribute::DescribeInstanceAttributeOutput).
    pub fn builder() -> crate::operation::describe_instance_attribute::builders::DescribeInstanceAttributeOutputBuilder {
        crate::operation::describe_instance_attribute::builders::DescribeInstanceAttributeOutputBuilder::default()
    }
}

/// A builder for [`DescribeInstanceAttributeOutput`](crate::operation::describe_instance_attribute::DescribeInstanceAttributeOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeInstanceAttributeOutputBuilder {
    pub(crate) block_device_mappings: ::std::option::Option<::std::vec::Vec<crate::types::InstanceBlockDeviceMapping>>,
    pub(crate) disable_api_termination: ::std::option::Option<crate::types::AttributeBooleanValue>,
    pub(crate) ena_support: ::std::option::Option<crate::types::AttributeBooleanValue>,
    pub(crate) enclave_options: ::std::option::Option<crate::types::EnclaveOptions>,
    pub(crate) ebs_optimized: ::std::option::Option<crate::types::AttributeBooleanValue>,
    pub(crate) instance_id: ::std::option::Option<::std::string::String>,
    pub(crate) instance_initiated_shutdown_behavior: ::std::option::Option<crate::types::AttributeValue>,
    pub(crate) instance_type: ::std::option::Option<crate::types::AttributeValue>,
    pub(crate) kernel_id: ::std::option::Option<crate::types::AttributeValue>,
    pub(crate) product_codes: ::std::option::Option<::std::vec::Vec<crate::types::ProductCode>>,
    pub(crate) ramdisk_id: ::std::option::Option<crate::types::AttributeValue>,
    pub(crate) root_device_name: ::std::option::Option<crate::types::AttributeValue>,
    pub(crate) source_dest_check: ::std::option::Option<crate::types::AttributeBooleanValue>,
    pub(crate) sriov_net_support: ::std::option::Option<crate::types::AttributeValue>,
    pub(crate) user_data: ::std::option::Option<crate::types::AttributeValue>,
    pub(crate) disable_api_stop: ::std::option::Option<crate::types::AttributeBooleanValue>,
    pub(crate) groups: ::std::option::Option<::std::vec::Vec<crate::types::GroupIdentifier>>,
    _request_id: Option<String>,
}
impl DescribeInstanceAttributeOutputBuilder {
    /// Appends an item to `block_device_mappings`.
    ///
    /// To override the contents of this collection use [`set_block_device_mappings`](Self::set_block_device_mappings).
    ///
    /// <p>The block device mapping of the instance.</p>
    pub fn block_device_mappings(mut self, input: crate::types::InstanceBlockDeviceMapping) -> Self {
        let mut v = self.block_device_mappings.unwrap_or_default();
        v.push(input);
        self.block_device_mappings = ::std::option::Option::Some(v);
        self
    }
    /// <p>The block device mapping of the instance.</p>
    pub fn set_block_device_mappings(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::InstanceBlockDeviceMapping>>) -> Self {
        self.block_device_mappings = input;
        self
    }
    /// <p>The block device mapping of the instance.</p>
    pub fn get_block_device_mappings(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::InstanceBlockDeviceMapping>> {
        &self.block_device_mappings
    }
    /// <p>Indicates whether termination protection is enabled. If the value is <code>true</code>, you can't terminate the instance using the Amazon EC2 console, command line tools, or API.</p>
    pub fn disable_api_termination(mut self, input: crate::types::AttributeBooleanValue) -> Self {
        self.disable_api_termination = ::std::option::Option::Some(input);
        self
    }
    /// <p>Indicates whether termination protection is enabled. If the value is <code>true</code>, you can't terminate the instance using the Amazon EC2 console, command line tools, or API.</p>
    pub fn set_disable_api_termination(mut self, input: ::std::option::Option<crate::types::AttributeBooleanValue>) -> Self {
        self.disable_api_termination = input;
        self
    }
    /// <p>Indicates whether termination protection is enabled. If the value is <code>true</code>, you can't terminate the instance using the Amazon EC2 console, command line tools, or API.</p>
    pub fn get_disable_api_termination(&self) -> &::std::option::Option<crate::types::AttributeBooleanValue> {
        &self.disable_api_termination
    }
    /// <p>Indicates whether enhanced networking with ENA is enabled.</p>
    pub fn ena_support(mut self, input: crate::types::AttributeBooleanValue) -> Self {
        self.ena_support = ::std::option::Option::Some(input);
        self
    }
    /// <p>Indicates whether enhanced networking with ENA is enabled.</p>
    pub fn set_ena_support(mut self, input: ::std::option::Option<crate::types::AttributeBooleanValue>) -> Self {
        self.ena_support = input;
        self
    }
    /// <p>Indicates whether enhanced networking with ENA is enabled.</p>
    pub fn get_ena_support(&self) -> &::std::option::Option<crate::types::AttributeBooleanValue> {
        &self.ena_support
    }
    /// <p>Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves.</p>
    pub fn enclave_options(mut self, input: crate::types::EnclaveOptions) -> Self {
        self.enclave_options = ::std::option::Option::Some(input);
        self
    }
    /// <p>Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves.</p>
    pub fn set_enclave_options(mut self, input: ::std::option::Option<crate::types::EnclaveOptions>) -> Self {
        self.enclave_options = input;
        self
    }
    /// <p>Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves.</p>
    pub fn get_enclave_options(&self) -> &::std::option::Option<crate::types::EnclaveOptions> {
        &self.enclave_options
    }
    /// <p>Indicates whether the instance is optimized for Amazon EBS I/O.</p>
    pub fn ebs_optimized(mut self, input: crate::types::AttributeBooleanValue) -> Self {
        self.ebs_optimized = ::std::option::Option::Some(input);
        self
    }
    /// <p>Indicates whether the instance is optimized for Amazon EBS I/O.</p>
    pub fn set_ebs_optimized(mut self, input: ::std::option::Option<crate::types::AttributeBooleanValue>) -> Self {
        self.ebs_optimized = input;
        self
    }
    /// <p>Indicates whether the instance is optimized for Amazon EBS I/O.</p>
    pub fn get_ebs_optimized(&self) -> &::std::option::Option<crate::types::AttributeBooleanValue> {
        &self.ebs_optimized
    }
    /// <p>The ID of the instance.</p>
    pub fn instance_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.instance_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID of the instance.</p>
    pub fn set_instance_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.instance_id = input;
        self
    }
    /// <p>The ID of the instance.</p>
    pub fn get_instance_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.instance_id
    }
    /// <p>Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).</p>
    pub fn instance_initiated_shutdown_behavior(mut self, input: crate::types::AttributeValue) -> Self {
        self.instance_initiated_shutdown_behavior = ::std::option::Option::Some(input);
        self
    }
    /// <p>Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).</p>
    pub fn set_instance_initiated_shutdown_behavior(mut self, input: ::std::option::Option<crate::types::AttributeValue>) -> Self {
        self.instance_initiated_shutdown_behavior = input;
        self
    }
    /// <p>Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).</p>
    pub fn get_instance_initiated_shutdown_behavior(&self) -> &::std::option::Option<crate::types::AttributeValue> {
        &self.instance_initiated_shutdown_behavior
    }
    /// <p>The instance type.</p>
    pub fn instance_type(mut self, input: crate::types::AttributeValue) -> Self {
        self.instance_type = ::std::option::Option::Some(input);
        self
    }
    /// <p>The instance type.</p>
    pub fn set_instance_type(mut self, input: ::std::option::Option<crate::types::AttributeValue>) -> Self {
        self.instance_type = input;
        self
    }
    /// <p>The instance type.</p>
    pub fn get_instance_type(&self) -> &::std::option::Option<crate::types::AttributeValue> {
        &self.instance_type
    }
    /// <p>The kernel ID.</p>
    pub fn kernel_id(mut self, input: crate::types::AttributeValue) -> Self {
        self.kernel_id = ::std::option::Option::Some(input);
        self
    }
    /// <p>The kernel ID.</p>
    pub fn set_kernel_id(mut self, input: ::std::option::Option<crate::types::AttributeValue>) -> Self {
        self.kernel_id = input;
        self
    }
    /// <p>The kernel ID.</p>
    pub fn get_kernel_id(&self) -> &::std::option::Option<crate::types::AttributeValue> {
        &self.kernel_id
    }
    /// Appends an item to `product_codes`.
    ///
    /// To override the contents of this collection use [`set_product_codes`](Self::set_product_codes).
    ///
    /// <p>The product codes.</p>
    pub fn product_codes(mut self, input: crate::types::ProductCode) -> Self {
        let mut v = self.product_codes.unwrap_or_default();
        v.push(input);
        self.product_codes = ::std::option::Option::Some(v);
        self
    }
    /// <p>The product codes.</p>
    pub fn set_product_codes(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::ProductCode>>) -> Self {
        self.product_codes = input;
        self
    }
    /// <p>The product codes.</p>
    pub fn get_product_codes(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ProductCode>> {
        &self.product_codes
    }
    /// <p>The RAM disk ID.</p>
    pub fn ramdisk_id(mut self, input: crate::types::AttributeValue) -> Self {
        self.ramdisk_id = ::std::option::Option::Some(input);
        self
    }
    /// <p>The RAM disk ID.</p>
    pub fn set_ramdisk_id(mut self, input: ::std::option::Option<crate::types::AttributeValue>) -> Self {
        self.ramdisk_id = input;
        self
    }
    /// <p>The RAM disk ID.</p>
    pub fn get_ramdisk_id(&self) -> &::std::option::Option<crate::types::AttributeValue> {
        &self.ramdisk_id
    }
    /// <p>The device name of the root device volume (for example, <code>/dev/sda1</code>).</p>
    pub fn root_device_name(mut self, input: crate::types::AttributeValue) -> Self {
        self.root_device_name = ::std::option::Option::Some(input);
        self
    }
    /// <p>The device name of the root device volume (for example, <code>/dev/sda1</code>).</p>
    pub fn set_root_device_name(mut self, input: ::std::option::Option<crate::types::AttributeValue>) -> Self {
        self.root_device_name = input;
        self
    }
    /// <p>The device name of the root device volume (for example, <code>/dev/sda1</code>).</p>
    pub fn get_root_device_name(&self) -> &::std::option::Option<crate::types::AttributeValue> {
        &self.root_device_name
    }
    /// <p>Indicates whether source/destination checks are enabled.</p>
    pub fn source_dest_check(mut self, input: crate::types::AttributeBooleanValue) -> Self {
        self.source_dest_check = ::std::option::Option::Some(input);
        self
    }
    /// <p>Indicates whether source/destination checks are enabled.</p>
    pub fn set_source_dest_check(mut self, input: ::std::option::Option<crate::types::AttributeBooleanValue>) -> Self {
        self.source_dest_check = input;
        self
    }
    /// <p>Indicates whether source/destination checks are enabled.</p>
    pub fn get_source_dest_check(&self) -> &::std::option::Option<crate::types::AttributeBooleanValue> {
        &self.source_dest_check
    }
    /// <p>Indicates whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.</p>
    pub fn sriov_net_support(mut self, input: crate::types::AttributeValue) -> Self {
        self.sriov_net_support = ::std::option::Option::Some(input);
        self
    }
    /// <p>Indicates whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.</p>
    pub fn set_sriov_net_support(mut self, input: ::std::option::Option<crate::types::AttributeValue>) -> Self {
        self.sriov_net_support = input;
        self
    }
    /// <p>Indicates whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.</p>
    pub fn get_sriov_net_support(&self) -> &::std::option::Option<crate::types::AttributeValue> {
        &self.sriov_net_support
    }
    /// <p>The user data.</p>
    pub fn user_data(mut self, input: crate::types::AttributeValue) -> Self {
        self.user_data = ::std::option::Option::Some(input);
        self
    }
    /// <p>The user data.</p>
    pub fn set_user_data(mut self, input: ::std::option::Option<crate::types::AttributeValue>) -> Self {
        self.user_data = input;
        self
    }
    /// <p>The user data.</p>
    pub fn get_user_data(&self) -> &::std::option::Option<crate::types::AttributeValue> {
        &self.user_data
    }
    /// <p>Indicates whether stop protection is enabled for the instance.</p>
    pub fn disable_api_stop(mut self, input: crate::types::AttributeBooleanValue) -> Self {
        self.disable_api_stop = ::std::option::Option::Some(input);
        self
    }
    /// <p>Indicates whether stop protection is enabled for the instance.</p>
    pub fn set_disable_api_stop(mut self, input: ::std::option::Option<crate::types::AttributeBooleanValue>) -> Self {
        self.disable_api_stop = input;
        self
    }
    /// <p>Indicates whether stop protection is enabled for the instance.</p>
    pub fn get_disable_api_stop(&self) -> &::std::option::Option<crate::types::AttributeBooleanValue> {
        &self.disable_api_stop
    }
    /// Appends an item to `groups`.
    ///
    /// To override the contents of this collection use [`set_groups`](Self::set_groups).
    ///
    /// <p>The security groups associated with the instance.</p>
    pub fn groups(mut self, input: crate::types::GroupIdentifier) -> Self {
        let mut v = self.groups.unwrap_or_default();
        v.push(input);
        self.groups = ::std::option::Option::Some(v);
        self
    }
    /// <p>The security groups associated with the instance.</p>
    pub fn set_groups(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::GroupIdentifier>>) -> Self {
        self.groups = input;
        self
    }
    /// <p>The security groups associated with the instance.</p>
    pub fn get_groups(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::GroupIdentifier>> {
        &self.groups
    }
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
        self._request_id = Some(request_id.into());
        self
    }

    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
        self._request_id = request_id;
        self
    }
    /// Consumes the builder and constructs a [`DescribeInstanceAttributeOutput`](crate::operation::describe_instance_attribute::DescribeInstanceAttributeOutput).
    pub fn build(self) -> crate::operation::describe_instance_attribute::DescribeInstanceAttributeOutput {
        crate::operation::describe_instance_attribute::DescribeInstanceAttributeOutput {
            block_device_mappings: self.block_device_mappings,
            disable_api_termination: self.disable_api_termination,
            ena_support: self.ena_support,
            enclave_options: self.enclave_options,
            ebs_optimized: self.ebs_optimized,
            instance_id: self.instance_id,
            instance_initiated_shutdown_behavior: self.instance_initiated_shutdown_behavior,
            instance_type: self.instance_type,
            kernel_id: self.kernel_id,
            product_codes: self.product_codes,
            ramdisk_id: self.ramdisk_id,
            root_device_name: self.root_device_name,
            source_dest_check: self.source_dest_check,
            sriov_net_support: self.sriov_net_support,
            user_data: self.user_data,
            disable_api_stop: self.disable_api_stop,
            groups: self.groups,
            _request_id: self._request_id,
        }
    }
}