aws_sdk_appstream/operation/create_image_builder/
builders.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::create_image_builder::_create_image_builder_output::CreateImageBuilderOutputBuilder;
3
4pub use crate::operation::create_image_builder::_create_image_builder_input::CreateImageBuilderInputBuilder;
5
6impl crate::operation::create_image_builder::builders::CreateImageBuilderInputBuilder {
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::create_image_builder::CreateImageBuilderOutput,
13        ::aws_smithy_runtime_api::client::result::SdkError<
14            crate::operation::create_image_builder::CreateImageBuilderError,
15            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16        >,
17    > {
18        let mut fluent_builder = client.create_image_builder();
19        fluent_builder.inner = self;
20        fluent_builder.send().await
21    }
22}
23/// Fluent builder constructing a request to `CreateImageBuilder`.
24///
25/// <p>Creates an image builder. An image builder is a virtual machine that is used to create an image.</p>
26/// <p>The initial state of the builder is <code>PENDING</code>. When it is ready, the state is <code>RUNNING</code>.</p>
27#[derive(::std::clone::Clone, ::std::fmt::Debug)]
28pub struct CreateImageBuilderFluentBuilder {
29    handle: ::std::sync::Arc<crate::client::Handle>,
30    inner: crate::operation::create_image_builder::builders::CreateImageBuilderInputBuilder,
31    config_override: ::std::option::Option<crate::config::Builder>,
32}
33impl
34    crate::client::customize::internal::CustomizableSend<
35        crate::operation::create_image_builder::CreateImageBuilderOutput,
36        crate::operation::create_image_builder::CreateImageBuilderError,
37    > for CreateImageBuilderFluentBuilder
38{
39    fn send(
40        self,
41        config_override: crate::config::Builder,
42    ) -> crate::client::customize::internal::BoxFuture<
43        crate::client::customize::internal::SendResult<
44            crate::operation::create_image_builder::CreateImageBuilderOutput,
45            crate::operation::create_image_builder::CreateImageBuilderError,
46        >,
47    > {
48        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
49    }
50}
51impl CreateImageBuilderFluentBuilder {
52    /// Creates a new `CreateImageBuilderFluentBuilder`.
53    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
54        Self {
55            handle,
56            inner: ::std::default::Default::default(),
57            config_override: ::std::option::Option::None,
58        }
59    }
60    /// Access the CreateImageBuilder as a reference.
61    pub fn as_input(&self) -> &crate::operation::create_image_builder::builders::CreateImageBuilderInputBuilder {
62        &self.inner
63    }
64    /// Sends the request and returns the response.
65    ///
66    /// If an error occurs, an `SdkError` will be returned with additional details that
67    /// can be matched against.
68    ///
69    /// By default, any retryable failures will be retried twice. Retry behavior
70    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
71    /// set when configuring the client.
72    pub async fn send(
73        self,
74    ) -> ::std::result::Result<
75        crate::operation::create_image_builder::CreateImageBuilderOutput,
76        ::aws_smithy_runtime_api::client::result::SdkError<
77            crate::operation::create_image_builder::CreateImageBuilderError,
78            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
79        >,
80    > {
81        let input = self
82            .inner
83            .build()
84            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
85        let runtime_plugins = crate::operation::create_image_builder::CreateImageBuilder::operation_runtime_plugins(
86            self.handle.runtime_plugins.clone(),
87            &self.handle.conf,
88            self.config_override,
89        );
90        crate::operation::create_image_builder::CreateImageBuilder::orchestrate(&runtime_plugins, input).await
91    }
92
93    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
94    pub fn customize(
95        self,
96    ) -> crate::client::customize::CustomizableOperation<
97        crate::operation::create_image_builder::CreateImageBuilderOutput,
98        crate::operation::create_image_builder::CreateImageBuilderError,
99        Self,
100    > {
101        crate::client::customize::CustomizableOperation::new(self)
102    }
103    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
104        self.set_config_override(::std::option::Option::Some(config_override.into()));
105        self
106    }
107
108    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
109        self.config_override = config_override;
110        self
111    }
112    /// <p>A unique name for the image builder.</p>
113    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
114        self.inner = self.inner.name(input.into());
115        self
116    }
117    /// <p>A unique name for the image builder.</p>
118    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
119        self.inner = self.inner.set_name(input);
120        self
121    }
122    /// <p>A unique name for the image builder.</p>
123    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
124        self.inner.get_name()
125    }
126    /// <p>The name of the image used to create the image builder.</p>
127    pub fn image_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
128        self.inner = self.inner.image_name(input.into());
129        self
130    }
131    /// <p>The name of the image used to create the image builder.</p>
132    pub fn set_image_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
133        self.inner = self.inner.set_image_name(input);
134        self
135    }
136    /// <p>The name of the image used to create the image builder.</p>
137    pub fn get_image_name(&self) -> &::std::option::Option<::std::string::String> {
138        self.inner.get_image_name()
139    }
140    /// <p>The ARN of the public, private, or shared image to use.</p>
141    pub fn image_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
142        self.inner = self.inner.image_arn(input.into());
143        self
144    }
145    /// <p>The ARN of the public, private, or shared image to use.</p>
146    pub fn set_image_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
147        self.inner = self.inner.set_image_arn(input);
148        self
149    }
150    /// <p>The ARN of the public, private, or shared image to use.</p>
151    pub fn get_image_arn(&self) -> &::std::option::Option<::std::string::String> {
152        self.inner.get_image_arn()
153    }
154    /// <p>The instance type to use when launching the image builder. The following instance types are available:</p>
155    /// <ul>
156    /// <li>
157    /// <p>stream.standard.small</p></li>
158    /// <li>
159    /// <p>stream.standard.medium</p></li>
160    /// <li>
161    /// <p>stream.standard.large</p></li>
162    /// <li>
163    /// <p>stream.compute.large</p></li>
164    /// <li>
165    /// <p>stream.compute.xlarge</p></li>
166    /// <li>
167    /// <p>stream.compute.2xlarge</p></li>
168    /// <li>
169    /// <p>stream.compute.4xlarge</p></li>
170    /// <li>
171    /// <p>stream.compute.8xlarge</p></li>
172    /// <li>
173    /// <p>stream.memory.large</p></li>
174    /// <li>
175    /// <p>stream.memory.xlarge</p></li>
176    /// <li>
177    /// <p>stream.memory.2xlarge</p></li>
178    /// <li>
179    /// <p>stream.memory.4xlarge</p></li>
180    /// <li>
181    /// <p>stream.memory.8xlarge</p></li>
182    /// <li>
183    /// <p>stream.memory.z1d.large</p></li>
184    /// <li>
185    /// <p>stream.memory.z1d.xlarge</p></li>
186    /// <li>
187    /// <p>stream.memory.z1d.2xlarge</p></li>
188    /// <li>
189    /// <p>stream.memory.z1d.3xlarge</p></li>
190    /// <li>
191    /// <p>stream.memory.z1d.6xlarge</p></li>
192    /// <li>
193    /// <p>stream.memory.z1d.12xlarge</p></li>
194    /// <li>
195    /// <p>stream.graphics-design.large</p></li>
196    /// <li>
197    /// <p>stream.graphics-design.xlarge</p></li>
198    /// <li>
199    /// <p>stream.graphics-design.2xlarge</p></li>
200    /// <li>
201    /// <p>stream.graphics-design.4xlarge</p></li>
202    /// <li>
203    /// <p>stream.graphics-desktop.2xlarge</p></li>
204    /// <li>
205    /// <p>stream.graphics.g4dn.xlarge</p></li>
206    /// <li>
207    /// <p>stream.graphics.g4dn.2xlarge</p></li>
208    /// <li>
209    /// <p>stream.graphics.g4dn.4xlarge</p></li>
210    /// <li>
211    /// <p>stream.graphics.g4dn.8xlarge</p></li>
212    /// <li>
213    /// <p>stream.graphics.g4dn.12xlarge</p></li>
214    /// <li>
215    /// <p>stream.graphics.g4dn.16xlarge</p></li>
216    /// <li>
217    /// <p>stream.graphics-pro.4xlarge</p></li>
218    /// <li>
219    /// <p>stream.graphics-pro.8xlarge</p></li>
220    /// <li>
221    /// <p>stream.graphics-pro.16xlarge</p></li>
222    /// <li>
223    /// <p>stream.graphics.g5.xlarge</p></li>
224    /// <li>
225    /// <p>stream.graphics.g5.2xlarge</p></li>
226    /// <li>
227    /// <p>stream.graphics.g5.4xlarge</p></li>
228    /// <li>
229    /// <p>stream.graphics.g5.8xlarge</p></li>
230    /// <li>
231    /// <p>stream.graphics.g5.16xlarge</p></li>
232    /// <li>
233    /// <p>stream.graphics.g5.12xlarge</p></li>
234    /// <li>
235    /// <p>stream.graphics.g5.24xlarge</p></li>
236    /// <li>
237    /// <p>stream.graphics.g6.xlarge</p></li>
238    /// <li>
239    /// <p>stream.graphics.g6.2xlarge</p></li>
240    /// <li>
241    /// <p>stream.graphics.g6.4xlarge</p></li>
242    /// <li>
243    /// <p>stream.graphics.g6.8xlarge</p></li>
244    /// <li>
245    /// <p>stream.graphics.g6.16xlarge</p></li>
246    /// <li>
247    /// <p>stream.graphics.g6.12xlarge</p></li>
248    /// <li>
249    /// <p>stream.graphics.g6.24xlarge</p></li>
250    /// <li>
251    /// <p>stream.graphics.gr6.4xlarge</p></li>
252    /// <li>
253    /// <p>stream.graphics.gr6.8xlarge</p></li>
254    /// </ul>
255    pub fn instance_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
256        self.inner = self.inner.instance_type(input.into());
257        self
258    }
259    /// <p>The instance type to use when launching the image builder. The following instance types are available:</p>
260    /// <ul>
261    /// <li>
262    /// <p>stream.standard.small</p></li>
263    /// <li>
264    /// <p>stream.standard.medium</p></li>
265    /// <li>
266    /// <p>stream.standard.large</p></li>
267    /// <li>
268    /// <p>stream.compute.large</p></li>
269    /// <li>
270    /// <p>stream.compute.xlarge</p></li>
271    /// <li>
272    /// <p>stream.compute.2xlarge</p></li>
273    /// <li>
274    /// <p>stream.compute.4xlarge</p></li>
275    /// <li>
276    /// <p>stream.compute.8xlarge</p></li>
277    /// <li>
278    /// <p>stream.memory.large</p></li>
279    /// <li>
280    /// <p>stream.memory.xlarge</p></li>
281    /// <li>
282    /// <p>stream.memory.2xlarge</p></li>
283    /// <li>
284    /// <p>stream.memory.4xlarge</p></li>
285    /// <li>
286    /// <p>stream.memory.8xlarge</p></li>
287    /// <li>
288    /// <p>stream.memory.z1d.large</p></li>
289    /// <li>
290    /// <p>stream.memory.z1d.xlarge</p></li>
291    /// <li>
292    /// <p>stream.memory.z1d.2xlarge</p></li>
293    /// <li>
294    /// <p>stream.memory.z1d.3xlarge</p></li>
295    /// <li>
296    /// <p>stream.memory.z1d.6xlarge</p></li>
297    /// <li>
298    /// <p>stream.memory.z1d.12xlarge</p></li>
299    /// <li>
300    /// <p>stream.graphics-design.large</p></li>
301    /// <li>
302    /// <p>stream.graphics-design.xlarge</p></li>
303    /// <li>
304    /// <p>stream.graphics-design.2xlarge</p></li>
305    /// <li>
306    /// <p>stream.graphics-design.4xlarge</p></li>
307    /// <li>
308    /// <p>stream.graphics-desktop.2xlarge</p></li>
309    /// <li>
310    /// <p>stream.graphics.g4dn.xlarge</p></li>
311    /// <li>
312    /// <p>stream.graphics.g4dn.2xlarge</p></li>
313    /// <li>
314    /// <p>stream.graphics.g4dn.4xlarge</p></li>
315    /// <li>
316    /// <p>stream.graphics.g4dn.8xlarge</p></li>
317    /// <li>
318    /// <p>stream.graphics.g4dn.12xlarge</p></li>
319    /// <li>
320    /// <p>stream.graphics.g4dn.16xlarge</p></li>
321    /// <li>
322    /// <p>stream.graphics-pro.4xlarge</p></li>
323    /// <li>
324    /// <p>stream.graphics-pro.8xlarge</p></li>
325    /// <li>
326    /// <p>stream.graphics-pro.16xlarge</p></li>
327    /// <li>
328    /// <p>stream.graphics.g5.xlarge</p></li>
329    /// <li>
330    /// <p>stream.graphics.g5.2xlarge</p></li>
331    /// <li>
332    /// <p>stream.graphics.g5.4xlarge</p></li>
333    /// <li>
334    /// <p>stream.graphics.g5.8xlarge</p></li>
335    /// <li>
336    /// <p>stream.graphics.g5.16xlarge</p></li>
337    /// <li>
338    /// <p>stream.graphics.g5.12xlarge</p></li>
339    /// <li>
340    /// <p>stream.graphics.g5.24xlarge</p></li>
341    /// <li>
342    /// <p>stream.graphics.g6.xlarge</p></li>
343    /// <li>
344    /// <p>stream.graphics.g6.2xlarge</p></li>
345    /// <li>
346    /// <p>stream.graphics.g6.4xlarge</p></li>
347    /// <li>
348    /// <p>stream.graphics.g6.8xlarge</p></li>
349    /// <li>
350    /// <p>stream.graphics.g6.16xlarge</p></li>
351    /// <li>
352    /// <p>stream.graphics.g6.12xlarge</p></li>
353    /// <li>
354    /// <p>stream.graphics.g6.24xlarge</p></li>
355    /// <li>
356    /// <p>stream.graphics.gr6.4xlarge</p></li>
357    /// <li>
358    /// <p>stream.graphics.gr6.8xlarge</p></li>
359    /// </ul>
360    pub fn set_instance_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
361        self.inner = self.inner.set_instance_type(input);
362        self
363    }
364    /// <p>The instance type to use when launching the image builder. The following instance types are available:</p>
365    /// <ul>
366    /// <li>
367    /// <p>stream.standard.small</p></li>
368    /// <li>
369    /// <p>stream.standard.medium</p></li>
370    /// <li>
371    /// <p>stream.standard.large</p></li>
372    /// <li>
373    /// <p>stream.compute.large</p></li>
374    /// <li>
375    /// <p>stream.compute.xlarge</p></li>
376    /// <li>
377    /// <p>stream.compute.2xlarge</p></li>
378    /// <li>
379    /// <p>stream.compute.4xlarge</p></li>
380    /// <li>
381    /// <p>stream.compute.8xlarge</p></li>
382    /// <li>
383    /// <p>stream.memory.large</p></li>
384    /// <li>
385    /// <p>stream.memory.xlarge</p></li>
386    /// <li>
387    /// <p>stream.memory.2xlarge</p></li>
388    /// <li>
389    /// <p>stream.memory.4xlarge</p></li>
390    /// <li>
391    /// <p>stream.memory.8xlarge</p></li>
392    /// <li>
393    /// <p>stream.memory.z1d.large</p></li>
394    /// <li>
395    /// <p>stream.memory.z1d.xlarge</p></li>
396    /// <li>
397    /// <p>stream.memory.z1d.2xlarge</p></li>
398    /// <li>
399    /// <p>stream.memory.z1d.3xlarge</p></li>
400    /// <li>
401    /// <p>stream.memory.z1d.6xlarge</p></li>
402    /// <li>
403    /// <p>stream.memory.z1d.12xlarge</p></li>
404    /// <li>
405    /// <p>stream.graphics-design.large</p></li>
406    /// <li>
407    /// <p>stream.graphics-design.xlarge</p></li>
408    /// <li>
409    /// <p>stream.graphics-design.2xlarge</p></li>
410    /// <li>
411    /// <p>stream.graphics-design.4xlarge</p></li>
412    /// <li>
413    /// <p>stream.graphics-desktop.2xlarge</p></li>
414    /// <li>
415    /// <p>stream.graphics.g4dn.xlarge</p></li>
416    /// <li>
417    /// <p>stream.graphics.g4dn.2xlarge</p></li>
418    /// <li>
419    /// <p>stream.graphics.g4dn.4xlarge</p></li>
420    /// <li>
421    /// <p>stream.graphics.g4dn.8xlarge</p></li>
422    /// <li>
423    /// <p>stream.graphics.g4dn.12xlarge</p></li>
424    /// <li>
425    /// <p>stream.graphics.g4dn.16xlarge</p></li>
426    /// <li>
427    /// <p>stream.graphics-pro.4xlarge</p></li>
428    /// <li>
429    /// <p>stream.graphics-pro.8xlarge</p></li>
430    /// <li>
431    /// <p>stream.graphics-pro.16xlarge</p></li>
432    /// <li>
433    /// <p>stream.graphics.g5.xlarge</p></li>
434    /// <li>
435    /// <p>stream.graphics.g5.2xlarge</p></li>
436    /// <li>
437    /// <p>stream.graphics.g5.4xlarge</p></li>
438    /// <li>
439    /// <p>stream.graphics.g5.8xlarge</p></li>
440    /// <li>
441    /// <p>stream.graphics.g5.16xlarge</p></li>
442    /// <li>
443    /// <p>stream.graphics.g5.12xlarge</p></li>
444    /// <li>
445    /// <p>stream.graphics.g5.24xlarge</p></li>
446    /// <li>
447    /// <p>stream.graphics.g6.xlarge</p></li>
448    /// <li>
449    /// <p>stream.graphics.g6.2xlarge</p></li>
450    /// <li>
451    /// <p>stream.graphics.g6.4xlarge</p></li>
452    /// <li>
453    /// <p>stream.graphics.g6.8xlarge</p></li>
454    /// <li>
455    /// <p>stream.graphics.g6.16xlarge</p></li>
456    /// <li>
457    /// <p>stream.graphics.g6.12xlarge</p></li>
458    /// <li>
459    /// <p>stream.graphics.g6.24xlarge</p></li>
460    /// <li>
461    /// <p>stream.graphics.gr6.4xlarge</p></li>
462    /// <li>
463    /// <p>stream.graphics.gr6.8xlarge</p></li>
464    /// </ul>
465    pub fn get_instance_type(&self) -> &::std::option::Option<::std::string::String> {
466        self.inner.get_instance_type()
467    }
468    /// <p>The description to display.</p>
469    pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
470        self.inner = self.inner.description(input.into());
471        self
472    }
473    /// <p>The description to display.</p>
474    pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
475        self.inner = self.inner.set_description(input);
476        self
477    }
478    /// <p>The description to display.</p>
479    pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
480        self.inner.get_description()
481    }
482    /// <p>The image builder name to display.</p>
483    pub fn display_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
484        self.inner = self.inner.display_name(input.into());
485        self
486    }
487    /// <p>The image builder name to display.</p>
488    pub fn set_display_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
489        self.inner = self.inner.set_display_name(input);
490        self
491    }
492    /// <p>The image builder name to display.</p>
493    pub fn get_display_name(&self) -> &::std::option::Option<::std::string::String> {
494        self.inner.get_display_name()
495    }
496    /// <p>The VPC configuration for the image builder. You can specify only one subnet.</p>
497    pub fn vpc_config(mut self, input: crate::types::VpcConfig) -> Self {
498        self.inner = self.inner.vpc_config(input);
499        self
500    }
501    /// <p>The VPC configuration for the image builder. You can specify only one subnet.</p>
502    pub fn set_vpc_config(mut self, input: ::std::option::Option<crate::types::VpcConfig>) -> Self {
503        self.inner = self.inner.set_vpc_config(input);
504        self
505    }
506    /// <p>The VPC configuration for the image builder. You can specify only one subnet.</p>
507    pub fn get_vpc_config(&self) -> &::std::option::Option<crate::types::VpcConfig> {
508        self.inner.get_vpc_config()
509    }
510    /// <p>The Amazon Resource Name (ARN) of the IAM role to apply to the image builder. To assume a role, the image builder calls the AWS Security Token Service (STS) <code>AssumeRole</code> API operation and passes the ARN of the role to use. The operation creates a new session with temporary credentials. AppStream 2.0 retrieves the temporary credentials and creates the <b>appstream_machine_role</b> credential profile on the instance.</p>
511    /// <p>For more information, see <a href="https://docs.aws.amazon.com/appstream2/latest/developerguide/using-iam-roles-to-grant-permissions-to-applications-scripts-streaming-instances.html">Using an IAM Role to Grant Permissions to Applications and Scripts Running on AppStream 2.0 Streaming Instances</a> in the <i>Amazon AppStream 2.0 Administration Guide</i>.</p>
512    pub fn iam_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
513        self.inner = self.inner.iam_role_arn(input.into());
514        self
515    }
516    /// <p>The Amazon Resource Name (ARN) of the IAM role to apply to the image builder. To assume a role, the image builder calls the AWS Security Token Service (STS) <code>AssumeRole</code> API operation and passes the ARN of the role to use. The operation creates a new session with temporary credentials. AppStream 2.0 retrieves the temporary credentials and creates the <b>appstream_machine_role</b> credential profile on the instance.</p>
517    /// <p>For more information, see <a href="https://docs.aws.amazon.com/appstream2/latest/developerguide/using-iam-roles-to-grant-permissions-to-applications-scripts-streaming-instances.html">Using an IAM Role to Grant Permissions to Applications and Scripts Running on AppStream 2.0 Streaming Instances</a> in the <i>Amazon AppStream 2.0 Administration Guide</i>.</p>
518    pub fn set_iam_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
519        self.inner = self.inner.set_iam_role_arn(input);
520        self
521    }
522    /// <p>The Amazon Resource Name (ARN) of the IAM role to apply to the image builder. To assume a role, the image builder calls the AWS Security Token Service (STS) <code>AssumeRole</code> API operation and passes the ARN of the role to use. The operation creates a new session with temporary credentials. AppStream 2.0 retrieves the temporary credentials and creates the <b>appstream_machine_role</b> credential profile on the instance.</p>
523    /// <p>For more information, see <a href="https://docs.aws.amazon.com/appstream2/latest/developerguide/using-iam-roles-to-grant-permissions-to-applications-scripts-streaming-instances.html">Using an IAM Role to Grant Permissions to Applications and Scripts Running on AppStream 2.0 Streaming Instances</a> in the <i>Amazon AppStream 2.0 Administration Guide</i>.</p>
524    pub fn get_iam_role_arn(&self) -> &::std::option::Option<::std::string::String> {
525        self.inner.get_iam_role_arn()
526    }
527    /// <p>Enables or disables default internet access for the image builder.</p>
528    pub fn enable_default_internet_access(mut self, input: bool) -> Self {
529        self.inner = self.inner.enable_default_internet_access(input);
530        self
531    }
532    /// <p>Enables or disables default internet access for the image builder.</p>
533    pub fn set_enable_default_internet_access(mut self, input: ::std::option::Option<bool>) -> Self {
534        self.inner = self.inner.set_enable_default_internet_access(input);
535        self
536    }
537    /// <p>Enables or disables default internet access for the image builder.</p>
538    pub fn get_enable_default_internet_access(&self) -> &::std::option::Option<bool> {
539        self.inner.get_enable_default_internet_access()
540    }
541    /// <p>The name of the directory and organizational unit (OU) to use to join the image builder to a Microsoft Active Directory domain.</p>
542    pub fn domain_join_info(mut self, input: crate::types::DomainJoinInfo) -> Self {
543        self.inner = self.inner.domain_join_info(input);
544        self
545    }
546    /// <p>The name of the directory and organizational unit (OU) to use to join the image builder to a Microsoft Active Directory domain.</p>
547    pub fn set_domain_join_info(mut self, input: ::std::option::Option<crate::types::DomainJoinInfo>) -> Self {
548        self.inner = self.inner.set_domain_join_info(input);
549        self
550    }
551    /// <p>The name of the directory and organizational unit (OU) to use to join the image builder to a Microsoft Active Directory domain.</p>
552    pub fn get_domain_join_info(&self) -> &::std::option::Option<crate::types::DomainJoinInfo> {
553        self.inner.get_domain_join_info()
554    }
555    /// <p>The version of the AppStream 2.0 agent to use for this image builder. To use the latest version of the AppStream 2.0 agent, specify \[LATEST\].</p>
556    pub fn appstream_agent_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
557        self.inner = self.inner.appstream_agent_version(input.into());
558        self
559    }
560    /// <p>The version of the AppStream 2.0 agent to use for this image builder. To use the latest version of the AppStream 2.0 agent, specify \[LATEST\].</p>
561    pub fn set_appstream_agent_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
562        self.inner = self.inner.set_appstream_agent_version(input);
563        self
564    }
565    /// <p>The version of the AppStream 2.0 agent to use for this image builder. To use the latest version of the AppStream 2.0 agent, specify \[LATEST\].</p>
566    pub fn get_appstream_agent_version(&self) -> &::std::option::Option<::std::string::String> {
567        self.inner.get_appstream_agent_version()
568    }
569    ///
570    /// Adds a key-value pair to `Tags`.
571    ///
572    /// To override the contents of this collection use [`set_tags`](Self::set_tags).
573    ///
574    /// <p>The tags to associate with the image builder. A tag is a key-value pair, and the value is optional. For example, Environment=Test. If you do not specify a value, Environment=.</p>
575    /// <p>Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following special characters:</p>
576    /// <p>_ . : / = + \ - @</p>
577    /// <p>If you do not specify a value, the value is set to an empty string.</p>
578    /// <p>For more information about tags, see <a href="https://docs.aws.amazon.com/appstream2/latest/developerguide/tagging-basic.html">Tagging Your Resources</a> in the <i>Amazon AppStream 2.0 Administration Guide</i>.</p>
579    pub fn tags(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
580        self.inner = self.inner.tags(k.into(), v.into());
581        self
582    }
583    /// <p>The tags to associate with the image builder. A tag is a key-value pair, and the value is optional. For example, Environment=Test. If you do not specify a value, Environment=.</p>
584    /// <p>Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following special characters:</p>
585    /// <p>_ . : / = + \ - @</p>
586    /// <p>If you do not specify a value, the value is set to an empty string.</p>
587    /// <p>For more information about tags, see <a href="https://docs.aws.amazon.com/appstream2/latest/developerguide/tagging-basic.html">Tagging Your Resources</a> in the <i>Amazon AppStream 2.0 Administration Guide</i>.</p>
588    pub fn set_tags(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self {
589        self.inner = self.inner.set_tags(input);
590        self
591    }
592    /// <p>The tags to associate with the image builder. A tag is a key-value pair, and the value is optional. For example, Environment=Test. If you do not specify a value, Environment=.</p>
593    /// <p>Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following special characters:</p>
594    /// <p>_ . : / = + \ - @</p>
595    /// <p>If you do not specify a value, the value is set to an empty string.</p>
596    /// <p>For more information about tags, see <a href="https://docs.aws.amazon.com/appstream2/latest/developerguide/tagging-basic.html">Tagging Your Resources</a> in the <i>Amazon AppStream 2.0 Administration Guide</i>.</p>
597    pub fn get_tags(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
598        self.inner.get_tags()
599    }
600    ///
601    /// Appends an item to `AccessEndpoints`.
602    ///
603    /// To override the contents of this collection use [`set_access_endpoints`](Self::set_access_endpoints).
604    ///
605    /// <p>The list of interface VPC endpoint (interface endpoint) objects. Administrators can connect to the image builder only through the specified endpoints.</p>
606    pub fn access_endpoints(mut self, input: crate::types::AccessEndpoint) -> Self {
607        self.inner = self.inner.access_endpoints(input);
608        self
609    }
610    /// <p>The list of interface VPC endpoint (interface endpoint) objects. Administrators can connect to the image builder only through the specified endpoints.</p>
611    pub fn set_access_endpoints(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::AccessEndpoint>>) -> Self {
612        self.inner = self.inner.set_access_endpoints(input);
613        self
614    }
615    /// <p>The list of interface VPC endpoint (interface endpoint) objects. Administrators can connect to the image builder only through the specified endpoints.</p>
616    pub fn get_access_endpoints(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::AccessEndpoint>> {
617        self.inner.get_access_endpoints()
618    }
619}