com.amazonaws.services.appstream.model.CreateFleetRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-appstream Show documentation
/*
* Copyright 2013-2018 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 instance type to use when launching fleet instances. The following instance types are available:
*
*
* -
*
* stream.standard.medium
*
*
* -
*
* stream.standard.large
*
*
* -
*
* 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.graphics-design.large
*
*
* -
*
* stream.graphics-design.xlarge
*
*
* -
*
* stream.graphics-design.2xlarge
*
*
* -
*
* stream.graphics-design.4xlarge
*
*
* -
*
* stream.graphics-desktop.2xlarge
*
*
* -
*
* stream.graphics-pro.4xlarge
*
*
* -
*
* stream.graphics-pro.8xlarge
*
*
* -
*
* stream.graphics-pro.16xlarge
*
*
*
*/
private String instanceType;
/**
*
* The fleet type.
*
*
* - ALWAYS_ON
* -
*
* 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.
*
*
* - ON_DEMAND
* -
*
* 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.
*
*
*
*/
private String fleetType;
/**
*
* The desired capacity for the fleet.
*
*/
private ComputeCapacity computeCapacity;
/**
*
* The VPC configuration for the fleet.
*
*/
private VpcConfig vpcConfig;
/**
*
* The maximum time that a streaming session can run, in seconds. Specify a value between 600 and 57600.
*
*/
private Integer maxUserDurationInSeconds;
/**
*
* The time after disconnection when a session is considered to have ended, in seconds. If a user who was
* disconnected reconnects within this time interval, the user is connected to their previous session. Specify a
* value between 60 and 57600.
*
*/
private Integer disconnectTimeoutInSeconds;
/**
*
* The description for display.
*
*/
private String description;
/**
*
* The fleet name for display.
*
*/
private String displayName;
/**
*
* Enables or disables default internet access for the fleet.
*
*/
private Boolean enableDefaultInternetAccess;
/**
*
* The information needed to join a Microsoft Active Directory domain.
*
*/
private DomainJoinInfo domainJoinInfo;
/**
*
* 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 instance type to use when launching fleet instances. The following instance types are available:
*
*
* -
*
* stream.standard.medium
*
*
* -
*
* stream.standard.large
*
*
* -
*
* 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.graphics-design.large
*
*
* -
*
* stream.graphics-design.xlarge
*
*
* -
*
* stream.graphics-design.2xlarge
*
*
* -
*
* stream.graphics-design.4xlarge
*
*
* -
*
* stream.graphics-desktop.2xlarge
*
*
* -
*
* stream.graphics-pro.4xlarge
*
*
* -
*
* stream.graphics-pro.8xlarge
*
*
* -
*
* stream.graphics-pro.16xlarge
*
*
*
*
* @param instanceType
* The instance type to use when launching fleet instances. The following instance types are available:
*
* -
*
* stream.standard.medium
*
*
* -
*
* stream.standard.large
*
*
* -
*
* 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.graphics-design.large
*
*
* -
*
* stream.graphics-design.xlarge
*
*
* -
*
* stream.graphics-design.2xlarge
*
*
* -
*
* stream.graphics-design.4xlarge
*
*
* -
*
* stream.graphics-desktop.2xlarge
*
*
* -
*
* stream.graphics-pro.4xlarge
*
*
* -
*
* stream.graphics-pro.8xlarge
*
*
* -
*
* stream.graphics-pro.16xlarge
*
*
*/
public void setInstanceType(String instanceType) {
this.instanceType = instanceType;
}
/**
*
* The instance type to use when launching fleet instances. The following instance types are available:
*
*
* -
*
* stream.standard.medium
*
*
* -
*
* stream.standard.large
*
*
* -
*
* 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.graphics-design.large
*
*
* -
*
* stream.graphics-design.xlarge
*
*
* -
*
* stream.graphics-design.2xlarge
*
*
* -
*
* stream.graphics-design.4xlarge
*
*
* -
*
* stream.graphics-desktop.2xlarge
*
*
* -
*
* stream.graphics-pro.4xlarge
*
*
* -
*
* stream.graphics-pro.8xlarge
*
*
* -
*
* stream.graphics-pro.16xlarge
*
*
*
*
* @return The instance type to use when launching fleet instances. The following instance types are available:
*
* -
*
* stream.standard.medium
*
*
* -
*
* stream.standard.large
*
*
* -
*
* 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.graphics-design.large
*
*
* -
*
* stream.graphics-design.xlarge
*
*
* -
*
* stream.graphics-design.2xlarge
*
*
* -
*
* stream.graphics-design.4xlarge
*
*
* -
*
* stream.graphics-desktop.2xlarge
*
*
* -
*
* stream.graphics-pro.4xlarge
*
*
* -
*
* stream.graphics-pro.8xlarge
*
*
* -
*
* stream.graphics-pro.16xlarge
*
*
*/
public String getInstanceType() {
return this.instanceType;
}
/**
*
* The instance type to use when launching fleet instances. The following instance types are available:
*
*
* -
*
* stream.standard.medium
*
*
* -
*
* stream.standard.large
*
*
* -
*
* 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.graphics-design.large
*
*
* -
*
* stream.graphics-design.xlarge
*
*
* -
*
* stream.graphics-design.2xlarge
*
*
* -
*
* stream.graphics-design.4xlarge
*
*
* -
*
* stream.graphics-desktop.2xlarge
*
*
* -
*
* stream.graphics-pro.4xlarge
*
*
* -
*
* stream.graphics-pro.8xlarge
*
*
* -
*
* stream.graphics-pro.16xlarge
*
*
*
*
* @param instanceType
* The instance type to use when launching fleet instances. The following instance types are available:
*
* -
*
* stream.standard.medium
*
*
* -
*
* stream.standard.large
*
*
* -
*
* 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.graphics-design.large
*
*
* -
*
* stream.graphics-design.xlarge
*
*
* -
*
* stream.graphics-design.2xlarge
*
*
* -
*
* stream.graphics-design.4xlarge
*
*
* -
*
* stream.graphics-desktop.2xlarge
*
*
* -
*
* stream.graphics-pro.4xlarge
*
*
* -
*
* stream.graphics-pro.8xlarge
*
*
* -
*
* stream.graphics-pro.16xlarge
*
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateFleetRequest withInstanceType(String instanceType) {
setInstanceType(instanceType);
return this;
}
/**
*
* The fleet type.
*
*
* - ALWAYS_ON
* -
*
* 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.
*
*
* - ON_DEMAND
* -
*
* 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.
*
*
*
*
* @param fleetType
* The fleet type.
*
* - ALWAYS_ON
* -
*
* 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.
*
*
* - ON_DEMAND
* -
*
* 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.
*
*
* @see FleetType
*/
public void setFleetType(String fleetType) {
this.fleetType = fleetType;
}
/**
*
* The fleet type.
*
*
* - ALWAYS_ON
* -
*
* 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.
*
*
* - ON_DEMAND
* -
*
* 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.
*
*
*
*
* @return The fleet type.
*
* - ALWAYS_ON
* -
*
* 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.
*
*
* - ON_DEMAND
* -
*
* 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.
*
*
* @see FleetType
*/
public String getFleetType() {
return this.fleetType;
}
/**
*
* The fleet type.
*
*
* - ALWAYS_ON
* -
*
* 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.
*
*
* - ON_DEMAND
* -
*
* 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.
*
*
*
*
* @param fleetType
* The fleet type.
*
* - ALWAYS_ON
* -
*
* 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.
*
*
* - ON_DEMAND
* -
*
* 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.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see FleetType
*/
public CreateFleetRequest withFleetType(String fleetType) {
setFleetType(fleetType);
return this;
}
/**
*
* The fleet type.
*
*
* - ALWAYS_ON
* -
*
* 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.
*
*
* - ON_DEMAND
* -
*
* 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.
*
*
*
*
* @param fleetType
* The fleet type.
*
* - ALWAYS_ON
* -
*
* 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.
*
*
* - ON_DEMAND
* -
*
* 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.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see FleetType
*/
public CreateFleetRequest withFleetType(FleetType fleetType) {
this.fleetType = fleetType.toString();
return this;
}
/**
*
* The desired capacity for the fleet.
*
*
* @param computeCapacity
* The desired capacity for the fleet.
*/
public void setComputeCapacity(ComputeCapacity computeCapacity) {
this.computeCapacity = computeCapacity;
}
/**
*
* The desired capacity for the fleet.
*
*
* @return The desired capacity for the fleet.
*/
public ComputeCapacity getComputeCapacity() {
return this.computeCapacity;
}
/**
*
* The desired capacity for the fleet.
*
*
* @param computeCapacity
* The desired capacity for the fleet.
* @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.
*
*
* @param vpcConfig
* The VPC configuration for the fleet.
*/
public void setVpcConfig(VpcConfig vpcConfig) {
this.vpcConfig = vpcConfig;
}
/**
*
* The VPC configuration for the fleet.
*
*
* @return The VPC configuration for the fleet.
*/
public VpcConfig getVpcConfig() {
return this.vpcConfig;
}
/**
*
* The VPC configuration for the fleet.
*
*
* @param vpcConfig
* The VPC configuration for the fleet.
* @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 time that a streaming session can run, in seconds. Specify a value between 600 and 57600.
*
*
* @param maxUserDurationInSeconds
* The maximum time that a streaming session can run, in seconds. Specify a value between 600 and 57600.
*/
public void setMaxUserDurationInSeconds(Integer maxUserDurationInSeconds) {
this.maxUserDurationInSeconds = maxUserDurationInSeconds;
}
/**
*
* The maximum time that a streaming session can run, in seconds. Specify a value between 600 and 57600.
*
*
* @return The maximum time that a streaming session can run, in seconds. Specify a value between 600 and 57600.
*/
public Integer getMaxUserDurationInSeconds() {
return this.maxUserDurationInSeconds;
}
/**
*
* The maximum time that a streaming session can run, in seconds. Specify a value between 600 and 57600.
*
*
* @param maxUserDurationInSeconds
* The maximum time that a streaming session can run, in seconds. Specify a value between 600 and 57600.
* @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 time after disconnection when a session is considered to have ended, in seconds. If a user who was
* disconnected reconnects within this time interval, the user is connected to their previous session. Specify a
* value between 60 and 57600.
*
*
* @param disconnectTimeoutInSeconds
* The time after disconnection when a session is considered to have ended, in seconds. If a user who was
* disconnected reconnects within this time interval, the user is connected to their previous session.
* Specify a value between 60 and 57600.
*/
public void setDisconnectTimeoutInSeconds(Integer disconnectTimeoutInSeconds) {
this.disconnectTimeoutInSeconds = disconnectTimeoutInSeconds;
}
/**
*
* The time after disconnection when a session is considered to have ended, in seconds. If a user who was
* disconnected reconnects within this time interval, the user is connected to their previous session. Specify a
* value between 60 and 57600.
*
*
* @return The time after disconnection when a session is considered to have ended, in seconds. If a user who was
* disconnected reconnects within this time interval, the user is connected to their previous session.
* Specify a value between 60 and 57600.
*/
public Integer getDisconnectTimeoutInSeconds() {
return this.disconnectTimeoutInSeconds;
}
/**
*
* The time after disconnection when a session is considered to have ended, in seconds. If a user who was
* disconnected reconnects within this time interval, the user is connected to their previous session. Specify a
* value between 60 and 57600.
*
*
* @param disconnectTimeoutInSeconds
* The time after disconnection when a session is considered to have ended, in seconds. If a user who was
* disconnected reconnects within this time interval, the user is connected to their previous session.
* Specify a value between 60 and 57600.
* @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 for display.
*
*
* @param description
* The description for display.
*/
public void setDescription(String description) {
this.description = description;
}
/**
*
* The description for display.
*
*
* @return The description for display.
*/
public String getDescription() {
return this.description;
}
/**
*
* The description for display.
*
*
* @param description
* The description for 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 for display.
*
*
* @param displayName
* The fleet name for display.
*/
public void setDisplayName(String displayName) {
this.displayName = displayName;
}
/**
*
* The fleet name for display.
*
*
* @return The fleet name for display.
*/
public String getDisplayName() {
return this.displayName;
}
/**
*
* The fleet name for display.
*
*
* @param displayName
* The fleet name for 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 information needed to join a Microsoft Active Directory domain.
*
*
* @param domainJoinInfo
* The information needed to join a Microsoft Active Directory domain.
*/
public void setDomainJoinInfo(DomainJoinInfo domainJoinInfo) {
this.domainJoinInfo = domainJoinInfo;
}
/**
*
* The information needed to join a Microsoft Active Directory domain.
*
*
* @return The information needed to join a Microsoft Active Directory domain.
*/
public DomainJoinInfo getDomainJoinInfo() {
return this.domainJoinInfo;
}
/**
*
* The information needed to join a Microsoft Active Directory domain.
*
*
* @param domainJoinInfo
* The information needed to join a Microsoft Active Directory domain.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateFleetRequest withDomainJoinInfo(DomainJoinInfo domainJoinInfo) {
setDomainJoinInfo(domainJoinInfo);
return this;
}
/**
* Returns a string representation of this object; useful for testing and debugging.
*
* @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 (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());
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.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;
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 + ((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());
return hashCode;
}
@Override
public CreateFleetRequest clone() {
return (CreateFleetRequest) super.clone();
}
}