/* * 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 UpdateFleetRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* 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; /** ** A unique name for the fleet. *
*/ private String name; /** ** 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 desired capacity for the fleet. This is not allowed for Elastic fleets. *
*/ 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 432000. *
*/ 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; /** ** Deletes the VPC association for the specified fleet. *
*/ @Deprecated private Boolean deleteVpcConfig; /** ** 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. *
*/ private DomainJoinInfo domainJoinInfo; /** *
* 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 users 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 fleet attributes to delete. *
*/ private java.util.List
* 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 platform of the fleet. WINDOWS_SERVER_2019 and AMAZON_LINUX2 are supported for Elastic fleets. *
*/ private String platform; /** ** The maximum number of concurrent sessions for a fleet. *
*/ 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; /** ** 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 UpdateFleetRequest 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 UpdateFleetRequest withImageArn(String imageArn) { setImageArn(imageArn); return this; } /** ** 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 UpdateFleetRequest withName(String name) { setName(name); 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 desired capacity for the fleet. This is not allowed for Elastic fleets. *
* * @param computeCapacity * The desired capacity for the fleet. This is not allowed for Elastic fleets. */ public void setComputeCapacity(ComputeCapacity computeCapacity) { this.computeCapacity = computeCapacity; } /** ** The desired capacity for the fleet. This is not allowed for Elastic fleets. *
* * @return The desired capacity for the fleet. This is not allowed for Elastic fleets. */ public ComputeCapacity getComputeCapacity() { return this.computeCapacity; } /** ** The desired capacity for the fleet. This is not allowed for Elastic fleets. *
* * @param computeCapacity * The desired capacity for the fleet. This is not allowed for Elastic fleets. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateFleetRequest 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 UpdateFleetRequest 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 432000. *
* * @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 432000. */ 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 432000. *
* * @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 432000. */ 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 432000. *
* * @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 432000. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateFleetRequest 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 UpdateFleetRequest withDisconnectTimeoutInSeconds(Integer disconnectTimeoutInSeconds) { setDisconnectTimeoutInSeconds(disconnectTimeoutInSeconds); return this; } /** *
* Deletes the VPC association for the specified fleet. *
* * @param deleteVpcConfig * Deletes the VPC association for the specified fleet. */ @Deprecated public void setDeleteVpcConfig(Boolean deleteVpcConfig) { this.deleteVpcConfig = deleteVpcConfig; } /** ** Deletes the VPC association for the specified fleet. *
* * @return Deletes the VPC association for the specified fleet. */ @Deprecated public Boolean getDeleteVpcConfig() { return this.deleteVpcConfig; } /** ** Deletes the VPC association for the specified fleet. *
* * @param deleteVpcConfig * Deletes the VPC association for the specified fleet. * @return Returns a reference to this object so that method calls can be chained together. */ @Deprecated public UpdateFleetRequest withDeleteVpcConfig(Boolean deleteVpcConfig) { setDeleteVpcConfig(deleteVpcConfig); return this; } /** ** Deletes the VPC association for the specified fleet. *
* * @return Deletes the VPC association for the specified fleet. */ @Deprecated public Boolean isDeleteVpcConfig() { return this.deleteVpcConfig; } /** ** 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 UpdateFleetRequest 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 UpdateFleetRequest 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 UpdateFleetRequest 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. *
* * @param domainJoinInfo * The name of the directory and organizational unit (OU) to use to join the fleet to a Microsoft Active * Directory domain. */ 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. *
* * @return The name of the directory and organizational unit (OU) to use to join the fleet to a Microsoft Active * Directory domain. */ 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. *
* * @param domainJoinInfo * The name of the directory and organizational unit (OU) to use to join the fleet to a Microsoft Active * Directory domain. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateFleetRequest withDomainJoinInfo(DomainJoinInfo domainJoinInfo) { setDomainJoinInfo(domainJoinInfo); return this; } /** *
* 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 users 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 users 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 users 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 users 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 users 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 users 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 UpdateFleetRequest withIdleDisconnectTimeoutInSeconds(Integer idleDisconnectTimeoutInSeconds) { setIdleDisconnectTimeoutInSeconds(idleDisconnectTimeoutInSeconds); return this; } /** ** The fleet attributes to delete. *
* * @return The fleet attributes to delete. * @see FleetAttribute */ public java.util.List* The fleet attributes to delete. *
* * @param attributesToDelete * The fleet attributes to delete. * @see FleetAttribute */ public void setAttributesToDelete(java.util.Collection* The fleet attributes to delete. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setAttributesToDelete(java.util.Collection)} or {@link #withAttributesToDelete(java.util.Collection)} if * you want to override the existing values. *
* * @param attributesToDelete * The fleet attributes to delete. * @return Returns a reference to this object so that method calls can be chained together. * @see FleetAttribute */ public UpdateFleetRequest withAttributesToDelete(String... attributesToDelete) { if (this.attributesToDelete == null) { setAttributesToDelete(new java.util.ArrayList* The fleet attributes to delete. *
* * @param attributesToDelete * The fleet attributes to delete. * @return Returns a reference to this object so that method calls can be chained together. * @see FleetAttribute */ public UpdateFleetRequest withAttributesToDelete(java.util.Collection* The fleet attributes to delete. *
* * @param attributesToDelete * The fleet attributes to delete. * @return Returns a reference to this object so that method calls can be chained together. * @see FleetAttribute */ public UpdateFleetRequest withAttributesToDelete(FleetAttribute... attributesToDelete) { java.util.ArrayList
* 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 UpdateFleetRequest 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 UpdateFleetRequest 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 UpdateFleetRequest withStreamView(StreamView streamView) {
this.streamView = streamView.toString();
return this;
}
/**
*
* The platform of the fleet. WINDOWS_SERVER_2019 and AMAZON_LINUX2 are supported for Elastic fleets. *
* * @param platform * The platform of the fleet. WINDOWS_SERVER_2019 and AMAZON_LINUX2 are supported for Elastic fleets. * @see PlatformType */ public void setPlatform(String platform) { this.platform = platform; } /** ** The platform of the fleet. WINDOWS_SERVER_2019 and AMAZON_LINUX2 are supported for Elastic fleets. *
* * @return The platform of the fleet. WINDOWS_SERVER_2019 and AMAZON_LINUX2 are supported for Elastic fleets. * @see PlatformType */ public String getPlatform() { return this.platform; } /** ** The platform of the fleet. WINDOWS_SERVER_2019 and AMAZON_LINUX2 are supported for Elastic fleets. *
* * @param platform * The platform of the fleet. 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 UpdateFleetRequest withPlatform(String platform) { setPlatform(platform); return this; } /** ** The platform of the fleet. WINDOWS_SERVER_2019 and AMAZON_LINUX2 are supported for Elastic fleets. *
* * @param platform * The platform of the fleet. 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 UpdateFleetRequest withPlatform(PlatformType platform) { this.platform = platform.toString(); return this; } /** ** The maximum number of concurrent sessions for a fleet. *
* * @param maxConcurrentSessions * The maximum number of concurrent sessions for a fleet. */ public void setMaxConcurrentSessions(Integer maxConcurrentSessions) { this.maxConcurrentSessions = maxConcurrentSessions; } /** ** The maximum number of concurrent sessions for a fleet. *
* * @return The maximum number of concurrent sessions for a fleet. */ public Integer getMaxConcurrentSessions() { return this.maxConcurrentSessions; } /** ** The maximum number of concurrent sessions for a fleet. *
* * @param maxConcurrentSessions * The maximum number of concurrent sessions for a fleet. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateFleetRequest 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 UpdateFleetRequest 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 UpdateFleetRequest 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 UpdateFleetRequest 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 (getImageName() != null) sb.append("ImageName: ").append(getImageName()).append(","); if (getImageArn() != null) sb.append("ImageArn: ").append(getImageArn()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getInstanceType() != null) sb.append("InstanceType: ").append(getInstanceType()).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 (getDeleteVpcConfig() != null) sb.append("DeleteVpcConfig: ").append(getDeleteVpcConfig()).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 (getIdleDisconnectTimeoutInSeconds() != null) sb.append("IdleDisconnectTimeoutInSeconds: ").append(getIdleDisconnectTimeoutInSeconds()).append(","); if (getAttributesToDelete() != null) sb.append("AttributesToDelete: ").append(getAttributesToDelete()).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 UpdateFleetRequest == false) return false; UpdateFleetRequest other = (UpdateFleetRequest) obj; 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.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == 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.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.getDeleteVpcConfig() == null ^ this.getDeleteVpcConfig() == null) return false; if (other.getDeleteVpcConfig() != null && other.getDeleteVpcConfig().equals(this.getDeleteVpcConfig()) == 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.getIdleDisconnectTimeoutInSeconds() == null ^ this.getIdleDisconnectTimeoutInSeconds() == null) return false; if (other.getIdleDisconnectTimeoutInSeconds() != null && other.getIdleDisconnectTimeoutInSeconds().equals(this.getIdleDisconnectTimeoutInSeconds()) == false) return false; if (other.getAttributesToDelete() == null ^ this.getAttributesToDelete() == null) return false; if (other.getAttributesToDelete() != null && other.getAttributesToDelete().equals(this.getAttributesToDelete()) == 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 + ((getImageName() == null) ? 0 : getImageName().hashCode()); hashCode = prime * hashCode + ((getImageArn() == null) ? 0 : getImageArn().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getInstanceType() == null) ? 0 : getInstanceType().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 + ((getDeleteVpcConfig() == null) ? 0 : getDeleteVpcConfig().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 + ((getIdleDisconnectTimeoutInSeconds() == null) ? 0 : getIdleDisconnectTimeoutInSeconds().hashCode()); hashCode = prime * hashCode + ((getAttributesToDelete() == null) ? 0 : getAttributesToDelete().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 UpdateFleetRequest clone() { return (UpdateFleetRequest) super.clone(); } }