/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.appstream.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateFleetRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* A unique name for the fleet. *
*/ private String name; /** ** The name of the image used to create the fleet. *
*/ private String imageName; /** ** The ARN of the public, private, or shared image to use. *
*/ private String imageArn; /** ** The instance type to use when launching fleet instances. The following instance types are available: *
** stream.standard.small *
** stream.standard.medium *
** stream.standard.large *
** stream.standard.xlarge *
** stream.standard.2xlarge *
** stream.compute.large *
** stream.compute.xlarge *
** stream.compute.2xlarge *
** stream.compute.4xlarge *
** stream.compute.8xlarge *
** stream.memory.large *
** stream.memory.xlarge *
** stream.memory.2xlarge *
** stream.memory.4xlarge *
** stream.memory.8xlarge *
** stream.memory.z1d.large *
** stream.memory.z1d.xlarge *
** stream.memory.z1d.2xlarge *
** stream.memory.z1d.3xlarge *
** stream.memory.z1d.6xlarge *
** stream.memory.z1d.12xlarge *
** stream.graphics-design.large *
** stream.graphics-design.xlarge *
** stream.graphics-design.2xlarge *
** stream.graphics-design.4xlarge *
** stream.graphics-desktop.2xlarge *
** stream.graphics.g4dn.xlarge *
** stream.graphics.g4dn.2xlarge *
** stream.graphics.g4dn.4xlarge *
** stream.graphics.g4dn.8xlarge *
** stream.graphics.g4dn.12xlarge *
** stream.graphics.g4dn.16xlarge *
** stream.graphics-pro.4xlarge *
** stream.graphics-pro.8xlarge *
** stream.graphics-pro.16xlarge *
** The following instance types are available for Elastic fleets: *
** stream.standard.small *
** stream.standard.medium *
** stream.standard.large *
** stream.standard.xlarge *
** stream.standard.2xlarge *
** The fleet type. *
** Provides users with instant-on access to their apps. You are charged for all running instances in your fleet, * even if no users are streaming apps. *
** Provide users with access to applications after they connect, which takes one to two minutes. You are charged for * instance streaming when users are connected and a small hourly fee for instances that are not streaming apps. *
** The desired capacity for the fleet. This is not allowed for Elastic fleets. For Elastic fleets, specify * MaxConcurrentSessions instead. *
*/ private ComputeCapacity computeCapacity; /** ** 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. *
*/ private VpcConfig vpcConfig; /** ** 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. *
** Specify a value between 600 and 360000. *
*/ private Integer maxUserDurationInSeconds; /** ** 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. *
** Specify a value between 60 and 360000. *
*/ private Integer disconnectTimeoutInSeconds; /** ** The description to display. *
*/ private String description; /** ** The fleet name to display. *
*/ private String displayName; /** ** Enables or disables default internet access for the fleet. *
*/ private Boolean enableDefaultInternetAccess; /** ** The name of the directory and organizational unit (OU) to use to join the fleet to a Microsoft Active Directory * domain. This is not allowed for Elastic fleets. *
*/ private DomainJoinInfo domainJoinInfo; /** ** The tags to associate with the fleet. A tag is a key-value pair, and the value is optional. For example, * Environment=Test. If you do not specify a value, Environment=. *
** If you do not specify a value, the value is set to an empty string. *
** Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following special * characters: *
** _ . : / = + \ - @ *
** For more information, see Tagging Your Resources * in the Amazon AppStream 2.0 Administration Guide. *
*/ private java.util.Map
* The amount of time that users can be idle (inactive) before they are disconnected from their streaming session
* and the DisconnectTimeoutInSeconds
time interval begins. Users are notified before they are
* disconnected due to inactivity. If they try to reconnect to the streaming session before the time interval
* specified in DisconnectTimeoutInSeconds
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 IdleDisconnectTimeoutInSeconds
elapses, they are disconnected.
*
* To prevent users from being disconnected due to inactivity, specify a value of 0. Otherwise, specify a value * between 60 and 3600. The default value is 0. *
** 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. *
*
* 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) AssumeRole
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 appstream_machine_role credential profile on the instance.
*
* For more information, see Using an IAM Role to Grant Permissions to Applications and Scripts Running on AppStream 2.0 Streaming * Instances in the Amazon AppStream 2.0 Administration Guide. *
*/ private String iamRoleArn; /** *
* The AppStream 2.0 view that is displayed to your users when they stream from the fleet. When APP
is
* specified, only the windows of applications opened by users display. When DESKTOP
is specified, the
* standard desktop that is provided by the operating system displays.
*
* The default value is APP
.
*
* The fleet platform. WINDOWS_SERVER_2019 and AMAZON_LINUX2 are supported for Elastic fleets. *
*/ private String platform; /** ** The maximum concurrent sessions of the Elastic fleet. This is required for Elastic fleets, and not allowed for * other fleet types. *
*/ private Integer maxConcurrentSessions; /** ** 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. *
*/ private java.util.List* The S3 location of the session scripts configuration zip file. This only applies to Elastic fleets. *
*/ private S3Location sessionScriptS3Location; /** ** A unique name for the fleet. *
* * @param name * A unique name for the fleet. */ public void setName(String name) { this.name = name; } /** ** A unique name for the fleet. *
* * @return A unique name for the fleet. */ public String getName() { return this.name; } /** ** A unique name for the fleet. *
* * @param name * A unique name for the fleet. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFleetRequest withName(String name) { setName(name); return this; } /** ** The name of the image used to create the fleet. *
* * @param imageName * The name of the image used to create the fleet. */ public void setImageName(String imageName) { this.imageName = imageName; } /** ** The name of the image used to create the fleet. *
* * @return The name of the image used to create the fleet. */ public String getImageName() { return this.imageName; } /** ** The name of the image used to create the fleet. *
* * @param imageName * The name of the image used to create the fleet. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFleetRequest withImageName(String imageName) { setImageName(imageName); return this; } /** ** The ARN of the public, private, or shared image to use. *
* * @param imageArn * The ARN of the public, private, or shared image to use. */ public void setImageArn(String imageArn) { this.imageArn = imageArn; } /** ** The ARN of the public, private, or shared image to use. *
* * @return The ARN of the public, private, or shared image to use. */ public String getImageArn() { return this.imageArn; } /** ** The ARN of the public, private, or shared image to use. *
* * @param imageArn * The ARN of the public, private, or shared image to use. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFleetRequest withImageArn(String imageArn) { setImageArn(imageArn); return this; } /** ** The instance type to use when launching fleet instances. The following instance types are available: *
** stream.standard.small *
** stream.standard.medium *
** stream.standard.large *
** stream.standard.xlarge *
** stream.standard.2xlarge *
** stream.compute.large *
** stream.compute.xlarge *
** stream.compute.2xlarge *
** stream.compute.4xlarge *
** stream.compute.8xlarge *
** stream.memory.large *
** stream.memory.xlarge *
** stream.memory.2xlarge *
** stream.memory.4xlarge *
** stream.memory.8xlarge *
** stream.memory.z1d.large *
** stream.memory.z1d.xlarge *
** stream.memory.z1d.2xlarge *
** stream.memory.z1d.3xlarge *
** stream.memory.z1d.6xlarge *
** stream.memory.z1d.12xlarge *
** stream.graphics-design.large *
** stream.graphics-design.xlarge *
** stream.graphics-design.2xlarge *
** stream.graphics-design.4xlarge *
** stream.graphics-desktop.2xlarge *
** stream.graphics.g4dn.xlarge *
** stream.graphics.g4dn.2xlarge *
** stream.graphics.g4dn.4xlarge *
** stream.graphics.g4dn.8xlarge *
** stream.graphics.g4dn.12xlarge *
** stream.graphics.g4dn.16xlarge *
** stream.graphics-pro.4xlarge *
** stream.graphics-pro.8xlarge *
** stream.graphics-pro.16xlarge *
** The following instance types are available for Elastic fleets: *
** stream.standard.small *
** stream.standard.medium *
** stream.standard.large *
** stream.standard.xlarge *
** stream.standard.2xlarge *
** stream.standard.small *
** stream.standard.medium *
** stream.standard.large *
** stream.standard.xlarge *
** stream.standard.2xlarge *
** stream.compute.large *
** stream.compute.xlarge *
** stream.compute.2xlarge *
** stream.compute.4xlarge *
** stream.compute.8xlarge *
** stream.memory.large *
** stream.memory.xlarge *
** stream.memory.2xlarge *
** stream.memory.4xlarge *
** stream.memory.8xlarge *
** stream.memory.z1d.large *
** stream.memory.z1d.xlarge *
** stream.memory.z1d.2xlarge *
** stream.memory.z1d.3xlarge *
** stream.memory.z1d.6xlarge *
** stream.memory.z1d.12xlarge *
** stream.graphics-design.large *
** stream.graphics-design.xlarge *
** stream.graphics-design.2xlarge *
** stream.graphics-design.4xlarge *
** stream.graphics-desktop.2xlarge *
** stream.graphics.g4dn.xlarge *
** stream.graphics.g4dn.2xlarge *
** stream.graphics.g4dn.4xlarge *
** stream.graphics.g4dn.8xlarge *
** stream.graphics.g4dn.12xlarge *
** stream.graphics.g4dn.16xlarge *
** stream.graphics-pro.4xlarge *
** stream.graphics-pro.8xlarge *
** stream.graphics-pro.16xlarge *
** The following instance types are available for Elastic fleets: *
** stream.standard.small *
** stream.standard.medium *
** stream.standard.large *
** stream.standard.xlarge *
** stream.standard.2xlarge *
** The instance type to use when launching fleet instances. The following instance types are available: *
** stream.standard.small *
** stream.standard.medium *
** stream.standard.large *
** stream.standard.xlarge *
** stream.standard.2xlarge *
** stream.compute.large *
** stream.compute.xlarge *
** stream.compute.2xlarge *
** stream.compute.4xlarge *
** stream.compute.8xlarge *
** stream.memory.large *
** stream.memory.xlarge *
** stream.memory.2xlarge *
** stream.memory.4xlarge *
** stream.memory.8xlarge *
** stream.memory.z1d.large *
** stream.memory.z1d.xlarge *
** stream.memory.z1d.2xlarge *
** stream.memory.z1d.3xlarge *
** stream.memory.z1d.6xlarge *
** stream.memory.z1d.12xlarge *
** stream.graphics-design.large *
** stream.graphics-design.xlarge *
** stream.graphics-design.2xlarge *
** stream.graphics-design.4xlarge *
** stream.graphics-desktop.2xlarge *
** stream.graphics.g4dn.xlarge *
** stream.graphics.g4dn.2xlarge *
** stream.graphics.g4dn.4xlarge *
** stream.graphics.g4dn.8xlarge *
** stream.graphics.g4dn.12xlarge *
** stream.graphics.g4dn.16xlarge *
** stream.graphics-pro.4xlarge *
** stream.graphics-pro.8xlarge *
** stream.graphics-pro.16xlarge *
** The following instance types are available for Elastic fleets: *
** stream.standard.small *
** stream.standard.medium *
** stream.standard.large *
** stream.standard.xlarge *
** stream.standard.2xlarge *
** stream.standard.small *
** stream.standard.medium *
** stream.standard.large *
** stream.standard.xlarge *
** stream.standard.2xlarge *
** stream.compute.large *
** stream.compute.xlarge *
** stream.compute.2xlarge *
** stream.compute.4xlarge *
** stream.compute.8xlarge *
** stream.memory.large *
** stream.memory.xlarge *
** stream.memory.2xlarge *
** stream.memory.4xlarge *
** stream.memory.8xlarge *
** stream.memory.z1d.large *
** stream.memory.z1d.xlarge *
** stream.memory.z1d.2xlarge *
** stream.memory.z1d.3xlarge *
** stream.memory.z1d.6xlarge *
** stream.memory.z1d.12xlarge *
** stream.graphics-design.large *
** stream.graphics-design.xlarge *
** stream.graphics-design.2xlarge *
** stream.graphics-design.4xlarge *
** stream.graphics-desktop.2xlarge *
** stream.graphics.g4dn.xlarge *
** stream.graphics.g4dn.2xlarge *
** stream.graphics.g4dn.4xlarge *
** stream.graphics.g4dn.8xlarge *
** stream.graphics.g4dn.12xlarge *
** stream.graphics.g4dn.16xlarge *
** stream.graphics-pro.4xlarge *
** stream.graphics-pro.8xlarge *
** stream.graphics-pro.16xlarge *
** The following instance types are available for Elastic fleets: *
** stream.standard.small *
** stream.standard.medium *
** stream.standard.large *
** stream.standard.xlarge *
** stream.standard.2xlarge *
** The instance type to use when launching fleet instances. The following instance types are available: *
** stream.standard.small *
** stream.standard.medium *
** stream.standard.large *
** stream.standard.xlarge *
** stream.standard.2xlarge *
** stream.compute.large *
** stream.compute.xlarge *
** stream.compute.2xlarge *
** stream.compute.4xlarge *
** stream.compute.8xlarge *
** stream.memory.large *
** stream.memory.xlarge *
** stream.memory.2xlarge *
** stream.memory.4xlarge *
** stream.memory.8xlarge *
** stream.memory.z1d.large *
** stream.memory.z1d.xlarge *
** stream.memory.z1d.2xlarge *
** stream.memory.z1d.3xlarge *
** stream.memory.z1d.6xlarge *
** stream.memory.z1d.12xlarge *
** stream.graphics-design.large *
** stream.graphics-design.xlarge *
** stream.graphics-design.2xlarge *
** stream.graphics-design.4xlarge *
** stream.graphics-desktop.2xlarge *
** stream.graphics.g4dn.xlarge *
** stream.graphics.g4dn.2xlarge *
** stream.graphics.g4dn.4xlarge *
** stream.graphics.g4dn.8xlarge *
** stream.graphics.g4dn.12xlarge *
** stream.graphics.g4dn.16xlarge *
** stream.graphics-pro.4xlarge *
** stream.graphics-pro.8xlarge *
** stream.graphics-pro.16xlarge *
** The following instance types are available for Elastic fleets: *
** stream.standard.small *
** stream.standard.medium *
** stream.standard.large *
** stream.standard.xlarge *
** stream.standard.2xlarge *
** stream.standard.small *
** stream.standard.medium *
** stream.standard.large *
** stream.standard.xlarge *
** stream.standard.2xlarge *
** stream.compute.large *
** stream.compute.xlarge *
** stream.compute.2xlarge *
** stream.compute.4xlarge *
** stream.compute.8xlarge *
** stream.memory.large *
** stream.memory.xlarge *
** stream.memory.2xlarge *
** stream.memory.4xlarge *
** stream.memory.8xlarge *
** stream.memory.z1d.large *
** stream.memory.z1d.xlarge *
** stream.memory.z1d.2xlarge *
** stream.memory.z1d.3xlarge *
** stream.memory.z1d.6xlarge *
** stream.memory.z1d.12xlarge *
** stream.graphics-design.large *
** stream.graphics-design.xlarge *
** stream.graphics-design.2xlarge *
** stream.graphics-design.4xlarge *
** stream.graphics-desktop.2xlarge *
** stream.graphics.g4dn.xlarge *
** stream.graphics.g4dn.2xlarge *
** stream.graphics.g4dn.4xlarge *
** stream.graphics.g4dn.8xlarge *
** stream.graphics.g4dn.12xlarge *
** stream.graphics.g4dn.16xlarge *
** stream.graphics-pro.4xlarge *
** stream.graphics-pro.8xlarge *
** stream.graphics-pro.16xlarge *
** The following instance types are available for Elastic fleets: *
** stream.standard.small *
** stream.standard.medium *
** stream.standard.large *
** stream.standard.xlarge *
** stream.standard.2xlarge *
** The fleet type. *
** Provides users with instant-on access to their apps. You are charged for all running instances in your fleet, * even if no users are streaming apps. *
** Provide users with access to applications after they connect, which takes one to two minutes. You are charged for * instance streaming when users are connected and a small hourly fee for instances that are not streaming apps. *
** Provides users with instant-on access to their apps. You are charged for all running instances in your * fleet, even if no users are streaming apps. *
** Provide users with access to applications after they connect, which takes one to two minutes. You are * charged for instance streaming when users are connected and a small hourly fee for instances that are not * streaming apps. *
** The fleet type. *
** Provides users with instant-on access to their apps. You are charged for all running instances in your fleet, * even if no users are streaming apps. *
** Provide users with access to applications after they connect, which takes one to two minutes. You are charged for * instance streaming when users are connected and a small hourly fee for instances that are not streaming apps. *
** Provides users with instant-on access to their apps. You are charged for all running instances in your * fleet, even if no users are streaming apps. *
** Provide users with access to applications after they connect, which takes one to two minutes. You are * charged for instance streaming when users are connected and a small hourly fee for instances that are not * streaming apps. *
** The fleet type. *
** Provides users with instant-on access to their apps. You are charged for all running instances in your fleet, * even if no users are streaming apps. *
** Provide users with access to applications after they connect, which takes one to two minutes. You are charged for * instance streaming when users are connected and a small hourly fee for instances that are not streaming apps. *
** Provides users with instant-on access to their apps. You are charged for all running instances in your * fleet, even if no users are streaming apps. *
** Provide users with access to applications after they connect, which takes one to two minutes. You are * charged for instance streaming when users are connected and a small hourly fee for instances that are not * streaming apps. *
** The fleet type. *
** Provides users with instant-on access to their apps. You are charged for all running instances in your fleet, * even if no users are streaming apps. *
** Provide users with access to applications after they connect, which takes one to two minutes. You are charged for * instance streaming when users are connected and a small hourly fee for instances that are not streaming apps. *
** Provides users with instant-on access to their apps. You are charged for all running instances in your * fleet, even if no users are streaming apps. *
** Provide users with access to applications after they connect, which takes one to two minutes. You are * charged for instance streaming when users are connected and a small hourly fee for instances that are not * streaming apps. *
** The desired capacity for the fleet. This is not allowed for Elastic fleets. For Elastic fleets, specify * MaxConcurrentSessions instead. *
* * @param computeCapacity * The desired capacity for the fleet. This is not allowed for Elastic fleets. For Elastic fleets, specify * MaxConcurrentSessions instead. */ public void setComputeCapacity(ComputeCapacity computeCapacity) { this.computeCapacity = computeCapacity; } /** ** The desired capacity for the fleet. This is not allowed for Elastic fleets. For Elastic fleets, specify * MaxConcurrentSessions instead. *
* * @return The desired capacity for the fleet. This is not allowed for Elastic fleets. For Elastic fleets, specify * MaxConcurrentSessions instead. */ public ComputeCapacity getComputeCapacity() { return this.computeCapacity; } /** ** The desired capacity for the fleet. This is not allowed for Elastic fleets. For Elastic fleets, specify * MaxConcurrentSessions instead. *
* * @param computeCapacity * The desired capacity for the fleet. This is not allowed for Elastic fleets. For Elastic fleets, specify * MaxConcurrentSessions instead. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFleetRequest withComputeCapacity(ComputeCapacity computeCapacity) { setComputeCapacity(computeCapacity); return this; } /** ** 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. *
* * @param vpcConfig * 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. */ public void setVpcConfig(VpcConfig vpcConfig) { this.vpcConfig = vpcConfig; } /** ** 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. *
* * @return 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. */ public VpcConfig getVpcConfig() { return this.vpcConfig; } /** ** 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. *
* * @param vpcConfig * 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. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFleetRequest withVpcConfig(VpcConfig vpcConfig) { setVpcConfig(vpcConfig); return this; } /** ** 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. *
** Specify a value between 600 and 360000. *
* * @param maxUserDurationInSeconds * 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. ** Specify a value between 600 and 360000. */ public void setMaxUserDurationInSeconds(Integer maxUserDurationInSeconds) { this.maxUserDurationInSeconds = maxUserDurationInSeconds; } /** *
* 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. *
** Specify a value between 600 and 360000. *
* * @return 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. ** Specify a value between 600 and 360000. */ public Integer getMaxUserDurationInSeconds() { return this.maxUserDurationInSeconds; } /** *
* 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. *
** Specify a value between 600 and 360000. *
* * @param maxUserDurationInSeconds * 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. ** Specify a value between 600 and 360000. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFleetRequest withMaxUserDurationInSeconds(Integer maxUserDurationInSeconds) { setMaxUserDurationInSeconds(maxUserDurationInSeconds); return this; } /** *
* 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. *
** Specify a value between 60 and 360000. *
* * @param disconnectTimeoutInSeconds * 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. ** Specify a value between 60 and 360000. */ public void setDisconnectTimeoutInSeconds(Integer disconnectTimeoutInSeconds) { this.disconnectTimeoutInSeconds = disconnectTimeoutInSeconds; } /** *
* 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. *
** Specify a value between 60 and 360000. *
* * @return 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. ** Specify a value between 60 and 360000. */ public Integer getDisconnectTimeoutInSeconds() { return this.disconnectTimeoutInSeconds; } /** *
* 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. *
** Specify a value between 60 and 360000. *
* * @param disconnectTimeoutInSeconds * 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. ** Specify a value between 60 and 360000. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFleetRequest withDisconnectTimeoutInSeconds(Integer disconnectTimeoutInSeconds) { setDisconnectTimeoutInSeconds(disconnectTimeoutInSeconds); return this; } /** *
* The description to display. *
* * @param description * The description to display. */ public void setDescription(String description) { this.description = description; } /** ** The description to display. *
* * @return The description to display. */ public String getDescription() { return this.description; } /** ** The description to display. *
* * @param description * The description to display. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFleetRequest withDescription(String description) { setDescription(description); return this; } /** ** The fleet name to display. *
* * @param displayName * The fleet name to display. */ public void setDisplayName(String displayName) { this.displayName = displayName; } /** ** The fleet name to display. *
* * @return The fleet name to display. */ public String getDisplayName() { return this.displayName; } /** ** The fleet name to display. *
* * @param displayName * The fleet name to display. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFleetRequest withDisplayName(String displayName) { setDisplayName(displayName); return this; } /** ** Enables or disables default internet access for the fleet. *
* * @param enableDefaultInternetAccess * Enables or disables default internet access for the fleet. */ public void setEnableDefaultInternetAccess(Boolean enableDefaultInternetAccess) { this.enableDefaultInternetAccess = enableDefaultInternetAccess; } /** ** Enables or disables default internet access for the fleet. *
* * @return Enables or disables default internet access for the fleet. */ public Boolean getEnableDefaultInternetAccess() { return this.enableDefaultInternetAccess; } /** ** Enables or disables default internet access for the fleet. *
* * @param enableDefaultInternetAccess * Enables or disables default internet access for the fleet. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFleetRequest withEnableDefaultInternetAccess(Boolean enableDefaultInternetAccess) { setEnableDefaultInternetAccess(enableDefaultInternetAccess); return this; } /** ** Enables or disables default internet access for the fleet. *
* * @return Enables or disables default internet access for the fleet. */ public Boolean isEnableDefaultInternetAccess() { return this.enableDefaultInternetAccess; } /** ** The name of the directory and organizational unit (OU) to use to join the fleet to a Microsoft Active Directory * domain. This is not allowed for Elastic fleets. *
* * @param domainJoinInfo * The name of the directory and organizational unit (OU) to use to join the fleet to a Microsoft Active * Directory domain. This is not allowed for Elastic fleets. */ public void setDomainJoinInfo(DomainJoinInfo domainJoinInfo) { this.domainJoinInfo = domainJoinInfo; } /** ** The name of the directory and organizational unit (OU) to use to join the fleet to a Microsoft Active Directory * domain. This is not allowed for Elastic fleets. *
* * @return The name of the directory and organizational unit (OU) to use to join the fleet to a Microsoft Active * Directory domain. This is not allowed for Elastic fleets. */ public DomainJoinInfo getDomainJoinInfo() { return this.domainJoinInfo; } /** ** The name of the directory and organizational unit (OU) to use to join the fleet to a Microsoft Active Directory * domain. This is not allowed for Elastic fleets. *
* * @param domainJoinInfo * The name of the directory and organizational unit (OU) to use to join the fleet to a Microsoft Active * Directory domain. This is not allowed for Elastic fleets. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFleetRequest withDomainJoinInfo(DomainJoinInfo domainJoinInfo) { setDomainJoinInfo(domainJoinInfo); return this; } /** ** The tags to associate with the fleet. A tag is a key-value pair, and the value is optional. For example, * Environment=Test. If you do not specify a value, Environment=. *
** If you do not specify a value, the value is set to an empty string. *
** Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following special * characters: *
** _ . : / = + \ - @ *
** For more information, see Tagging Your Resources * in the Amazon AppStream 2.0 Administration Guide. *
* * @return The tags to associate with the fleet. A tag is a key-value pair, and the value is optional. For example, * Environment=Test. If you do not specify a value, Environment=. ** If you do not specify a value, the value is set to an empty string. *
** Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following * special characters: *
** _ . : / = + \ - @ *
*
* For more information, see Tagging Your
* Resources in the Amazon AppStream 2.0 Administration Guide.
*/
public java.util.Map
* The tags to associate with the fleet. A tag is a key-value pair, and the value is optional. For example,
* Environment=Test. If you do not specify a value, Environment=.
*
* If you do not specify a value, the value is set to an empty string.
*
* Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following special
* characters:
*
* _ . : / = + \ - @
*
* For more information, see Tagging Your Resources
* in the Amazon AppStream 2.0 Administration Guide.
*
* If you do not specify a value, the value is set to an empty string. *
** Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following * special characters: *
** _ . : / = + \ - @ *
*
* For more information, see Tagging Your
* Resources in the Amazon AppStream 2.0 Administration Guide.
*/
public void setTags(java.util.Map
* The tags to associate with the fleet. A tag is a key-value pair, and the value is optional. For example,
* Environment=Test. If you do not specify a value, Environment=.
*
* If you do not specify a value, the value is set to an empty string.
*
* Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following special
* characters:
*
* _ . : / = + \ - @
*
* For more information, see Tagging Your Resources
* in the Amazon AppStream 2.0 Administration Guide.
*
* If you do not specify a value, the value is set to an empty string. *
** Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following * special characters: *
** _ . : / = + \ - @ *
*
* For more information, see Tagging Your
* Resources in the Amazon AppStream 2.0 Administration Guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateFleetRequest withTags(java.util.Map
* The amount of time that users can be idle (inactive) before they are disconnected from their streaming session
* and the
* To prevent users from being disconnected due to inactivity, specify a value of 0. Otherwise, specify a value
* between 60 and 3600. The default value is 0.
*
* 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.
* DisconnectTimeoutInSeconds
time interval begins. Users are notified before they are
* disconnected due to inactivity. If they try to reconnect to the streaming session before the time interval
* specified in DisconnectTimeoutInSeconds
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 IdleDisconnectTimeoutInSeconds
elapses, they are disconnected.
* DisconnectTimeoutInSeconds
time interval begins. Users are notified before
* they are disconnected due to inactivity. If they try to reconnect to the streaming session before the time
* interval specified in DisconnectTimeoutInSeconds
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
* IdleDisconnectTimeoutInSeconds
elapses, they are disconnected.
* To prevent users from being disconnected due to inactivity, specify a value of 0. Otherwise, specify a * value between 60 and 3600. The default value is 0. *
** 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. *
*/ public void setIdleDisconnectTimeoutInSeconds(Integer idleDisconnectTimeoutInSeconds) { this.idleDisconnectTimeoutInSeconds = idleDisconnectTimeoutInSeconds; } /** *
* The amount of time that users can be idle (inactive) before they are disconnected from their streaming session
* and the DisconnectTimeoutInSeconds
time interval begins. Users are notified before they are
* disconnected due to inactivity. If they try to reconnect to the streaming session before the time interval
* specified in DisconnectTimeoutInSeconds
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 IdleDisconnectTimeoutInSeconds
elapses, they are disconnected.
*
* To prevent users from being disconnected due to inactivity, specify a value of 0. Otherwise, specify a value * between 60 and 3600. The default value is 0. *
** 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. *
*DisconnectTimeoutInSeconds
time interval begins. Users are notified before
* they are disconnected due to inactivity. If they try to reconnect to the streaming session before the
* time interval specified in DisconnectTimeoutInSeconds
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
* IdleDisconnectTimeoutInSeconds
elapses, they are disconnected.
* * To prevent users from being disconnected due to inactivity, specify a value of 0. Otherwise, specify a * value between 60 and 3600. The default value is 0. *
** 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. *
*/ public Integer getIdleDisconnectTimeoutInSeconds() { return this.idleDisconnectTimeoutInSeconds; } /** *
* The amount of time that users can be idle (inactive) before they are disconnected from their streaming session
* and the DisconnectTimeoutInSeconds
time interval begins. Users are notified before they are
* disconnected due to inactivity. If they try to reconnect to the streaming session before the time interval
* specified in DisconnectTimeoutInSeconds
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 IdleDisconnectTimeoutInSeconds
elapses, they are disconnected.
*
* To prevent users from being disconnected due to inactivity, specify a value of 0. Otherwise, specify a value * between 60 and 3600. The default value is 0. *
** 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. *
*DisconnectTimeoutInSeconds
time interval begins. Users are notified before
* they are disconnected due to inactivity. If they try to reconnect to the streaming session before the time
* interval specified in DisconnectTimeoutInSeconds
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
* IdleDisconnectTimeoutInSeconds
elapses, they are disconnected.
* * To prevent users from being disconnected due to inactivity, specify a value of 0. Otherwise, specify a * value between 60 and 3600. The default value is 0. *
** 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. *
* @return Returns a reference to this object so that method calls can be chained together. */ public CreateFleetRequest withIdleDisconnectTimeoutInSeconds(Integer idleDisconnectTimeoutInSeconds) { setIdleDisconnectTimeoutInSeconds(idleDisconnectTimeoutInSeconds); return this; } /** *
* 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) AssumeRole
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 appstream_machine_role credential profile on the instance.
*
* For more information, see Using an IAM Role to Grant Permissions to Applications and Scripts Running on AppStream 2.0 Streaming * Instances in the Amazon AppStream 2.0 Administration Guide. *
* * @param iamRoleArn * 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)AssumeRole
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 appstream_machine_role credential profile on the
* instance.
* * For more information, see Using an IAM Role to Grant Permissions to Applications and Scripts Running on AppStream 2.0 Streaming * Instances in the Amazon AppStream 2.0 Administration Guide. */ public void setIamRoleArn(String iamRoleArn) { this.iamRoleArn = iamRoleArn; } /** *
* 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) AssumeRole
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 appstream_machine_role credential profile on the instance.
*
* For more information, see Using an IAM Role to Grant Permissions to Applications and Scripts Running on AppStream 2.0 Streaming * Instances in the Amazon AppStream 2.0 Administration Guide. *
* * @return 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)AssumeRole
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 appstream_machine_role credential profile on the
* instance.
* * For more information, see Using an IAM Role to Grant Permissions to Applications and Scripts Running on AppStream 2.0 Streaming * Instances in the Amazon AppStream 2.0 Administration Guide. */ public String getIamRoleArn() { return this.iamRoleArn; } /** *
* 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) AssumeRole
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 appstream_machine_role credential profile on the instance.
*
* For more information, see Using an IAM Role to Grant Permissions to Applications and Scripts Running on AppStream 2.0 Streaming * Instances in the Amazon AppStream 2.0 Administration Guide. *
* * @param iamRoleArn * 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)AssumeRole
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 appstream_machine_role credential profile on the
* instance.
* * For more information, see Using an IAM Role to Grant Permissions to Applications and Scripts Running on AppStream 2.0 Streaming * Instances in the Amazon AppStream 2.0 Administration Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFleetRequest withIamRoleArn(String iamRoleArn) { setIamRoleArn(iamRoleArn); return this; } /** *
* The AppStream 2.0 view that is displayed to your users when they stream from the fleet. When APP
is
* specified, only the windows of applications opened by users display. When DESKTOP
is specified, the
* standard desktop that is provided by the operating system displays.
*
* The default value is APP
.
*
APP
is specified, only the windows of applications opened by users display. When
* DESKTOP
is specified, the standard desktop that is provided by the operating system
* displays.
*
* The default value is APP
.
* @see StreamView
*/
public void setStreamView(String streamView) {
this.streamView = streamView;
}
/**
*
* The AppStream 2.0 view that is displayed to your users when they stream from the fleet. When APP
is
* specified, only the windows of applications opened by users display. When DESKTOP
is specified, the
* standard desktop that is provided by the operating system displays.
*
* The default value is APP
.
*
APP
is specified, only the windows of applications opened by users display. When
* DESKTOP
is specified, the standard desktop that is provided by the operating system
* displays.
*
* The default value is APP
.
* @see StreamView
*/
public String getStreamView() {
return this.streamView;
}
/**
*
* The AppStream 2.0 view that is displayed to your users when they stream from the fleet. When APP
is
* specified, only the windows of applications opened by users display. When DESKTOP
is specified, the
* standard desktop that is provided by the operating system displays.
*
* The default value is APP
.
*
APP
is specified, only the windows of applications opened by users display. When
* DESKTOP
is specified, the standard desktop that is provided by the operating system
* displays.
*
* The default value is APP
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see StreamView
*/
public CreateFleetRequest withStreamView(String streamView) {
setStreamView(streamView);
return this;
}
/**
*
* The AppStream 2.0 view that is displayed to your users when they stream from the fleet. When APP
is
* specified, only the windows of applications opened by users display. When DESKTOP
is specified, the
* standard desktop that is provided by the operating system displays.
*
* The default value is APP
.
*
APP
is specified, only the windows of applications opened by users display. When
* DESKTOP
is specified, the standard desktop that is provided by the operating system
* displays.
*
* The default value is APP
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see StreamView
*/
public CreateFleetRequest withStreamView(StreamView streamView) {
this.streamView = streamView.toString();
return this;
}
/**
*
* The fleet platform. WINDOWS_SERVER_2019 and AMAZON_LINUX2 are supported for Elastic fleets. *
* * @param platform * The fleet platform. WINDOWS_SERVER_2019 and AMAZON_LINUX2 are supported for Elastic fleets. * @see PlatformType */ public void setPlatform(String platform) { this.platform = platform; } /** ** The fleet platform. WINDOWS_SERVER_2019 and AMAZON_LINUX2 are supported for Elastic fleets. *
* * @return The fleet platform. WINDOWS_SERVER_2019 and AMAZON_LINUX2 are supported for Elastic fleets. * @see PlatformType */ public String getPlatform() { return this.platform; } /** ** The fleet platform. WINDOWS_SERVER_2019 and AMAZON_LINUX2 are supported for Elastic fleets. *
* * @param platform * The fleet platform. WINDOWS_SERVER_2019 and AMAZON_LINUX2 are supported for Elastic fleets. * @return Returns a reference to this object so that method calls can be chained together. * @see PlatformType */ public CreateFleetRequest withPlatform(String platform) { setPlatform(platform); return this; } /** ** The fleet platform. WINDOWS_SERVER_2019 and AMAZON_LINUX2 are supported for Elastic fleets. *
* * @param platform * The fleet platform. WINDOWS_SERVER_2019 and AMAZON_LINUX2 are supported for Elastic fleets. * @return Returns a reference to this object so that method calls can be chained together. * @see PlatformType */ public CreateFleetRequest withPlatform(PlatformType platform) { this.platform = platform.toString(); return this; } /** ** The maximum concurrent sessions of the Elastic fleet. This is required for Elastic fleets, and not allowed for * other fleet types. *
* * @param maxConcurrentSessions * The maximum concurrent sessions of the Elastic fleet. This is required for Elastic fleets, and not allowed * for other fleet types. */ public void setMaxConcurrentSessions(Integer maxConcurrentSessions) { this.maxConcurrentSessions = maxConcurrentSessions; } /** ** The maximum concurrent sessions of the Elastic fleet. This is required for Elastic fleets, and not allowed for * other fleet types. *
* * @return The maximum concurrent sessions of the Elastic fleet. This is required for Elastic fleets, and not * allowed for other fleet types. */ public Integer getMaxConcurrentSessions() { return this.maxConcurrentSessions; } /** ** The maximum concurrent sessions of the Elastic fleet. This is required for Elastic fleets, and not allowed for * other fleet types. *
* * @param maxConcurrentSessions * The maximum concurrent sessions of the Elastic fleet. This is required for Elastic fleets, and not allowed * for other fleet types. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFleetRequest withMaxConcurrentSessions(Integer maxConcurrentSessions) { setMaxConcurrentSessions(maxConcurrentSessions); return this; } /** ** 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. *
* * @return 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. */ public java.util.List* 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. *
* * @param usbDeviceFilterStrings * 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. */ public void setUsbDeviceFilterStrings(java.util.Collection* 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. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setUsbDeviceFilterStrings(java.util.Collection)} or * {@link #withUsbDeviceFilterStrings(java.util.Collection)} if you want to override the existing values. *
* * @param usbDeviceFilterStrings * 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. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFleetRequest withUsbDeviceFilterStrings(String... usbDeviceFilterStrings) { if (this.usbDeviceFilterStrings == null) { setUsbDeviceFilterStrings(new java.util.ArrayList* 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. *
* * @param usbDeviceFilterStrings * 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. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFleetRequest withUsbDeviceFilterStrings(java.util.Collection* The S3 location of the session scripts configuration zip file. This only applies to Elastic fleets. *
* * @param sessionScriptS3Location * The S3 location of the session scripts configuration zip file. This only applies to Elastic fleets. */ public void setSessionScriptS3Location(S3Location sessionScriptS3Location) { this.sessionScriptS3Location = sessionScriptS3Location; } /** ** The S3 location of the session scripts configuration zip file. This only applies to Elastic fleets. *
* * @return The S3 location of the session scripts configuration zip file. This only applies to Elastic fleets. */ public S3Location getSessionScriptS3Location() { return this.sessionScriptS3Location; } /** ** The S3 location of the session scripts configuration zip file. This only applies to Elastic fleets. *
* * @param sessionScriptS3Location * The S3 location of the session scripts configuration zip file. This only applies to Elastic fleets. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFleetRequest withSessionScriptS3Location(S3Location sessionScriptS3Location) { setSessionScriptS3Location(sessionScriptS3Location); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getImageName() != null) sb.append("ImageName: ").append(getImageName()).append(","); if (getImageArn() != null) sb.append("ImageArn: ").append(getImageArn()).append(","); if (getInstanceType() != null) sb.append("InstanceType: ").append(getInstanceType()).append(","); if (getFleetType() != null) sb.append("FleetType: ").append(getFleetType()).append(","); if (getComputeCapacity() != null) sb.append("ComputeCapacity: ").append(getComputeCapacity()).append(","); if (getVpcConfig() != null) sb.append("VpcConfig: ").append(getVpcConfig()).append(","); if (getMaxUserDurationInSeconds() != null) sb.append("MaxUserDurationInSeconds: ").append(getMaxUserDurationInSeconds()).append(","); if (getDisconnectTimeoutInSeconds() != null) sb.append("DisconnectTimeoutInSeconds: ").append(getDisconnectTimeoutInSeconds()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getDisplayName() != null) sb.append("DisplayName: ").append(getDisplayName()).append(","); if (getEnableDefaultInternetAccess() != null) sb.append("EnableDefaultInternetAccess: ").append(getEnableDefaultInternetAccess()).append(","); if (getDomainJoinInfo() != null) sb.append("DomainJoinInfo: ").append(getDomainJoinInfo()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()).append(","); if (getIdleDisconnectTimeoutInSeconds() != null) sb.append("IdleDisconnectTimeoutInSeconds: ").append(getIdleDisconnectTimeoutInSeconds()).append(","); if (getIamRoleArn() != null) sb.append("IamRoleArn: ").append(getIamRoleArn()).append(","); if (getStreamView() != null) sb.append("StreamView: ").append(getStreamView()).append(","); if (getPlatform() != null) sb.append("Platform: ").append(getPlatform()).append(","); if (getMaxConcurrentSessions() != null) sb.append("MaxConcurrentSessions: ").append(getMaxConcurrentSessions()).append(","); if (getUsbDeviceFilterStrings() != null) sb.append("UsbDeviceFilterStrings: ").append(getUsbDeviceFilterStrings()).append(","); if (getSessionScriptS3Location() != null) sb.append("SessionScriptS3Location: ").append(getSessionScriptS3Location()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateFleetRequest == false) return false; CreateFleetRequest other = (CreateFleetRequest) obj; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getImageName() == null ^ this.getImageName() == null) return false; if (other.getImageName() != null && other.getImageName().equals(this.getImageName()) == false) return false; if (other.getImageArn() == null ^ this.getImageArn() == null) return false; if (other.getImageArn() != null && other.getImageArn().equals(this.getImageArn()) == false) return false; if (other.getInstanceType() == null ^ this.getInstanceType() == null) return false; if (other.getInstanceType() != null && other.getInstanceType().equals(this.getInstanceType()) == false) return false; if (other.getFleetType() == null ^ this.getFleetType() == null) return false; if (other.getFleetType() != null && other.getFleetType().equals(this.getFleetType()) == false) return false; if (other.getComputeCapacity() == null ^ this.getComputeCapacity() == null) return false; if (other.getComputeCapacity() != null && other.getComputeCapacity().equals(this.getComputeCapacity()) == false) return false; if (other.getVpcConfig() == null ^ this.getVpcConfig() == null) return false; if (other.getVpcConfig() != null && other.getVpcConfig().equals(this.getVpcConfig()) == false) return false; if (other.getMaxUserDurationInSeconds() == null ^ this.getMaxUserDurationInSeconds() == null) return false; if (other.getMaxUserDurationInSeconds() != null && other.getMaxUserDurationInSeconds().equals(this.getMaxUserDurationInSeconds()) == false) return false; if (other.getDisconnectTimeoutInSeconds() == null ^ this.getDisconnectTimeoutInSeconds() == null) return false; if (other.getDisconnectTimeoutInSeconds() != null && other.getDisconnectTimeoutInSeconds().equals(this.getDisconnectTimeoutInSeconds()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getDisplayName() == null ^ this.getDisplayName() == null) return false; if (other.getDisplayName() != null && other.getDisplayName().equals(this.getDisplayName()) == false) return false; if (other.getEnableDefaultInternetAccess() == null ^ this.getEnableDefaultInternetAccess() == null) return false; if (other.getEnableDefaultInternetAccess() != null && other.getEnableDefaultInternetAccess().equals(this.getEnableDefaultInternetAccess()) == false) return false; if (other.getDomainJoinInfo() == null ^ this.getDomainJoinInfo() == null) return false; if (other.getDomainJoinInfo() != null && other.getDomainJoinInfo().equals(this.getDomainJoinInfo()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; if (other.getIdleDisconnectTimeoutInSeconds() == null ^ this.getIdleDisconnectTimeoutInSeconds() == null) return false; if (other.getIdleDisconnectTimeoutInSeconds() != null && other.getIdleDisconnectTimeoutInSeconds().equals(this.getIdleDisconnectTimeoutInSeconds()) == false) return false; if (other.getIamRoleArn() == null ^ this.getIamRoleArn() == null) return false; if (other.getIamRoleArn() != null && other.getIamRoleArn().equals(this.getIamRoleArn()) == false) return false; if (other.getStreamView() == null ^ this.getStreamView() == null) return false; if (other.getStreamView() != null && other.getStreamView().equals(this.getStreamView()) == false) return false; if (other.getPlatform() == null ^ this.getPlatform() == null) return false; if (other.getPlatform() != null && other.getPlatform().equals(this.getPlatform()) == false) return false; if (other.getMaxConcurrentSessions() == null ^ this.getMaxConcurrentSessions() == null) return false; if (other.getMaxConcurrentSessions() != null && other.getMaxConcurrentSessions().equals(this.getMaxConcurrentSessions()) == false) return false; if (other.getUsbDeviceFilterStrings() == null ^ this.getUsbDeviceFilterStrings() == null) return false; if (other.getUsbDeviceFilterStrings() != null && other.getUsbDeviceFilterStrings().equals(this.getUsbDeviceFilterStrings()) == false) return false; if (other.getSessionScriptS3Location() == null ^ this.getSessionScriptS3Location() == null) return false; if (other.getSessionScriptS3Location() != null && other.getSessionScriptS3Location().equals(this.getSessionScriptS3Location()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getImageName() == null) ? 0 : getImageName().hashCode()); hashCode = prime * hashCode + ((getImageArn() == null) ? 0 : getImageArn().hashCode()); hashCode = prime * hashCode + ((getInstanceType() == null) ? 0 : getInstanceType().hashCode()); hashCode = prime * hashCode + ((getFleetType() == null) ? 0 : getFleetType().hashCode()); hashCode = prime * hashCode + ((getComputeCapacity() == null) ? 0 : getComputeCapacity().hashCode()); hashCode = prime * hashCode + ((getVpcConfig() == null) ? 0 : getVpcConfig().hashCode()); hashCode = prime * hashCode + ((getMaxUserDurationInSeconds() == null) ? 0 : getMaxUserDurationInSeconds().hashCode()); hashCode = prime * hashCode + ((getDisconnectTimeoutInSeconds() == null) ? 0 : getDisconnectTimeoutInSeconds().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getDisplayName() == null) ? 0 : getDisplayName().hashCode()); hashCode = prime * hashCode + ((getEnableDefaultInternetAccess() == null) ? 0 : getEnableDefaultInternetAccess().hashCode()); hashCode = prime * hashCode + ((getDomainJoinInfo() == null) ? 0 : getDomainJoinInfo().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); hashCode = prime * hashCode + ((getIdleDisconnectTimeoutInSeconds() == null) ? 0 : getIdleDisconnectTimeoutInSeconds().hashCode()); hashCode = prime * hashCode + ((getIamRoleArn() == null) ? 0 : getIamRoleArn().hashCode()); hashCode = prime * hashCode + ((getStreamView() == null) ? 0 : getStreamView().hashCode()); hashCode = prime * hashCode + ((getPlatform() == null) ? 0 : getPlatform().hashCode()); hashCode = prime * hashCode + ((getMaxConcurrentSessions() == null) ? 0 : getMaxConcurrentSessions().hashCode()); hashCode = prime * hashCode + ((getUsbDeviceFilterStrings() == null) ? 0 : getUsbDeviceFilterStrings().hashCode()); hashCode = prime * hashCode + ((getSessionScriptS3Location() == null) ? 0 : getSessionScriptS3Location().hashCode()); return hashCode; } @Override public CreateFleetRequest clone() { return (CreateFleetRequest) super.clone(); } }