aws_sdk_ec2/operation/import_image/builders.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::import_image::_import_image_output::ImportImageOutputBuilder;
3
4pub use crate::operation::import_image::_import_image_input::ImportImageInputBuilder;
5
6impl crate::operation::import_image::builders::ImportImageInputBuilder {
7 /// Sends a request with this input using the given client.
8 pub async fn send_with(
9 self,
10 client: &crate::Client,
11 ) -> ::std::result::Result<
12 crate::operation::import_image::ImportImageOutput,
13 ::aws_smithy_runtime_api::client::result::SdkError<
14 crate::operation::import_image::ImportImageError,
15 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16 >,
17 > {
18 let mut fluent_builder = client.import_image();
19 fluent_builder.inner = self;
20 fluent_builder.send().await
21 }
22}
23/// Fluent builder constructing a request to `ImportImage`.
24///
25/// <note>
26/// <p>To import your virtual machines (VMs) with a console-based experience, you can use the <i>Import virtual machine images to Amazon Web Services</i> template in the <a href="https://console.aws.amazon.com/migrationhub/orchestrator">Migration Hub Orchestrator console</a>. For more information, see the <a href="https://docs.aws.amazon.com/migrationhub-orchestrator/latest/userguide/import-vm-images.html"> <i>Migration Hub Orchestrator User Guide</i> </a>.</p>
27/// </note>
28/// <p>Import single or multi-volume disk images or EBS snapshots into an Amazon Machine Image (AMI).</p><important>
29/// <p>Amazon Web Services VM Import/Export strongly recommends specifying a value for either the <code>--license-type</code> or <code>--usage-operation</code> parameter when you create a new VM Import task. This ensures your operating system is licensed appropriately and your billing is optimized.</p>
30/// </important>
31/// <p>For more information, see <a href="https://docs.aws.amazon.com/vm-import/latest/userguide/vmimport-image-import.html">Importing a VM as an image using VM Import/Export</a> in the <i>VM Import/Export User Guide</i>.</p>
32#[derive(::std::clone::Clone, ::std::fmt::Debug)]
33pub struct ImportImageFluentBuilder {
34 handle: ::std::sync::Arc<crate::client::Handle>,
35 inner: crate::operation::import_image::builders::ImportImageInputBuilder,
36 config_override: ::std::option::Option<crate::config::Builder>,
37}
38impl
39 crate::client::customize::internal::CustomizableSend<
40 crate::operation::import_image::ImportImageOutput,
41 crate::operation::import_image::ImportImageError,
42 > for ImportImageFluentBuilder
43{
44 fn send(
45 self,
46 config_override: crate::config::Builder,
47 ) -> crate::client::customize::internal::BoxFuture<
48 crate::client::customize::internal::SendResult<
49 crate::operation::import_image::ImportImageOutput,
50 crate::operation::import_image::ImportImageError,
51 >,
52 > {
53 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
54 }
55}
56impl ImportImageFluentBuilder {
57 /// Creates a new `ImportImageFluentBuilder`.
58 pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
59 Self {
60 handle,
61 inner: ::std::default::Default::default(),
62 config_override: ::std::option::Option::None,
63 }
64 }
65 /// Access the ImportImage as a reference.
66 pub fn as_input(&self) -> &crate::operation::import_image::builders::ImportImageInputBuilder {
67 &self.inner
68 }
69 /// Sends the request and returns the response.
70 ///
71 /// If an error occurs, an `SdkError` will be returned with additional details that
72 /// can be matched against.
73 ///
74 /// By default, any retryable failures will be retried twice. Retry behavior
75 /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
76 /// set when configuring the client.
77 pub async fn send(
78 self,
79 ) -> ::std::result::Result<
80 crate::operation::import_image::ImportImageOutput,
81 ::aws_smithy_runtime_api::client::result::SdkError<
82 crate::operation::import_image::ImportImageError,
83 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
84 >,
85 > {
86 let input = self
87 .inner
88 .build()
89 .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
90 let runtime_plugins = crate::operation::import_image::ImportImage::operation_runtime_plugins(
91 self.handle.runtime_plugins.clone(),
92 &self.handle.conf,
93 self.config_override,
94 );
95 crate::operation::import_image::ImportImage::orchestrate(&runtime_plugins, input).await
96 }
97
98 /// Consumes this builder, creating a customizable operation that can be modified before being sent.
99 pub fn customize(
100 self,
101 ) -> crate::client::customize::CustomizableOperation<
102 crate::operation::import_image::ImportImageOutput,
103 crate::operation::import_image::ImportImageError,
104 Self,
105 > {
106 crate::client::customize::CustomizableOperation::new(self)
107 }
108 pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
109 self.set_config_override(::std::option::Option::Some(config_override.into()));
110 self
111 }
112
113 pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
114 self.config_override = config_override;
115 self
116 }
117 /// <p>The architecture of the virtual machine.</p>
118 /// <p>Valid values: <code>i386</code> | <code>x86_64</code></p>
119 pub fn architecture(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
120 self.inner = self.inner.architecture(input.into());
121 self
122 }
123 /// <p>The architecture of the virtual machine.</p>
124 /// <p>Valid values: <code>i386</code> | <code>x86_64</code></p>
125 pub fn set_architecture(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
126 self.inner = self.inner.set_architecture(input);
127 self
128 }
129 /// <p>The architecture of the virtual machine.</p>
130 /// <p>Valid values: <code>i386</code> | <code>x86_64</code></p>
131 pub fn get_architecture(&self) -> &::std::option::Option<::std::string::String> {
132 self.inner.get_architecture()
133 }
134 /// <p>The client-specific data.</p>
135 pub fn client_data(mut self, input: crate::types::ClientData) -> Self {
136 self.inner = self.inner.client_data(input);
137 self
138 }
139 /// <p>The client-specific data.</p>
140 pub fn set_client_data(mut self, input: ::std::option::Option<crate::types::ClientData>) -> Self {
141 self.inner = self.inner.set_client_data(input);
142 self
143 }
144 /// <p>The client-specific data.</p>
145 pub fn get_client_data(&self) -> &::std::option::Option<crate::types::ClientData> {
146 self.inner.get_client_data()
147 }
148 /// <p>The token to enable idempotency for VM import requests.</p>
149 pub fn client_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
150 self.inner = self.inner.client_token(input.into());
151 self
152 }
153 /// <p>The token to enable idempotency for VM import requests.</p>
154 pub fn set_client_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
155 self.inner = self.inner.set_client_token(input);
156 self
157 }
158 /// <p>The token to enable idempotency for VM import requests.</p>
159 pub fn get_client_token(&self) -> &::std::option::Option<::std::string::String> {
160 self.inner.get_client_token()
161 }
162 /// <p>A description string for the import image task.</p>
163 pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
164 self.inner = self.inner.description(input.into());
165 self
166 }
167 /// <p>A description string for the import image task.</p>
168 pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
169 self.inner = self.inner.set_description(input);
170 self
171 }
172 /// <p>A description string for the import image task.</p>
173 pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
174 self.inner.get_description()
175 }
176 ///
177 /// Appends an item to `DiskContainers`.
178 ///
179 /// To override the contents of this collection use [`set_disk_containers`](Self::set_disk_containers).
180 ///
181 /// <p>Information about the disk containers.</p>
182 pub fn disk_containers(mut self, input: crate::types::ImageDiskContainer) -> Self {
183 self.inner = self.inner.disk_containers(input);
184 self
185 }
186 /// <p>Information about the disk containers.</p>
187 pub fn set_disk_containers(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::ImageDiskContainer>>) -> Self {
188 self.inner = self.inner.set_disk_containers(input);
189 self
190 }
191 /// <p>Information about the disk containers.</p>
192 pub fn get_disk_containers(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ImageDiskContainer>> {
193 self.inner.get_disk_containers()
194 }
195 /// <p>Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>
196 pub fn dry_run(mut self, input: bool) -> Self {
197 self.inner = self.inner.dry_run(input);
198 self
199 }
200 /// <p>Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>
201 pub fn set_dry_run(mut self, input: ::std::option::Option<bool>) -> Self {
202 self.inner = self.inner.set_dry_run(input);
203 self
204 }
205 /// <p>Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>
206 pub fn get_dry_run(&self) -> &::std::option::Option<bool> {
207 self.inner.get_dry_run()
208 }
209 /// <p>Specifies whether the destination AMI of the imported image should be encrypted. The default KMS key for EBS is used unless you specify a non-default KMS key using <code>KmsKeyId</code>. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html">Amazon EBS Encryption</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
210 pub fn encrypted(mut self, input: bool) -> Self {
211 self.inner = self.inner.encrypted(input);
212 self
213 }
214 /// <p>Specifies whether the destination AMI of the imported image should be encrypted. The default KMS key for EBS is used unless you specify a non-default KMS key using <code>KmsKeyId</code>. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html">Amazon EBS Encryption</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
215 pub fn set_encrypted(mut self, input: ::std::option::Option<bool>) -> Self {
216 self.inner = self.inner.set_encrypted(input);
217 self
218 }
219 /// <p>Specifies whether the destination AMI of the imported image should be encrypted. The default KMS key for EBS is used unless you specify a non-default KMS key using <code>KmsKeyId</code>. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html">Amazon EBS Encryption</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
220 pub fn get_encrypted(&self) -> &::std::option::Option<bool> {
221 self.inner.get_encrypted()
222 }
223 /// <p>The target hypervisor platform.</p>
224 /// <p>Valid values: <code>xen</code></p>
225 pub fn hypervisor(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
226 self.inner = self.inner.hypervisor(input.into());
227 self
228 }
229 /// <p>The target hypervisor platform.</p>
230 /// <p>Valid values: <code>xen</code></p>
231 pub fn set_hypervisor(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
232 self.inner = self.inner.set_hypervisor(input);
233 self
234 }
235 /// <p>The target hypervisor platform.</p>
236 /// <p>Valid values: <code>xen</code></p>
237 pub fn get_hypervisor(&self) -> &::std::option::Option<::std::string::String> {
238 self.inner.get_hypervisor()
239 }
240 /// <p>An identifier for the symmetric KMS key to use when creating the encrypted AMI. This parameter is only required if you want to use a non-default KMS key; if this parameter is not specified, the default KMS key for EBS is used. If a <code>KmsKeyId</code> is specified, the <code>Encrypted</code> flag must also be set.</p>
241 /// <p>The KMS key identifier may be provided in any of the following formats:</p>
242 /// <ul>
243 /// <li>
244 /// <p>Key ID</p></li>
245 /// <li>
246 /// <p>Key alias</p></li>
247 /// <li>
248 /// <p>ARN using key ID. The ID ARN contains the <code>arn:aws:kms</code> namespace, followed by the Region of the key, the Amazon Web Services account ID of the key owner, the <code>key</code> namespace, and then the key ID. For example, arn:aws:kms:<i>us-east-1</i>:<i>012345678910</i>:key/<i>abcd1234-a123-456a-a12b-a123b4cd56ef</i>.</p></li>
249 /// <li>
250 /// <p>ARN using key alias. The alias ARN contains the <code>arn:aws:kms</code> namespace, followed by the Region of the key, the Amazon Web Services account ID of the key owner, the <code>alias</code> namespace, and then the key alias. For example, arn:aws:kms:<i>us-east-1</i>:<i>012345678910</i>:alias/<i>ExampleAlias</i>.</p></li>
251 /// </ul>
252 /// <p>Amazon Web Services parses <code>KmsKeyId</code> asynchronously, meaning that the action you call may appear to complete even though you provided an invalid identifier. This action will eventually report failure.</p>
253 /// <p>The specified KMS key must exist in the Region that the AMI is being copied to.</p>
254 /// <p>Amazon EBS does not support asymmetric KMS keys.</p>
255 pub fn kms_key_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
256 self.inner = self.inner.kms_key_id(input.into());
257 self
258 }
259 /// <p>An identifier for the symmetric KMS key to use when creating the encrypted AMI. This parameter is only required if you want to use a non-default KMS key; if this parameter is not specified, the default KMS key for EBS is used. If a <code>KmsKeyId</code> is specified, the <code>Encrypted</code> flag must also be set.</p>
260 /// <p>The KMS key identifier may be provided in any of the following formats:</p>
261 /// <ul>
262 /// <li>
263 /// <p>Key ID</p></li>
264 /// <li>
265 /// <p>Key alias</p></li>
266 /// <li>
267 /// <p>ARN using key ID. The ID ARN contains the <code>arn:aws:kms</code> namespace, followed by the Region of the key, the Amazon Web Services account ID of the key owner, the <code>key</code> namespace, and then the key ID. For example, arn:aws:kms:<i>us-east-1</i>:<i>012345678910</i>:key/<i>abcd1234-a123-456a-a12b-a123b4cd56ef</i>.</p></li>
268 /// <li>
269 /// <p>ARN using key alias. The alias ARN contains the <code>arn:aws:kms</code> namespace, followed by the Region of the key, the Amazon Web Services account ID of the key owner, the <code>alias</code> namespace, and then the key alias. For example, arn:aws:kms:<i>us-east-1</i>:<i>012345678910</i>:alias/<i>ExampleAlias</i>.</p></li>
270 /// </ul>
271 /// <p>Amazon Web Services parses <code>KmsKeyId</code> asynchronously, meaning that the action you call may appear to complete even though you provided an invalid identifier. This action will eventually report failure.</p>
272 /// <p>The specified KMS key must exist in the Region that the AMI is being copied to.</p>
273 /// <p>Amazon EBS does not support asymmetric KMS keys.</p>
274 pub fn set_kms_key_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
275 self.inner = self.inner.set_kms_key_id(input);
276 self
277 }
278 /// <p>An identifier for the symmetric KMS key to use when creating the encrypted AMI. This parameter is only required if you want to use a non-default KMS key; if this parameter is not specified, the default KMS key for EBS is used. If a <code>KmsKeyId</code> is specified, the <code>Encrypted</code> flag must also be set.</p>
279 /// <p>The KMS key identifier may be provided in any of the following formats:</p>
280 /// <ul>
281 /// <li>
282 /// <p>Key ID</p></li>
283 /// <li>
284 /// <p>Key alias</p></li>
285 /// <li>
286 /// <p>ARN using key ID. The ID ARN contains the <code>arn:aws:kms</code> namespace, followed by the Region of the key, the Amazon Web Services account ID of the key owner, the <code>key</code> namespace, and then the key ID. For example, arn:aws:kms:<i>us-east-1</i>:<i>012345678910</i>:key/<i>abcd1234-a123-456a-a12b-a123b4cd56ef</i>.</p></li>
287 /// <li>
288 /// <p>ARN using key alias. The alias ARN contains the <code>arn:aws:kms</code> namespace, followed by the Region of the key, the Amazon Web Services account ID of the key owner, the <code>alias</code> namespace, and then the key alias. For example, arn:aws:kms:<i>us-east-1</i>:<i>012345678910</i>:alias/<i>ExampleAlias</i>.</p></li>
289 /// </ul>
290 /// <p>Amazon Web Services parses <code>KmsKeyId</code> asynchronously, meaning that the action you call may appear to complete even though you provided an invalid identifier. This action will eventually report failure.</p>
291 /// <p>The specified KMS key must exist in the Region that the AMI is being copied to.</p>
292 /// <p>Amazon EBS does not support asymmetric KMS keys.</p>
293 pub fn get_kms_key_id(&self) -> &::std::option::Option<::std::string::String> {
294 self.inner.get_kms_key_id()
295 }
296 /// <p>The license type to be used for the Amazon Machine Image (AMI) after importing.</p>
297 /// <p>Specify <code>AWS</code> to replace the source-system license with an Amazon Web Services license or <code>BYOL</code> to retain the source-system license. Leaving this parameter undefined is the same as choosing <code>AWS</code> when importing a Windows Server operating system, and the same as choosing <code>BYOL</code> when importing a Windows client operating system (such as Windows 10) or a Linux operating system.</p>
298 /// <p>To use <code>BYOL</code>, you must have existing licenses with rights to use these licenses in a third party cloud, such as Amazon Web Services. For more information, see <a href="https://docs.aws.amazon.com/vm-import/latest/userguide/vmimport-image-import.html#prerequisites-image">Prerequisites</a> in the VM Import/Export User Guide.</p>
299 pub fn license_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
300 self.inner = self.inner.license_type(input.into());
301 self
302 }
303 /// <p>The license type to be used for the Amazon Machine Image (AMI) after importing.</p>
304 /// <p>Specify <code>AWS</code> to replace the source-system license with an Amazon Web Services license or <code>BYOL</code> to retain the source-system license. Leaving this parameter undefined is the same as choosing <code>AWS</code> when importing a Windows Server operating system, and the same as choosing <code>BYOL</code> when importing a Windows client operating system (such as Windows 10) or a Linux operating system.</p>
305 /// <p>To use <code>BYOL</code>, you must have existing licenses with rights to use these licenses in a third party cloud, such as Amazon Web Services. For more information, see <a href="https://docs.aws.amazon.com/vm-import/latest/userguide/vmimport-image-import.html#prerequisites-image">Prerequisites</a> in the VM Import/Export User Guide.</p>
306 pub fn set_license_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
307 self.inner = self.inner.set_license_type(input);
308 self
309 }
310 /// <p>The license type to be used for the Amazon Machine Image (AMI) after importing.</p>
311 /// <p>Specify <code>AWS</code> to replace the source-system license with an Amazon Web Services license or <code>BYOL</code> to retain the source-system license. Leaving this parameter undefined is the same as choosing <code>AWS</code> when importing a Windows Server operating system, and the same as choosing <code>BYOL</code> when importing a Windows client operating system (such as Windows 10) or a Linux operating system.</p>
312 /// <p>To use <code>BYOL</code>, you must have existing licenses with rights to use these licenses in a third party cloud, such as Amazon Web Services. For more information, see <a href="https://docs.aws.amazon.com/vm-import/latest/userguide/vmimport-image-import.html#prerequisites-image">Prerequisites</a> in the VM Import/Export User Guide.</p>
313 pub fn get_license_type(&self) -> &::std::option::Option<::std::string::String> {
314 self.inner.get_license_type()
315 }
316 /// <p>The operating system of the virtual machine. If you import a VM that is compatible with Unified Extensible Firmware Interface (UEFI) using an EBS snapshot, you must specify a value for the platform.</p>
317 /// <p>Valid values: <code>Windows</code> | <code>Linux</code></p>
318 pub fn platform(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
319 self.inner = self.inner.platform(input.into());
320 self
321 }
322 /// <p>The operating system of the virtual machine. If you import a VM that is compatible with Unified Extensible Firmware Interface (UEFI) using an EBS snapshot, you must specify a value for the platform.</p>
323 /// <p>Valid values: <code>Windows</code> | <code>Linux</code></p>
324 pub fn set_platform(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
325 self.inner = self.inner.set_platform(input);
326 self
327 }
328 /// <p>The operating system of the virtual machine. If you import a VM that is compatible with Unified Extensible Firmware Interface (UEFI) using an EBS snapshot, you must specify a value for the platform.</p>
329 /// <p>Valid values: <code>Windows</code> | <code>Linux</code></p>
330 pub fn get_platform(&self) -> &::std::option::Option<::std::string::String> {
331 self.inner.get_platform()
332 }
333 /// <p>The name of the role to use when not using the default role, 'vmimport'.</p>
334 pub fn role_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
335 self.inner = self.inner.role_name(input.into());
336 self
337 }
338 /// <p>The name of the role to use when not using the default role, 'vmimport'.</p>
339 pub fn set_role_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
340 self.inner = self.inner.set_role_name(input);
341 self
342 }
343 /// <p>The name of the role to use when not using the default role, 'vmimport'.</p>
344 pub fn get_role_name(&self) -> &::std::option::Option<::std::string::String> {
345 self.inner.get_role_name()
346 }
347 ///
348 /// Appends an item to `LicenseSpecifications`.
349 ///
350 /// To override the contents of this collection use [`set_license_specifications`](Self::set_license_specifications).
351 ///
352 /// <p>The ARNs of the license configurations.</p>
353 pub fn license_specifications(mut self, input: crate::types::ImportImageLicenseConfigurationRequest) -> Self {
354 self.inner = self.inner.license_specifications(input);
355 self
356 }
357 /// <p>The ARNs of the license configurations.</p>
358 pub fn set_license_specifications(
359 mut self,
360 input: ::std::option::Option<::std::vec::Vec<crate::types::ImportImageLicenseConfigurationRequest>>,
361 ) -> Self {
362 self.inner = self.inner.set_license_specifications(input);
363 self
364 }
365 /// <p>The ARNs of the license configurations.</p>
366 pub fn get_license_specifications(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ImportImageLicenseConfigurationRequest>> {
367 self.inner.get_license_specifications()
368 }
369 ///
370 /// Appends an item to `TagSpecifications`.
371 ///
372 /// To override the contents of this collection use [`set_tag_specifications`](Self::set_tag_specifications).
373 ///
374 /// <p>The tags to apply to the import image task during creation.</p>
375 pub fn tag_specifications(mut self, input: crate::types::TagSpecification) -> Self {
376 self.inner = self.inner.tag_specifications(input);
377 self
378 }
379 /// <p>The tags to apply to the import image task during creation.</p>
380 pub fn set_tag_specifications(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::TagSpecification>>) -> Self {
381 self.inner = self.inner.set_tag_specifications(input);
382 self
383 }
384 /// <p>The tags to apply to the import image task during creation.</p>
385 pub fn get_tag_specifications(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::TagSpecification>> {
386 self.inner.get_tag_specifications()
387 }
388 /// <p>The usage operation value. For more information, see <a href="https://docs.aws.amazon.com/vm-import/latest/userguide/vmie_prereqs.html#prerequisites">Licensing options</a> in the <i>VM Import/Export User Guide</i>.</p>
389 pub fn usage_operation(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
390 self.inner = self.inner.usage_operation(input.into());
391 self
392 }
393 /// <p>The usage operation value. For more information, see <a href="https://docs.aws.amazon.com/vm-import/latest/userguide/vmie_prereqs.html#prerequisites">Licensing options</a> in the <i>VM Import/Export User Guide</i>.</p>
394 pub fn set_usage_operation(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
395 self.inner = self.inner.set_usage_operation(input);
396 self
397 }
398 /// <p>The usage operation value. For more information, see <a href="https://docs.aws.amazon.com/vm-import/latest/userguide/vmie_prereqs.html#prerequisites">Licensing options</a> in the <i>VM Import/Export User Guide</i>.</p>
399 pub fn get_usage_operation(&self) -> &::std::option::Option<::std::string::String> {
400 self.inner.get_usage_operation()
401 }
402 /// <p>The boot mode of the virtual machine.</p><note>
403 /// <p>The <code>uefi-preferred</code> boot mode isn't supported for importing images. For more information, see <a href="https://docs.aws.amazon.com/vm-import/latest/userguide/prerequisites.html#vmimport-boot-modes">Boot modes</a> in the <i>VM Import/Export User Guide</i>.</p>
404 /// </note>
405 pub fn boot_mode(mut self, input: crate::types::BootModeValues) -> Self {
406 self.inner = self.inner.boot_mode(input);
407 self
408 }
409 /// <p>The boot mode of the virtual machine.</p><note>
410 /// <p>The <code>uefi-preferred</code> boot mode isn't supported for importing images. For more information, see <a href="https://docs.aws.amazon.com/vm-import/latest/userguide/prerequisites.html#vmimport-boot-modes">Boot modes</a> in the <i>VM Import/Export User Guide</i>.</p>
411 /// </note>
412 pub fn set_boot_mode(mut self, input: ::std::option::Option<crate::types::BootModeValues>) -> Self {
413 self.inner = self.inner.set_boot_mode(input);
414 self
415 }
416 /// <p>The boot mode of the virtual machine.</p><note>
417 /// <p>The <code>uefi-preferred</code> boot mode isn't supported for importing images. For more information, see <a href="https://docs.aws.amazon.com/vm-import/latest/userguide/prerequisites.html#vmimport-boot-modes">Boot modes</a> in the <i>VM Import/Export User Guide</i>.</p>
418 /// </note>
419 pub fn get_boot_mode(&self) -> &::std::option::Option<crate::types::BootModeValues> {
420 self.inner.get_boot_mode()
421 }
422}