aws_sdk_appstream/operation/update_fleet/
_update_fleet_input.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2#[allow(missing_docs)] // documentation missing in model
3#[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct UpdateFleetInput {
6    /// <p>The name of the image used to create the fleet.</p>
7    pub image_name: ::std::option::Option<::std::string::String>,
8    /// <p>The ARN of the public, private, or shared image to use.</p>
9    pub image_arn: ::std::option::Option<::std::string::String>,
10    /// <p>A unique name for the fleet.</p>
11    pub name: ::std::option::Option<::std::string::String>,
12    /// <p>The instance type to use when launching fleet instances. The following instance types are available:</p>
13    /// <ul>
14    /// <li>
15    /// <p>stream.standard.small</p></li>
16    /// <li>
17    /// <p>stream.standard.medium</p></li>
18    /// <li>
19    /// <p>stream.standard.large</p></li>
20    /// <li>
21    /// <p>stream.standard.xlarge</p></li>
22    /// <li>
23    /// <p>stream.standard.2xlarge</p></li>
24    /// <li>
25    /// <p>stream.compute.large</p></li>
26    /// <li>
27    /// <p>stream.compute.xlarge</p></li>
28    /// <li>
29    /// <p>stream.compute.2xlarge</p></li>
30    /// <li>
31    /// <p>stream.compute.4xlarge</p></li>
32    /// <li>
33    /// <p>stream.compute.8xlarge</p></li>
34    /// <li>
35    /// <p>stream.memory.large</p></li>
36    /// <li>
37    /// <p>stream.memory.xlarge</p></li>
38    /// <li>
39    /// <p>stream.memory.2xlarge</p></li>
40    /// <li>
41    /// <p>stream.memory.4xlarge</p></li>
42    /// <li>
43    /// <p>stream.memory.8xlarge</p></li>
44    /// <li>
45    /// <p>stream.memory.z1d.large</p></li>
46    /// <li>
47    /// <p>stream.memory.z1d.xlarge</p></li>
48    /// <li>
49    /// <p>stream.memory.z1d.2xlarge</p></li>
50    /// <li>
51    /// <p>stream.memory.z1d.3xlarge</p></li>
52    /// <li>
53    /// <p>stream.memory.z1d.6xlarge</p></li>
54    /// <li>
55    /// <p>stream.memory.z1d.12xlarge</p></li>
56    /// <li>
57    /// <p>stream.graphics-design.large</p></li>
58    /// <li>
59    /// <p>stream.graphics-design.xlarge</p></li>
60    /// <li>
61    /// <p>stream.graphics-design.2xlarge</p></li>
62    /// <li>
63    /// <p>stream.graphics-design.4xlarge</p></li>
64    /// <li>
65    /// <p>stream.graphics-desktop.2xlarge</p></li>
66    /// <li>
67    /// <p>stream.graphics.g4dn.xlarge</p></li>
68    /// <li>
69    /// <p>stream.graphics.g4dn.2xlarge</p></li>
70    /// <li>
71    /// <p>stream.graphics.g4dn.4xlarge</p></li>
72    /// <li>
73    /// <p>stream.graphics.g4dn.8xlarge</p></li>
74    /// <li>
75    /// <p>stream.graphics.g4dn.12xlarge</p></li>
76    /// <li>
77    /// <p>stream.graphics.g4dn.16xlarge</p></li>
78    /// <li>
79    /// <p>stream.graphics-pro.4xlarge</p></li>
80    /// <li>
81    /// <p>stream.graphics-pro.8xlarge</p></li>
82    /// <li>
83    /// <p>stream.graphics-pro.16xlarge</p></li>
84    /// <li>
85    /// <p>stream.graphics.g5.xlarge</p></li>
86    /// <li>
87    /// <p>stream.graphics.g5.2xlarge</p></li>
88    /// <li>
89    /// <p>stream.graphics.g5.4xlarge</p></li>
90    /// <li>
91    /// <p>stream.graphics.g5.8xlarge</p></li>
92    /// <li>
93    /// <p>stream.graphics.g5.16xlarge</p></li>
94    /// <li>
95    /// <p>stream.graphics.g5.12xlarge</p></li>
96    /// <li>
97    /// <p>stream.graphics.g5.24xlarge</p></li>
98    /// <li>
99    /// <p>stream.graphics.g6.xlarge</p></li>
100    /// <li>
101    /// <p>stream.graphics.g6.2xlarge</p></li>
102    /// <li>
103    /// <p>stream.graphics.g6.4xlarge</p></li>
104    /// <li>
105    /// <p>stream.graphics.g6.8xlarge</p></li>
106    /// <li>
107    /// <p>stream.graphics.g6.16xlarge</p></li>
108    /// <li>
109    /// <p>stream.graphics.g6.12xlarge</p></li>
110    /// <li>
111    /// <p>stream.graphics.g6.24xlarge</p></li>
112    /// <li>
113    /// <p>stream.graphics.gr6.4xlarge</p></li>
114    /// <li>
115    /// <p>stream.graphics.gr6.8xlarge</p></li>
116    /// <li>
117    /// <p>stream.graphics.g6f.large</p></li>
118    /// <li>
119    /// <p>stream.graphics.g6f.xlarge</p></li>
120    /// <li>
121    /// <p>stream.graphics.g6f.2xlarge</p></li>
122    /// <li>
123    /// <p>stream.graphics.g6f.4xlarge</p></li>
124    /// <li>
125    /// <p>stream.graphics.gr6f.4xlarge</p></li>
126    /// </ul>
127    /// <p>The following instance types are available for Elastic fleets:</p>
128    /// <ul>
129    /// <li>
130    /// <p>stream.standard.small</p></li>
131    /// <li>
132    /// <p>stream.standard.medium</p></li>
133    /// <li>
134    /// <p>stream.standard.large</p></li>
135    /// <li>
136    /// <p>stream.standard.xlarge</p></li>
137    /// <li>
138    /// <p>stream.standard.2xlarge</p></li>
139    /// </ul>
140    pub instance_type: ::std::option::Option<::std::string::String>,
141    /// <p>The desired capacity for the fleet. This is not allowed for Elastic fleets.</p>
142    pub compute_capacity: ::std::option::Option<crate::types::ComputeCapacity>,
143    /// <p>The VPC configuration for the fleet. This is required for Elastic fleets, but not required for other fleet types. Elastic fleets require that you specify at least two subnets in different availability zones.</p>
144    pub vpc_config: ::std::option::Option<crate::types::VpcConfig>,
145    /// <p>The maximum amount of time that a streaming session can remain active, in seconds. If users are still connected to a streaming instance five minutes before this limit is reached, they are prompted to save any open documents before being disconnected. After this time elapses, the instance is terminated and replaced by a new instance.</p>
146    /// <p>Specify a value between 600 and 432000.</p>
147    pub max_user_duration_in_seconds: ::std::option::Option<i32>,
148    /// <p>The amount of time that a streaming session remains active after users disconnect. If users try to reconnect to the streaming session after a disconnection or network interruption within this time interval, they are connected to their previous session. Otherwise, they are connected to a new session with a new streaming instance.</p>
149    /// <p>Specify a value between 60 and 36000.</p>
150    pub disconnect_timeout_in_seconds: ::std::option::Option<i32>,
151    /// <p>Deletes the VPC association for the specified fleet.</p>
152    #[deprecated]
153    pub delete_vpc_config: ::std::option::Option<bool>,
154    /// <p>The description to display.</p>
155    pub description: ::std::option::Option<::std::string::String>,
156    /// <p>The fleet name to display.</p>
157    pub display_name: ::std::option::Option<::std::string::String>,
158    /// <p>Enables or disables default internet access for the fleet.</p>
159    pub enable_default_internet_access: ::std::option::Option<bool>,
160    /// <p>The name of the directory and organizational unit (OU) to use to join the fleet to a Microsoft Active Directory domain.</p>
161    pub domain_join_info: ::std::option::Option<crate::types::DomainJoinInfo>,
162    /// <p>The amount of time that users can be idle (inactive) before they are disconnected from their streaming session and the <code>DisconnectTimeoutInSeconds</code> time interval begins. Users are notified before they are disconnected due to inactivity. If users try to reconnect to the streaming session before the time interval specified in <code>DisconnectTimeoutInSeconds</code> elapses, they are connected to their previous session. Users are considered idle when they stop providing keyboard or mouse input during their streaming session. File uploads and downloads, audio in, audio out, and pixels changing do not qualify as user activity. If users continue to be idle after the time interval in <code>IdleDisconnectTimeoutInSeconds</code> elapses, they are disconnected.</p>
163    /// <p>To prevent users from being disconnected due to inactivity, specify a value of 0. Otherwise, specify a value between 60 and 36000. The default value is 0.</p><note>
164    /// <p>If you enable this feature, we recommend that you specify a value that corresponds exactly to a whole number of minutes (for example, 60, 120, and 180). If you don't do this, the value is rounded to the nearest minute. For example, if you specify a value of 70, users are disconnected after 1 minute of inactivity. If you specify a value that is at the midpoint between two different minutes, the value is rounded up. For example, if you specify a value of 90, users are disconnected after 2 minutes of inactivity.</p>
165    /// </note>
166    pub idle_disconnect_timeout_in_seconds: ::std::option::Option<i32>,
167    /// <p>The fleet attributes to delete.</p>
168    pub attributes_to_delete: ::std::option::Option<::std::vec::Vec<crate::types::FleetAttribute>>,
169    /// <p>The Amazon Resource Name (ARN) of the IAM role to apply to the fleet. To assume a role, a fleet instance 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>
170    /// <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>
171    pub iam_role_arn: ::std::option::Option<::std::string::String>,
172    /// <p>The AppStream 2.0 view that is displayed to your users when they stream from the fleet. When <code>APP</code> is specified, only the windows of applications opened by users display. When <code>DESKTOP</code> is specified, the standard desktop that is provided by the operating system displays.</p>
173    /// <p>The default value is <code>APP</code>.</p>
174    pub stream_view: ::std::option::Option<crate::types::StreamView>,
175    /// <p>The platform of the fleet. WINDOWS_SERVER_2019 and AMAZON_LINUX2 are supported for Elastic fleets.</p>
176    pub platform: ::std::option::Option<crate::types::PlatformType>,
177    /// <p>The maximum number of concurrent sessions for a fleet.</p>
178    pub max_concurrent_sessions: ::std::option::Option<i32>,
179    /// <p>The USB device filter strings that specify which USB devices a user can redirect to the fleet streaming session, when using the Windows native client. This is allowed but not required for Elastic fleets.</p>
180    pub usb_device_filter_strings: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
181    /// <p>The S3 location of the session scripts configuration zip file. This only applies to Elastic fleets.</p>
182    pub session_script_s3_location: ::std::option::Option<crate::types::S3Location>,
183    /// <p>The maximum number of user sessions on an instance. This only applies to multi-session fleets.</p>
184    pub max_sessions_per_instance: ::std::option::Option<i32>,
185}
186impl UpdateFleetInput {
187    /// <p>The name of the image used to create the fleet.</p>
188    pub fn image_name(&self) -> ::std::option::Option<&str> {
189        self.image_name.as_deref()
190    }
191    /// <p>The ARN of the public, private, or shared image to use.</p>
192    pub fn image_arn(&self) -> ::std::option::Option<&str> {
193        self.image_arn.as_deref()
194    }
195    /// <p>A unique name for the fleet.</p>
196    pub fn name(&self) -> ::std::option::Option<&str> {
197        self.name.as_deref()
198    }
199    /// <p>The instance type to use when launching fleet instances. The following instance types are available:</p>
200    /// <ul>
201    /// <li>
202    /// <p>stream.standard.small</p></li>
203    /// <li>
204    /// <p>stream.standard.medium</p></li>
205    /// <li>
206    /// <p>stream.standard.large</p></li>
207    /// <li>
208    /// <p>stream.standard.xlarge</p></li>
209    /// <li>
210    /// <p>stream.standard.2xlarge</p></li>
211    /// <li>
212    /// <p>stream.compute.large</p></li>
213    /// <li>
214    /// <p>stream.compute.xlarge</p></li>
215    /// <li>
216    /// <p>stream.compute.2xlarge</p></li>
217    /// <li>
218    /// <p>stream.compute.4xlarge</p></li>
219    /// <li>
220    /// <p>stream.compute.8xlarge</p></li>
221    /// <li>
222    /// <p>stream.memory.large</p></li>
223    /// <li>
224    /// <p>stream.memory.xlarge</p></li>
225    /// <li>
226    /// <p>stream.memory.2xlarge</p></li>
227    /// <li>
228    /// <p>stream.memory.4xlarge</p></li>
229    /// <li>
230    /// <p>stream.memory.8xlarge</p></li>
231    /// <li>
232    /// <p>stream.memory.z1d.large</p></li>
233    /// <li>
234    /// <p>stream.memory.z1d.xlarge</p></li>
235    /// <li>
236    /// <p>stream.memory.z1d.2xlarge</p></li>
237    /// <li>
238    /// <p>stream.memory.z1d.3xlarge</p></li>
239    /// <li>
240    /// <p>stream.memory.z1d.6xlarge</p></li>
241    /// <li>
242    /// <p>stream.memory.z1d.12xlarge</p></li>
243    /// <li>
244    /// <p>stream.graphics-design.large</p></li>
245    /// <li>
246    /// <p>stream.graphics-design.xlarge</p></li>
247    /// <li>
248    /// <p>stream.graphics-design.2xlarge</p></li>
249    /// <li>
250    /// <p>stream.graphics-design.4xlarge</p></li>
251    /// <li>
252    /// <p>stream.graphics-desktop.2xlarge</p></li>
253    /// <li>
254    /// <p>stream.graphics.g4dn.xlarge</p></li>
255    /// <li>
256    /// <p>stream.graphics.g4dn.2xlarge</p></li>
257    /// <li>
258    /// <p>stream.graphics.g4dn.4xlarge</p></li>
259    /// <li>
260    /// <p>stream.graphics.g4dn.8xlarge</p></li>
261    /// <li>
262    /// <p>stream.graphics.g4dn.12xlarge</p></li>
263    /// <li>
264    /// <p>stream.graphics.g4dn.16xlarge</p></li>
265    /// <li>
266    /// <p>stream.graphics-pro.4xlarge</p></li>
267    /// <li>
268    /// <p>stream.graphics-pro.8xlarge</p></li>
269    /// <li>
270    /// <p>stream.graphics-pro.16xlarge</p></li>
271    /// <li>
272    /// <p>stream.graphics.g5.xlarge</p></li>
273    /// <li>
274    /// <p>stream.graphics.g5.2xlarge</p></li>
275    /// <li>
276    /// <p>stream.graphics.g5.4xlarge</p></li>
277    /// <li>
278    /// <p>stream.graphics.g5.8xlarge</p></li>
279    /// <li>
280    /// <p>stream.graphics.g5.16xlarge</p></li>
281    /// <li>
282    /// <p>stream.graphics.g5.12xlarge</p></li>
283    /// <li>
284    /// <p>stream.graphics.g5.24xlarge</p></li>
285    /// <li>
286    /// <p>stream.graphics.g6.xlarge</p></li>
287    /// <li>
288    /// <p>stream.graphics.g6.2xlarge</p></li>
289    /// <li>
290    /// <p>stream.graphics.g6.4xlarge</p></li>
291    /// <li>
292    /// <p>stream.graphics.g6.8xlarge</p></li>
293    /// <li>
294    /// <p>stream.graphics.g6.16xlarge</p></li>
295    /// <li>
296    /// <p>stream.graphics.g6.12xlarge</p></li>
297    /// <li>
298    /// <p>stream.graphics.g6.24xlarge</p></li>
299    /// <li>
300    /// <p>stream.graphics.gr6.4xlarge</p></li>
301    /// <li>
302    /// <p>stream.graphics.gr6.8xlarge</p></li>
303    /// <li>
304    /// <p>stream.graphics.g6f.large</p></li>
305    /// <li>
306    /// <p>stream.graphics.g6f.xlarge</p></li>
307    /// <li>
308    /// <p>stream.graphics.g6f.2xlarge</p></li>
309    /// <li>
310    /// <p>stream.graphics.g6f.4xlarge</p></li>
311    /// <li>
312    /// <p>stream.graphics.gr6f.4xlarge</p></li>
313    /// </ul>
314    /// <p>The following instance types are available for Elastic fleets:</p>
315    /// <ul>
316    /// <li>
317    /// <p>stream.standard.small</p></li>
318    /// <li>
319    /// <p>stream.standard.medium</p></li>
320    /// <li>
321    /// <p>stream.standard.large</p></li>
322    /// <li>
323    /// <p>stream.standard.xlarge</p></li>
324    /// <li>
325    /// <p>stream.standard.2xlarge</p></li>
326    /// </ul>
327    pub fn instance_type(&self) -> ::std::option::Option<&str> {
328        self.instance_type.as_deref()
329    }
330    /// <p>The desired capacity for the fleet. This is not allowed for Elastic fleets.</p>
331    pub fn compute_capacity(&self) -> ::std::option::Option<&crate::types::ComputeCapacity> {
332        self.compute_capacity.as_ref()
333    }
334    /// <p>The VPC configuration for the fleet. This is required for Elastic fleets, but not required for other fleet types. Elastic fleets require that you specify at least two subnets in different availability zones.</p>
335    pub fn vpc_config(&self) -> ::std::option::Option<&crate::types::VpcConfig> {
336        self.vpc_config.as_ref()
337    }
338    /// <p>The maximum amount of time that a streaming session can remain active, in seconds. If users are still connected to a streaming instance five minutes before this limit is reached, they are prompted to save any open documents before being disconnected. After this time elapses, the instance is terminated and replaced by a new instance.</p>
339    /// <p>Specify a value between 600 and 432000.</p>
340    pub fn max_user_duration_in_seconds(&self) -> ::std::option::Option<i32> {
341        self.max_user_duration_in_seconds
342    }
343    /// <p>The amount of time that a streaming session remains active after users disconnect. If users try to reconnect to the streaming session after a disconnection or network interruption within this time interval, they are connected to their previous session. Otherwise, they are connected to a new session with a new streaming instance.</p>
344    /// <p>Specify a value between 60 and 36000.</p>
345    pub fn disconnect_timeout_in_seconds(&self) -> ::std::option::Option<i32> {
346        self.disconnect_timeout_in_seconds
347    }
348    /// <p>Deletes the VPC association for the specified fleet.</p>
349    #[deprecated]
350    pub fn delete_vpc_config(&self) -> ::std::option::Option<bool> {
351        self.delete_vpc_config
352    }
353    /// <p>The description to display.</p>
354    pub fn description(&self) -> ::std::option::Option<&str> {
355        self.description.as_deref()
356    }
357    /// <p>The fleet name to display.</p>
358    pub fn display_name(&self) -> ::std::option::Option<&str> {
359        self.display_name.as_deref()
360    }
361    /// <p>Enables or disables default internet access for the fleet.</p>
362    pub fn enable_default_internet_access(&self) -> ::std::option::Option<bool> {
363        self.enable_default_internet_access
364    }
365    /// <p>The name of the directory and organizational unit (OU) to use to join the fleet to a Microsoft Active Directory domain.</p>
366    pub fn domain_join_info(&self) -> ::std::option::Option<&crate::types::DomainJoinInfo> {
367        self.domain_join_info.as_ref()
368    }
369    /// <p>The amount of time that users can be idle (inactive) before they are disconnected from their streaming session and the <code>DisconnectTimeoutInSeconds</code> time interval begins. Users are notified before they are disconnected due to inactivity. If users try to reconnect to the streaming session before the time interval specified in <code>DisconnectTimeoutInSeconds</code> elapses, they are connected to their previous session. Users are considered idle when they stop providing keyboard or mouse input during their streaming session. File uploads and downloads, audio in, audio out, and pixels changing do not qualify as user activity. If users continue to be idle after the time interval in <code>IdleDisconnectTimeoutInSeconds</code> elapses, they are disconnected.</p>
370    /// <p>To prevent users from being disconnected due to inactivity, specify a value of 0. Otherwise, specify a value between 60 and 36000. The default value is 0.</p><note>
371    /// <p>If you enable this feature, we recommend that you specify a value that corresponds exactly to a whole number of minutes (for example, 60, 120, and 180). If you don't do this, the value is rounded to the nearest minute. For example, if you specify a value of 70, users are disconnected after 1 minute of inactivity. If you specify a value that is at the midpoint between two different minutes, the value is rounded up. For example, if you specify a value of 90, users are disconnected after 2 minutes of inactivity.</p>
372    /// </note>
373    pub fn idle_disconnect_timeout_in_seconds(&self) -> ::std::option::Option<i32> {
374        self.idle_disconnect_timeout_in_seconds
375    }
376    /// <p>The fleet attributes to delete.</p>
377    ///
378    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.attributes_to_delete.is_none()`.
379    pub fn attributes_to_delete(&self) -> &[crate::types::FleetAttribute] {
380        self.attributes_to_delete.as_deref().unwrap_or_default()
381    }
382    /// <p>The Amazon Resource Name (ARN) of the IAM role to apply to the fleet. To assume a role, a fleet instance 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>
383    /// <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>
384    pub fn iam_role_arn(&self) -> ::std::option::Option<&str> {
385        self.iam_role_arn.as_deref()
386    }
387    /// <p>The AppStream 2.0 view that is displayed to your users when they stream from the fleet. When <code>APP</code> is specified, only the windows of applications opened by users display. When <code>DESKTOP</code> is specified, the standard desktop that is provided by the operating system displays.</p>
388    /// <p>The default value is <code>APP</code>.</p>
389    pub fn stream_view(&self) -> ::std::option::Option<&crate::types::StreamView> {
390        self.stream_view.as_ref()
391    }
392    /// <p>The platform of the fleet. WINDOWS_SERVER_2019 and AMAZON_LINUX2 are supported for Elastic fleets.</p>
393    pub fn platform(&self) -> ::std::option::Option<&crate::types::PlatformType> {
394        self.platform.as_ref()
395    }
396    /// <p>The maximum number of concurrent sessions for a fleet.</p>
397    pub fn max_concurrent_sessions(&self) -> ::std::option::Option<i32> {
398        self.max_concurrent_sessions
399    }
400    /// <p>The USB device filter strings that specify which USB devices a user can redirect to the fleet streaming session, when using the Windows native client. This is allowed but not required for Elastic fleets.</p>
401    ///
402    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.usb_device_filter_strings.is_none()`.
403    pub fn usb_device_filter_strings(&self) -> &[::std::string::String] {
404        self.usb_device_filter_strings.as_deref().unwrap_or_default()
405    }
406    /// <p>The S3 location of the session scripts configuration zip file. This only applies to Elastic fleets.</p>
407    pub fn session_script_s3_location(&self) -> ::std::option::Option<&crate::types::S3Location> {
408        self.session_script_s3_location.as_ref()
409    }
410    /// <p>The maximum number of user sessions on an instance. This only applies to multi-session fleets.</p>
411    pub fn max_sessions_per_instance(&self) -> ::std::option::Option<i32> {
412        self.max_sessions_per_instance
413    }
414}
415impl UpdateFleetInput {
416    /// Creates a new builder-style object to manufacture [`UpdateFleetInput`](crate::operation::update_fleet::UpdateFleetInput).
417    pub fn builder() -> crate::operation::update_fleet::builders::UpdateFleetInputBuilder {
418        crate::operation::update_fleet::builders::UpdateFleetInputBuilder::default()
419    }
420}
421
422/// A builder for [`UpdateFleetInput`](crate::operation::update_fleet::UpdateFleetInput).
423#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
424#[non_exhaustive]
425pub struct UpdateFleetInputBuilder {
426    pub(crate) image_name: ::std::option::Option<::std::string::String>,
427    pub(crate) image_arn: ::std::option::Option<::std::string::String>,
428    pub(crate) name: ::std::option::Option<::std::string::String>,
429    pub(crate) instance_type: ::std::option::Option<::std::string::String>,
430    pub(crate) compute_capacity: ::std::option::Option<crate::types::ComputeCapacity>,
431    pub(crate) vpc_config: ::std::option::Option<crate::types::VpcConfig>,
432    pub(crate) max_user_duration_in_seconds: ::std::option::Option<i32>,
433    pub(crate) disconnect_timeout_in_seconds: ::std::option::Option<i32>,
434    pub(crate) delete_vpc_config: ::std::option::Option<bool>,
435    pub(crate) description: ::std::option::Option<::std::string::String>,
436    pub(crate) display_name: ::std::option::Option<::std::string::String>,
437    pub(crate) enable_default_internet_access: ::std::option::Option<bool>,
438    pub(crate) domain_join_info: ::std::option::Option<crate::types::DomainJoinInfo>,
439    pub(crate) idle_disconnect_timeout_in_seconds: ::std::option::Option<i32>,
440    pub(crate) attributes_to_delete: ::std::option::Option<::std::vec::Vec<crate::types::FleetAttribute>>,
441    pub(crate) iam_role_arn: ::std::option::Option<::std::string::String>,
442    pub(crate) stream_view: ::std::option::Option<crate::types::StreamView>,
443    pub(crate) platform: ::std::option::Option<crate::types::PlatformType>,
444    pub(crate) max_concurrent_sessions: ::std::option::Option<i32>,
445    pub(crate) usb_device_filter_strings: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
446    pub(crate) session_script_s3_location: ::std::option::Option<crate::types::S3Location>,
447    pub(crate) max_sessions_per_instance: ::std::option::Option<i32>,
448}
449impl UpdateFleetInputBuilder {
450    /// <p>The name of the image used to create the fleet.</p>
451    pub fn image_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
452        self.image_name = ::std::option::Option::Some(input.into());
453        self
454    }
455    /// <p>The name of the image used to create the fleet.</p>
456    pub fn set_image_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
457        self.image_name = input;
458        self
459    }
460    /// <p>The name of the image used to create the fleet.</p>
461    pub fn get_image_name(&self) -> &::std::option::Option<::std::string::String> {
462        &self.image_name
463    }
464    /// <p>The ARN of the public, private, or shared image to use.</p>
465    pub fn image_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
466        self.image_arn = ::std::option::Option::Some(input.into());
467        self
468    }
469    /// <p>The ARN of the public, private, or shared image to use.</p>
470    pub fn set_image_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
471        self.image_arn = input;
472        self
473    }
474    /// <p>The ARN of the public, private, or shared image to use.</p>
475    pub fn get_image_arn(&self) -> &::std::option::Option<::std::string::String> {
476        &self.image_arn
477    }
478    /// <p>A unique name for the fleet.</p>
479    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
480        self.name = ::std::option::Option::Some(input.into());
481        self
482    }
483    /// <p>A unique name for the fleet.</p>
484    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
485        self.name = input;
486        self
487    }
488    /// <p>A unique name for the fleet.</p>
489    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
490        &self.name
491    }
492    /// <p>The instance type to use when launching fleet instances. The following instance types are available:</p>
493    /// <ul>
494    /// <li>
495    /// <p>stream.standard.small</p></li>
496    /// <li>
497    /// <p>stream.standard.medium</p></li>
498    /// <li>
499    /// <p>stream.standard.large</p></li>
500    /// <li>
501    /// <p>stream.standard.xlarge</p></li>
502    /// <li>
503    /// <p>stream.standard.2xlarge</p></li>
504    /// <li>
505    /// <p>stream.compute.large</p></li>
506    /// <li>
507    /// <p>stream.compute.xlarge</p></li>
508    /// <li>
509    /// <p>stream.compute.2xlarge</p></li>
510    /// <li>
511    /// <p>stream.compute.4xlarge</p></li>
512    /// <li>
513    /// <p>stream.compute.8xlarge</p></li>
514    /// <li>
515    /// <p>stream.memory.large</p></li>
516    /// <li>
517    /// <p>stream.memory.xlarge</p></li>
518    /// <li>
519    /// <p>stream.memory.2xlarge</p></li>
520    /// <li>
521    /// <p>stream.memory.4xlarge</p></li>
522    /// <li>
523    /// <p>stream.memory.8xlarge</p></li>
524    /// <li>
525    /// <p>stream.memory.z1d.large</p></li>
526    /// <li>
527    /// <p>stream.memory.z1d.xlarge</p></li>
528    /// <li>
529    /// <p>stream.memory.z1d.2xlarge</p></li>
530    /// <li>
531    /// <p>stream.memory.z1d.3xlarge</p></li>
532    /// <li>
533    /// <p>stream.memory.z1d.6xlarge</p></li>
534    /// <li>
535    /// <p>stream.memory.z1d.12xlarge</p></li>
536    /// <li>
537    /// <p>stream.graphics-design.large</p></li>
538    /// <li>
539    /// <p>stream.graphics-design.xlarge</p></li>
540    /// <li>
541    /// <p>stream.graphics-design.2xlarge</p></li>
542    /// <li>
543    /// <p>stream.graphics-design.4xlarge</p></li>
544    /// <li>
545    /// <p>stream.graphics-desktop.2xlarge</p></li>
546    /// <li>
547    /// <p>stream.graphics.g4dn.xlarge</p></li>
548    /// <li>
549    /// <p>stream.graphics.g4dn.2xlarge</p></li>
550    /// <li>
551    /// <p>stream.graphics.g4dn.4xlarge</p></li>
552    /// <li>
553    /// <p>stream.graphics.g4dn.8xlarge</p></li>
554    /// <li>
555    /// <p>stream.graphics.g4dn.12xlarge</p></li>
556    /// <li>
557    /// <p>stream.graphics.g4dn.16xlarge</p></li>
558    /// <li>
559    /// <p>stream.graphics-pro.4xlarge</p></li>
560    /// <li>
561    /// <p>stream.graphics-pro.8xlarge</p></li>
562    /// <li>
563    /// <p>stream.graphics-pro.16xlarge</p></li>
564    /// <li>
565    /// <p>stream.graphics.g5.xlarge</p></li>
566    /// <li>
567    /// <p>stream.graphics.g5.2xlarge</p></li>
568    /// <li>
569    /// <p>stream.graphics.g5.4xlarge</p></li>
570    /// <li>
571    /// <p>stream.graphics.g5.8xlarge</p></li>
572    /// <li>
573    /// <p>stream.graphics.g5.16xlarge</p></li>
574    /// <li>
575    /// <p>stream.graphics.g5.12xlarge</p></li>
576    /// <li>
577    /// <p>stream.graphics.g5.24xlarge</p></li>
578    /// <li>
579    /// <p>stream.graphics.g6.xlarge</p></li>
580    /// <li>
581    /// <p>stream.graphics.g6.2xlarge</p></li>
582    /// <li>
583    /// <p>stream.graphics.g6.4xlarge</p></li>
584    /// <li>
585    /// <p>stream.graphics.g6.8xlarge</p></li>
586    /// <li>
587    /// <p>stream.graphics.g6.16xlarge</p></li>
588    /// <li>
589    /// <p>stream.graphics.g6.12xlarge</p></li>
590    /// <li>
591    /// <p>stream.graphics.g6.24xlarge</p></li>
592    /// <li>
593    /// <p>stream.graphics.gr6.4xlarge</p></li>
594    /// <li>
595    /// <p>stream.graphics.gr6.8xlarge</p></li>
596    /// <li>
597    /// <p>stream.graphics.g6f.large</p></li>
598    /// <li>
599    /// <p>stream.graphics.g6f.xlarge</p></li>
600    /// <li>
601    /// <p>stream.graphics.g6f.2xlarge</p></li>
602    /// <li>
603    /// <p>stream.graphics.g6f.4xlarge</p></li>
604    /// <li>
605    /// <p>stream.graphics.gr6f.4xlarge</p></li>
606    /// </ul>
607    /// <p>The following instance types are available for Elastic fleets:</p>
608    /// <ul>
609    /// <li>
610    /// <p>stream.standard.small</p></li>
611    /// <li>
612    /// <p>stream.standard.medium</p></li>
613    /// <li>
614    /// <p>stream.standard.large</p></li>
615    /// <li>
616    /// <p>stream.standard.xlarge</p></li>
617    /// <li>
618    /// <p>stream.standard.2xlarge</p></li>
619    /// </ul>
620    pub fn instance_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
621        self.instance_type = ::std::option::Option::Some(input.into());
622        self
623    }
624    /// <p>The instance type to use when launching fleet instances. The following instance types are available:</p>
625    /// <ul>
626    /// <li>
627    /// <p>stream.standard.small</p></li>
628    /// <li>
629    /// <p>stream.standard.medium</p></li>
630    /// <li>
631    /// <p>stream.standard.large</p></li>
632    /// <li>
633    /// <p>stream.standard.xlarge</p></li>
634    /// <li>
635    /// <p>stream.standard.2xlarge</p></li>
636    /// <li>
637    /// <p>stream.compute.large</p></li>
638    /// <li>
639    /// <p>stream.compute.xlarge</p></li>
640    /// <li>
641    /// <p>stream.compute.2xlarge</p></li>
642    /// <li>
643    /// <p>stream.compute.4xlarge</p></li>
644    /// <li>
645    /// <p>stream.compute.8xlarge</p></li>
646    /// <li>
647    /// <p>stream.memory.large</p></li>
648    /// <li>
649    /// <p>stream.memory.xlarge</p></li>
650    /// <li>
651    /// <p>stream.memory.2xlarge</p></li>
652    /// <li>
653    /// <p>stream.memory.4xlarge</p></li>
654    /// <li>
655    /// <p>stream.memory.8xlarge</p></li>
656    /// <li>
657    /// <p>stream.memory.z1d.large</p></li>
658    /// <li>
659    /// <p>stream.memory.z1d.xlarge</p></li>
660    /// <li>
661    /// <p>stream.memory.z1d.2xlarge</p></li>
662    /// <li>
663    /// <p>stream.memory.z1d.3xlarge</p></li>
664    /// <li>
665    /// <p>stream.memory.z1d.6xlarge</p></li>
666    /// <li>
667    /// <p>stream.memory.z1d.12xlarge</p></li>
668    /// <li>
669    /// <p>stream.graphics-design.large</p></li>
670    /// <li>
671    /// <p>stream.graphics-design.xlarge</p></li>
672    /// <li>
673    /// <p>stream.graphics-design.2xlarge</p></li>
674    /// <li>
675    /// <p>stream.graphics-design.4xlarge</p></li>
676    /// <li>
677    /// <p>stream.graphics-desktop.2xlarge</p></li>
678    /// <li>
679    /// <p>stream.graphics.g4dn.xlarge</p></li>
680    /// <li>
681    /// <p>stream.graphics.g4dn.2xlarge</p></li>
682    /// <li>
683    /// <p>stream.graphics.g4dn.4xlarge</p></li>
684    /// <li>
685    /// <p>stream.graphics.g4dn.8xlarge</p></li>
686    /// <li>
687    /// <p>stream.graphics.g4dn.12xlarge</p></li>
688    /// <li>
689    /// <p>stream.graphics.g4dn.16xlarge</p></li>
690    /// <li>
691    /// <p>stream.graphics-pro.4xlarge</p></li>
692    /// <li>
693    /// <p>stream.graphics-pro.8xlarge</p></li>
694    /// <li>
695    /// <p>stream.graphics-pro.16xlarge</p></li>
696    /// <li>
697    /// <p>stream.graphics.g5.xlarge</p></li>
698    /// <li>
699    /// <p>stream.graphics.g5.2xlarge</p></li>
700    /// <li>
701    /// <p>stream.graphics.g5.4xlarge</p></li>
702    /// <li>
703    /// <p>stream.graphics.g5.8xlarge</p></li>
704    /// <li>
705    /// <p>stream.graphics.g5.16xlarge</p></li>
706    /// <li>
707    /// <p>stream.graphics.g5.12xlarge</p></li>
708    /// <li>
709    /// <p>stream.graphics.g5.24xlarge</p></li>
710    /// <li>
711    /// <p>stream.graphics.g6.xlarge</p></li>
712    /// <li>
713    /// <p>stream.graphics.g6.2xlarge</p></li>
714    /// <li>
715    /// <p>stream.graphics.g6.4xlarge</p></li>
716    /// <li>
717    /// <p>stream.graphics.g6.8xlarge</p></li>
718    /// <li>
719    /// <p>stream.graphics.g6.16xlarge</p></li>
720    /// <li>
721    /// <p>stream.graphics.g6.12xlarge</p></li>
722    /// <li>
723    /// <p>stream.graphics.g6.24xlarge</p></li>
724    /// <li>
725    /// <p>stream.graphics.gr6.4xlarge</p></li>
726    /// <li>
727    /// <p>stream.graphics.gr6.8xlarge</p></li>
728    /// <li>
729    /// <p>stream.graphics.g6f.large</p></li>
730    /// <li>
731    /// <p>stream.graphics.g6f.xlarge</p></li>
732    /// <li>
733    /// <p>stream.graphics.g6f.2xlarge</p></li>
734    /// <li>
735    /// <p>stream.graphics.g6f.4xlarge</p></li>
736    /// <li>
737    /// <p>stream.graphics.gr6f.4xlarge</p></li>
738    /// </ul>
739    /// <p>The following instance types are available for Elastic fleets:</p>
740    /// <ul>
741    /// <li>
742    /// <p>stream.standard.small</p></li>
743    /// <li>
744    /// <p>stream.standard.medium</p></li>
745    /// <li>
746    /// <p>stream.standard.large</p></li>
747    /// <li>
748    /// <p>stream.standard.xlarge</p></li>
749    /// <li>
750    /// <p>stream.standard.2xlarge</p></li>
751    /// </ul>
752    pub fn set_instance_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
753        self.instance_type = input;
754        self
755    }
756    /// <p>The instance type to use when launching fleet instances. The following instance types are available:</p>
757    /// <ul>
758    /// <li>
759    /// <p>stream.standard.small</p></li>
760    /// <li>
761    /// <p>stream.standard.medium</p></li>
762    /// <li>
763    /// <p>stream.standard.large</p></li>
764    /// <li>
765    /// <p>stream.standard.xlarge</p></li>
766    /// <li>
767    /// <p>stream.standard.2xlarge</p></li>
768    /// <li>
769    /// <p>stream.compute.large</p></li>
770    /// <li>
771    /// <p>stream.compute.xlarge</p></li>
772    /// <li>
773    /// <p>stream.compute.2xlarge</p></li>
774    /// <li>
775    /// <p>stream.compute.4xlarge</p></li>
776    /// <li>
777    /// <p>stream.compute.8xlarge</p></li>
778    /// <li>
779    /// <p>stream.memory.large</p></li>
780    /// <li>
781    /// <p>stream.memory.xlarge</p></li>
782    /// <li>
783    /// <p>stream.memory.2xlarge</p></li>
784    /// <li>
785    /// <p>stream.memory.4xlarge</p></li>
786    /// <li>
787    /// <p>stream.memory.8xlarge</p></li>
788    /// <li>
789    /// <p>stream.memory.z1d.large</p></li>
790    /// <li>
791    /// <p>stream.memory.z1d.xlarge</p></li>
792    /// <li>
793    /// <p>stream.memory.z1d.2xlarge</p></li>
794    /// <li>
795    /// <p>stream.memory.z1d.3xlarge</p></li>
796    /// <li>
797    /// <p>stream.memory.z1d.6xlarge</p></li>
798    /// <li>
799    /// <p>stream.memory.z1d.12xlarge</p></li>
800    /// <li>
801    /// <p>stream.graphics-design.large</p></li>
802    /// <li>
803    /// <p>stream.graphics-design.xlarge</p></li>
804    /// <li>
805    /// <p>stream.graphics-design.2xlarge</p></li>
806    /// <li>
807    /// <p>stream.graphics-design.4xlarge</p></li>
808    /// <li>
809    /// <p>stream.graphics-desktop.2xlarge</p></li>
810    /// <li>
811    /// <p>stream.graphics.g4dn.xlarge</p></li>
812    /// <li>
813    /// <p>stream.graphics.g4dn.2xlarge</p></li>
814    /// <li>
815    /// <p>stream.graphics.g4dn.4xlarge</p></li>
816    /// <li>
817    /// <p>stream.graphics.g4dn.8xlarge</p></li>
818    /// <li>
819    /// <p>stream.graphics.g4dn.12xlarge</p></li>
820    /// <li>
821    /// <p>stream.graphics.g4dn.16xlarge</p></li>
822    /// <li>
823    /// <p>stream.graphics-pro.4xlarge</p></li>
824    /// <li>
825    /// <p>stream.graphics-pro.8xlarge</p></li>
826    /// <li>
827    /// <p>stream.graphics-pro.16xlarge</p></li>
828    /// <li>
829    /// <p>stream.graphics.g5.xlarge</p></li>
830    /// <li>
831    /// <p>stream.graphics.g5.2xlarge</p></li>
832    /// <li>
833    /// <p>stream.graphics.g5.4xlarge</p></li>
834    /// <li>
835    /// <p>stream.graphics.g5.8xlarge</p></li>
836    /// <li>
837    /// <p>stream.graphics.g5.16xlarge</p></li>
838    /// <li>
839    /// <p>stream.graphics.g5.12xlarge</p></li>
840    /// <li>
841    /// <p>stream.graphics.g5.24xlarge</p></li>
842    /// <li>
843    /// <p>stream.graphics.g6.xlarge</p></li>
844    /// <li>
845    /// <p>stream.graphics.g6.2xlarge</p></li>
846    /// <li>
847    /// <p>stream.graphics.g6.4xlarge</p></li>
848    /// <li>
849    /// <p>stream.graphics.g6.8xlarge</p></li>
850    /// <li>
851    /// <p>stream.graphics.g6.16xlarge</p></li>
852    /// <li>
853    /// <p>stream.graphics.g6.12xlarge</p></li>
854    /// <li>
855    /// <p>stream.graphics.g6.24xlarge</p></li>
856    /// <li>
857    /// <p>stream.graphics.gr6.4xlarge</p></li>
858    /// <li>
859    /// <p>stream.graphics.gr6.8xlarge</p></li>
860    /// <li>
861    /// <p>stream.graphics.g6f.large</p></li>
862    /// <li>
863    /// <p>stream.graphics.g6f.xlarge</p></li>
864    /// <li>
865    /// <p>stream.graphics.g6f.2xlarge</p></li>
866    /// <li>
867    /// <p>stream.graphics.g6f.4xlarge</p></li>
868    /// <li>
869    /// <p>stream.graphics.gr6f.4xlarge</p></li>
870    /// </ul>
871    /// <p>The following instance types are available for Elastic fleets:</p>
872    /// <ul>
873    /// <li>
874    /// <p>stream.standard.small</p></li>
875    /// <li>
876    /// <p>stream.standard.medium</p></li>
877    /// <li>
878    /// <p>stream.standard.large</p></li>
879    /// <li>
880    /// <p>stream.standard.xlarge</p></li>
881    /// <li>
882    /// <p>stream.standard.2xlarge</p></li>
883    /// </ul>
884    pub fn get_instance_type(&self) -> &::std::option::Option<::std::string::String> {
885        &self.instance_type
886    }
887    /// <p>The desired capacity for the fleet. This is not allowed for Elastic fleets.</p>
888    pub fn compute_capacity(mut self, input: crate::types::ComputeCapacity) -> Self {
889        self.compute_capacity = ::std::option::Option::Some(input);
890        self
891    }
892    /// <p>The desired capacity for the fleet. This is not allowed for Elastic fleets.</p>
893    pub fn set_compute_capacity(mut self, input: ::std::option::Option<crate::types::ComputeCapacity>) -> Self {
894        self.compute_capacity = input;
895        self
896    }
897    /// <p>The desired capacity for the fleet. This is not allowed for Elastic fleets.</p>
898    pub fn get_compute_capacity(&self) -> &::std::option::Option<crate::types::ComputeCapacity> {
899        &self.compute_capacity
900    }
901    /// <p>The VPC configuration for the fleet. This is required for Elastic fleets, but not required for other fleet types. Elastic fleets require that you specify at least two subnets in different availability zones.</p>
902    pub fn vpc_config(mut self, input: crate::types::VpcConfig) -> Self {
903        self.vpc_config = ::std::option::Option::Some(input);
904        self
905    }
906    /// <p>The VPC configuration for the fleet. This is required for Elastic fleets, but not required for other fleet types. Elastic fleets require that you specify at least two subnets in different availability zones.</p>
907    pub fn set_vpc_config(mut self, input: ::std::option::Option<crate::types::VpcConfig>) -> Self {
908        self.vpc_config = input;
909        self
910    }
911    /// <p>The VPC configuration for the fleet. This is required for Elastic fleets, but not required for other fleet types. Elastic fleets require that you specify at least two subnets in different availability zones.</p>
912    pub fn get_vpc_config(&self) -> &::std::option::Option<crate::types::VpcConfig> {
913        &self.vpc_config
914    }
915    /// <p>The maximum amount of time that a streaming session can remain active, in seconds. If users are still connected to a streaming instance five minutes before this limit is reached, they are prompted to save any open documents before being disconnected. After this time elapses, the instance is terminated and replaced by a new instance.</p>
916    /// <p>Specify a value between 600 and 432000.</p>
917    pub fn max_user_duration_in_seconds(mut self, input: i32) -> Self {
918        self.max_user_duration_in_seconds = ::std::option::Option::Some(input);
919        self
920    }
921    /// <p>The maximum amount of time that a streaming session can remain active, in seconds. If users are still connected to a streaming instance five minutes before this limit is reached, they are prompted to save any open documents before being disconnected. After this time elapses, the instance is terminated and replaced by a new instance.</p>
922    /// <p>Specify a value between 600 and 432000.</p>
923    pub fn set_max_user_duration_in_seconds(mut self, input: ::std::option::Option<i32>) -> Self {
924        self.max_user_duration_in_seconds = input;
925        self
926    }
927    /// <p>The maximum amount of time that a streaming session can remain active, in seconds. If users are still connected to a streaming instance five minutes before this limit is reached, they are prompted to save any open documents before being disconnected. After this time elapses, the instance is terminated and replaced by a new instance.</p>
928    /// <p>Specify a value between 600 and 432000.</p>
929    pub fn get_max_user_duration_in_seconds(&self) -> &::std::option::Option<i32> {
930        &self.max_user_duration_in_seconds
931    }
932    /// <p>The amount of time that a streaming session remains active after users disconnect. If users try to reconnect to the streaming session after a disconnection or network interruption within this time interval, they are connected to their previous session. Otherwise, they are connected to a new session with a new streaming instance.</p>
933    /// <p>Specify a value between 60 and 36000.</p>
934    pub fn disconnect_timeout_in_seconds(mut self, input: i32) -> Self {
935        self.disconnect_timeout_in_seconds = ::std::option::Option::Some(input);
936        self
937    }
938    /// <p>The amount of time that a streaming session remains active after users disconnect. If users try to reconnect to the streaming session after a disconnection or network interruption within this time interval, they are connected to their previous session. Otherwise, they are connected to a new session with a new streaming instance.</p>
939    /// <p>Specify a value between 60 and 36000.</p>
940    pub fn set_disconnect_timeout_in_seconds(mut self, input: ::std::option::Option<i32>) -> Self {
941        self.disconnect_timeout_in_seconds = input;
942        self
943    }
944    /// <p>The amount of time that a streaming session remains active after users disconnect. If users try to reconnect to the streaming session after a disconnection or network interruption within this time interval, they are connected to their previous session. Otherwise, they are connected to a new session with a new streaming instance.</p>
945    /// <p>Specify a value between 60 and 36000.</p>
946    pub fn get_disconnect_timeout_in_seconds(&self) -> &::std::option::Option<i32> {
947        &self.disconnect_timeout_in_seconds
948    }
949    /// <p>Deletes the VPC association for the specified fleet.</p>
950    #[deprecated]
951    pub fn delete_vpc_config(mut self, input: bool) -> Self {
952        self.delete_vpc_config = ::std::option::Option::Some(input);
953        self
954    }
955    /// <p>Deletes the VPC association for the specified fleet.</p>
956    #[deprecated]
957    pub fn set_delete_vpc_config(mut self, input: ::std::option::Option<bool>) -> Self {
958        self.delete_vpc_config = input;
959        self
960    }
961    /// <p>Deletes the VPC association for the specified fleet.</p>
962    #[deprecated]
963    pub fn get_delete_vpc_config(&self) -> &::std::option::Option<bool> {
964        &self.delete_vpc_config
965    }
966    /// <p>The description to display.</p>
967    pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
968        self.description = ::std::option::Option::Some(input.into());
969        self
970    }
971    /// <p>The description to display.</p>
972    pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
973        self.description = input;
974        self
975    }
976    /// <p>The description to display.</p>
977    pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
978        &self.description
979    }
980    /// <p>The fleet name to display.</p>
981    pub fn display_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
982        self.display_name = ::std::option::Option::Some(input.into());
983        self
984    }
985    /// <p>The fleet name to display.</p>
986    pub fn set_display_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
987        self.display_name = input;
988        self
989    }
990    /// <p>The fleet name to display.</p>
991    pub fn get_display_name(&self) -> &::std::option::Option<::std::string::String> {
992        &self.display_name
993    }
994    /// <p>Enables or disables default internet access for the fleet.</p>
995    pub fn enable_default_internet_access(mut self, input: bool) -> Self {
996        self.enable_default_internet_access = ::std::option::Option::Some(input);
997        self
998    }
999    /// <p>Enables or disables default internet access for the fleet.</p>
1000    pub fn set_enable_default_internet_access(mut self, input: ::std::option::Option<bool>) -> Self {
1001        self.enable_default_internet_access = input;
1002        self
1003    }
1004    /// <p>Enables or disables default internet access for the fleet.</p>
1005    pub fn get_enable_default_internet_access(&self) -> &::std::option::Option<bool> {
1006        &self.enable_default_internet_access
1007    }
1008    /// <p>The name of the directory and organizational unit (OU) to use to join the fleet to a Microsoft Active Directory domain.</p>
1009    pub fn domain_join_info(mut self, input: crate::types::DomainJoinInfo) -> Self {
1010        self.domain_join_info = ::std::option::Option::Some(input);
1011        self
1012    }
1013    /// <p>The name of the directory and organizational unit (OU) to use to join the fleet to a Microsoft Active Directory domain.</p>
1014    pub fn set_domain_join_info(mut self, input: ::std::option::Option<crate::types::DomainJoinInfo>) -> Self {
1015        self.domain_join_info = input;
1016        self
1017    }
1018    /// <p>The name of the directory and organizational unit (OU) to use to join the fleet to a Microsoft Active Directory domain.</p>
1019    pub fn get_domain_join_info(&self) -> &::std::option::Option<crate::types::DomainJoinInfo> {
1020        &self.domain_join_info
1021    }
1022    /// <p>The amount of time that users can be idle (inactive) before they are disconnected from their streaming session and the <code>DisconnectTimeoutInSeconds</code> time interval begins. Users are notified before they are disconnected due to inactivity. If users try to reconnect to the streaming session before the time interval specified in <code>DisconnectTimeoutInSeconds</code> elapses, they are connected to their previous session. Users are considered idle when they stop providing keyboard or mouse input during their streaming session. File uploads and downloads, audio in, audio out, and pixels changing do not qualify as user activity. If users continue to be idle after the time interval in <code>IdleDisconnectTimeoutInSeconds</code> elapses, they are disconnected.</p>
1023    /// <p>To prevent users from being disconnected due to inactivity, specify a value of 0. Otherwise, specify a value between 60 and 36000. The default value is 0.</p><note>
1024    /// <p>If you enable this feature, we recommend that you specify a value that corresponds exactly to a whole number of minutes (for example, 60, 120, and 180). If you don't do this, the value is rounded to the nearest minute. For example, if you specify a value of 70, users are disconnected after 1 minute of inactivity. If you specify a value that is at the midpoint between two different minutes, the value is rounded up. For example, if you specify a value of 90, users are disconnected after 2 minutes of inactivity.</p>
1025    /// </note>
1026    pub fn idle_disconnect_timeout_in_seconds(mut self, input: i32) -> Self {
1027        self.idle_disconnect_timeout_in_seconds = ::std::option::Option::Some(input);
1028        self
1029    }
1030    /// <p>The amount of time that users can be idle (inactive) before they are disconnected from their streaming session and the <code>DisconnectTimeoutInSeconds</code> time interval begins. Users are notified before they are disconnected due to inactivity. If users try to reconnect to the streaming session before the time interval specified in <code>DisconnectTimeoutInSeconds</code> elapses, they are connected to their previous session. Users are considered idle when they stop providing keyboard or mouse input during their streaming session. File uploads and downloads, audio in, audio out, and pixels changing do not qualify as user activity. If users continue to be idle after the time interval in <code>IdleDisconnectTimeoutInSeconds</code> elapses, they are disconnected.</p>
1031    /// <p>To prevent users from being disconnected due to inactivity, specify a value of 0. Otherwise, specify a value between 60 and 36000. The default value is 0.</p><note>
1032    /// <p>If you enable this feature, we recommend that you specify a value that corresponds exactly to a whole number of minutes (for example, 60, 120, and 180). If you don't do this, the value is rounded to the nearest minute. For example, if you specify a value of 70, users are disconnected after 1 minute of inactivity. If you specify a value that is at the midpoint between two different minutes, the value is rounded up. For example, if you specify a value of 90, users are disconnected after 2 minutes of inactivity.</p>
1033    /// </note>
1034    pub fn set_idle_disconnect_timeout_in_seconds(mut self, input: ::std::option::Option<i32>) -> Self {
1035        self.idle_disconnect_timeout_in_seconds = input;
1036        self
1037    }
1038    /// <p>The amount of time that users can be idle (inactive) before they are disconnected from their streaming session and the <code>DisconnectTimeoutInSeconds</code> time interval begins. Users are notified before they are disconnected due to inactivity. If users try to reconnect to the streaming session before the time interval specified in <code>DisconnectTimeoutInSeconds</code> elapses, they are connected to their previous session. Users are considered idle when they stop providing keyboard or mouse input during their streaming session. File uploads and downloads, audio in, audio out, and pixels changing do not qualify as user activity. If users continue to be idle after the time interval in <code>IdleDisconnectTimeoutInSeconds</code> elapses, they are disconnected.</p>
1039    /// <p>To prevent users from being disconnected due to inactivity, specify a value of 0. Otherwise, specify a value between 60 and 36000. The default value is 0.</p><note>
1040    /// <p>If you enable this feature, we recommend that you specify a value that corresponds exactly to a whole number of minutes (for example, 60, 120, and 180). If you don't do this, the value is rounded to the nearest minute. For example, if you specify a value of 70, users are disconnected after 1 minute of inactivity. If you specify a value that is at the midpoint between two different minutes, the value is rounded up. For example, if you specify a value of 90, users are disconnected after 2 minutes of inactivity.</p>
1041    /// </note>
1042    pub fn get_idle_disconnect_timeout_in_seconds(&self) -> &::std::option::Option<i32> {
1043        &self.idle_disconnect_timeout_in_seconds
1044    }
1045    /// Appends an item to `attributes_to_delete`.
1046    ///
1047    /// To override the contents of this collection use [`set_attributes_to_delete`](Self::set_attributes_to_delete).
1048    ///
1049    /// <p>The fleet attributes to delete.</p>
1050    pub fn attributes_to_delete(mut self, input: crate::types::FleetAttribute) -> Self {
1051        let mut v = self.attributes_to_delete.unwrap_or_default();
1052        v.push(input);
1053        self.attributes_to_delete = ::std::option::Option::Some(v);
1054        self
1055    }
1056    /// <p>The fleet attributes to delete.</p>
1057    pub fn set_attributes_to_delete(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::FleetAttribute>>) -> Self {
1058        self.attributes_to_delete = input;
1059        self
1060    }
1061    /// <p>The fleet attributes to delete.</p>
1062    pub fn get_attributes_to_delete(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::FleetAttribute>> {
1063        &self.attributes_to_delete
1064    }
1065    /// <p>The Amazon Resource Name (ARN) of the IAM role to apply to the fleet. To assume a role, a fleet instance 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>
1066    /// <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>
1067    pub fn iam_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1068        self.iam_role_arn = ::std::option::Option::Some(input.into());
1069        self
1070    }
1071    /// <p>The Amazon Resource Name (ARN) of the IAM role to apply to the fleet. To assume a role, a fleet instance 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>
1072    /// <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>
1073    pub fn set_iam_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1074        self.iam_role_arn = input;
1075        self
1076    }
1077    /// <p>The Amazon Resource Name (ARN) of the IAM role to apply to the fleet. To assume a role, a fleet instance 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>
1078    /// <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>
1079    pub fn get_iam_role_arn(&self) -> &::std::option::Option<::std::string::String> {
1080        &self.iam_role_arn
1081    }
1082    /// <p>The AppStream 2.0 view that is displayed to your users when they stream from the fleet. When <code>APP</code> is specified, only the windows of applications opened by users display. When <code>DESKTOP</code> is specified, the standard desktop that is provided by the operating system displays.</p>
1083    /// <p>The default value is <code>APP</code>.</p>
1084    pub fn stream_view(mut self, input: crate::types::StreamView) -> Self {
1085        self.stream_view = ::std::option::Option::Some(input);
1086        self
1087    }
1088    /// <p>The AppStream 2.0 view that is displayed to your users when they stream from the fleet. When <code>APP</code> is specified, only the windows of applications opened by users display. When <code>DESKTOP</code> is specified, the standard desktop that is provided by the operating system displays.</p>
1089    /// <p>The default value is <code>APP</code>.</p>
1090    pub fn set_stream_view(mut self, input: ::std::option::Option<crate::types::StreamView>) -> Self {
1091        self.stream_view = input;
1092        self
1093    }
1094    /// <p>The AppStream 2.0 view that is displayed to your users when they stream from the fleet. When <code>APP</code> is specified, only the windows of applications opened by users display. When <code>DESKTOP</code> is specified, the standard desktop that is provided by the operating system displays.</p>
1095    /// <p>The default value is <code>APP</code>.</p>
1096    pub fn get_stream_view(&self) -> &::std::option::Option<crate::types::StreamView> {
1097        &self.stream_view
1098    }
1099    /// <p>The platform of the fleet. WINDOWS_SERVER_2019 and AMAZON_LINUX2 are supported for Elastic fleets.</p>
1100    pub fn platform(mut self, input: crate::types::PlatformType) -> Self {
1101        self.platform = ::std::option::Option::Some(input);
1102        self
1103    }
1104    /// <p>The platform of the fleet. WINDOWS_SERVER_2019 and AMAZON_LINUX2 are supported for Elastic fleets.</p>
1105    pub fn set_platform(mut self, input: ::std::option::Option<crate::types::PlatformType>) -> Self {
1106        self.platform = input;
1107        self
1108    }
1109    /// <p>The platform of the fleet. WINDOWS_SERVER_2019 and AMAZON_LINUX2 are supported for Elastic fleets.</p>
1110    pub fn get_platform(&self) -> &::std::option::Option<crate::types::PlatformType> {
1111        &self.platform
1112    }
1113    /// <p>The maximum number of concurrent sessions for a fleet.</p>
1114    pub fn max_concurrent_sessions(mut self, input: i32) -> Self {
1115        self.max_concurrent_sessions = ::std::option::Option::Some(input);
1116        self
1117    }
1118    /// <p>The maximum number of concurrent sessions for a fleet.</p>
1119    pub fn set_max_concurrent_sessions(mut self, input: ::std::option::Option<i32>) -> Self {
1120        self.max_concurrent_sessions = input;
1121        self
1122    }
1123    /// <p>The maximum number of concurrent sessions for a fleet.</p>
1124    pub fn get_max_concurrent_sessions(&self) -> &::std::option::Option<i32> {
1125        &self.max_concurrent_sessions
1126    }
1127    /// Appends an item to `usb_device_filter_strings`.
1128    ///
1129    /// To override the contents of this collection use [`set_usb_device_filter_strings`](Self::set_usb_device_filter_strings).
1130    ///
1131    /// <p>The USB device filter strings that specify which USB devices a user can redirect to the fleet streaming session, when using the Windows native client. This is allowed but not required for Elastic fleets.</p>
1132    pub fn usb_device_filter_strings(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1133        let mut v = self.usb_device_filter_strings.unwrap_or_default();
1134        v.push(input.into());
1135        self.usb_device_filter_strings = ::std::option::Option::Some(v);
1136        self
1137    }
1138    /// <p>The USB device filter strings that specify which USB devices a user can redirect to the fleet streaming session, when using the Windows native client. This is allowed but not required for Elastic fleets.</p>
1139    pub fn set_usb_device_filter_strings(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
1140        self.usb_device_filter_strings = input;
1141        self
1142    }
1143    /// <p>The USB device filter strings that specify which USB devices a user can redirect to the fleet streaming session, when using the Windows native client. This is allowed but not required for Elastic fleets.</p>
1144    pub fn get_usb_device_filter_strings(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
1145        &self.usb_device_filter_strings
1146    }
1147    /// <p>The S3 location of the session scripts configuration zip file. This only applies to Elastic fleets.</p>
1148    pub fn session_script_s3_location(mut self, input: crate::types::S3Location) -> Self {
1149        self.session_script_s3_location = ::std::option::Option::Some(input);
1150        self
1151    }
1152    /// <p>The S3 location of the session scripts configuration zip file. This only applies to Elastic fleets.</p>
1153    pub fn set_session_script_s3_location(mut self, input: ::std::option::Option<crate::types::S3Location>) -> Self {
1154        self.session_script_s3_location = input;
1155        self
1156    }
1157    /// <p>The S3 location of the session scripts configuration zip file. This only applies to Elastic fleets.</p>
1158    pub fn get_session_script_s3_location(&self) -> &::std::option::Option<crate::types::S3Location> {
1159        &self.session_script_s3_location
1160    }
1161    /// <p>The maximum number of user sessions on an instance. This only applies to multi-session fleets.</p>
1162    pub fn max_sessions_per_instance(mut self, input: i32) -> Self {
1163        self.max_sessions_per_instance = ::std::option::Option::Some(input);
1164        self
1165    }
1166    /// <p>The maximum number of user sessions on an instance. This only applies to multi-session fleets.</p>
1167    pub fn set_max_sessions_per_instance(mut self, input: ::std::option::Option<i32>) -> Self {
1168        self.max_sessions_per_instance = input;
1169        self
1170    }
1171    /// <p>The maximum number of user sessions on an instance. This only applies to multi-session fleets.</p>
1172    pub fn get_max_sessions_per_instance(&self) -> &::std::option::Option<i32> {
1173        &self.max_sessions_per_instance
1174    }
1175    /// Consumes the builder and constructs a [`UpdateFleetInput`](crate::operation::update_fleet::UpdateFleetInput).
1176    pub fn build(self) -> ::std::result::Result<crate::operation::update_fleet::UpdateFleetInput, ::aws_smithy_types::error::operation::BuildError> {
1177        ::std::result::Result::Ok(crate::operation::update_fleet::UpdateFleetInput {
1178            image_name: self.image_name,
1179            image_arn: self.image_arn,
1180            name: self.name,
1181            instance_type: self.instance_type,
1182            compute_capacity: self.compute_capacity,
1183            vpc_config: self.vpc_config,
1184            max_user_duration_in_seconds: self.max_user_duration_in_seconds,
1185            disconnect_timeout_in_seconds: self.disconnect_timeout_in_seconds,
1186            delete_vpc_config: self.delete_vpc_config,
1187            description: self.description,
1188            display_name: self.display_name,
1189            enable_default_internet_access: self.enable_default_internet_access,
1190            domain_join_info: self.domain_join_info,
1191            idle_disconnect_timeout_in_seconds: self.idle_disconnect_timeout_in_seconds,
1192            attributes_to_delete: self.attributes_to_delete,
1193            iam_role_arn: self.iam_role_arn,
1194            stream_view: self.stream_view,
1195            platform: self.platform,
1196            max_concurrent_sessions: self.max_concurrent_sessions,
1197            usb_device_filter_strings: self.usb_device_filter_strings,
1198            session_script_s3_location: self.session_script_s3_location,
1199            max_sessions_per_instance: self.max_sessions_per_instance,
1200        })
1201    }
1202}