@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateEnvironmentEC2Request extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP| Constructor and Description | 
|---|
| CreateEnvironmentEC2Request() | 
| Modifier and Type | Method and Description | 
|---|---|
| CreateEnvironmentEC2Request | clone()Creates a shallow clone of this object for all fields except the handler context. | 
| boolean | equals(Object obj) | 
| Integer | getAutomaticStopTimeMinutes()
 The number of minutes until the running instance is shut down after the environment has last been used. | 
| String | getClientRequestToken()
 A unique, case-sensitive string that helps AWS Cloud9 to ensure this operation completes no more than one time. | 
| String | getConnectionType()
 The connection type used for connecting to an Amazon EC2 environment. | 
| String | getDescription()
 The description of the environment to create. | 
| String | getImageId()
 The identifier for the Amazon Machine Image (AMI) that's used to create the EC2 instance. | 
| String | getInstanceType()
 The type of instance to connect to the environment (for example,  t2.micro). | 
| String | getName()
 The name of the environment to create. | 
| String | getOwnerArn()
 The Amazon Resource Name (ARN) of the environment owner. | 
| String | getSubnetId()
 The ID of the subnet in Amazon VPC that AWS Cloud9 will use to communicate with the Amazon EC2 instance. | 
| List<Tag> | getTags()
 An array of key-value pairs that will be associated with the new AWS Cloud9 development environment. | 
| int | hashCode() | 
| void | setAutomaticStopTimeMinutes(Integer automaticStopTimeMinutes)
 The number of minutes until the running instance is shut down after the environment has last been used. | 
| void | setClientRequestToken(String clientRequestToken)
 A unique, case-sensitive string that helps AWS Cloud9 to ensure this operation completes no more than one time. | 
| void | setConnectionType(String connectionType)
 The connection type used for connecting to an Amazon EC2 environment. | 
| void | setDescription(String description)
 The description of the environment to create. | 
| void | setImageId(String imageId)
 The identifier for the Amazon Machine Image (AMI) that's used to create the EC2 instance. | 
| void | setInstanceType(String instanceType)
 The type of instance to connect to the environment (for example,  t2.micro). | 
| void | setName(String name)
 The name of the environment to create. | 
| void | setOwnerArn(String ownerArn)
 The Amazon Resource Name (ARN) of the environment owner. | 
| void | setSubnetId(String subnetId)
 The ID of the subnet in Amazon VPC that AWS Cloud9 will use to communicate with the Amazon EC2 instance. | 
| void | setTags(Collection<Tag> tags)
 An array of key-value pairs that will be associated with the new AWS Cloud9 development environment. | 
| String | toString()Returns a string representation of this object. | 
| CreateEnvironmentEC2Request | withAutomaticStopTimeMinutes(Integer automaticStopTimeMinutes)
 The number of minutes until the running instance is shut down after the environment has last been used. | 
| CreateEnvironmentEC2Request | withClientRequestToken(String clientRequestToken)
 A unique, case-sensitive string that helps AWS Cloud9 to ensure this operation completes no more than one time. | 
| CreateEnvironmentEC2Request | withConnectionType(ConnectionType connectionType)
 The connection type used for connecting to an Amazon EC2 environment. | 
| CreateEnvironmentEC2Request | withConnectionType(String connectionType)
 The connection type used for connecting to an Amazon EC2 environment. | 
| CreateEnvironmentEC2Request | withDescription(String description)
 The description of the environment to create. | 
| CreateEnvironmentEC2Request | withImageId(String imageId)
 The identifier for the Amazon Machine Image (AMI) that's used to create the EC2 instance. | 
| CreateEnvironmentEC2Request | withInstanceType(String instanceType)
 The type of instance to connect to the environment (for example,  t2.micro). | 
| CreateEnvironmentEC2Request | withName(String name)
 The name of the environment to create. | 
| CreateEnvironmentEC2Request | withOwnerArn(String ownerArn)
 The Amazon Resource Name (ARN) of the environment owner. | 
| CreateEnvironmentEC2Request | withSubnetId(String subnetId)
 The ID of the subnet in Amazon VPC that AWS Cloud9 will use to communicate with the Amazon EC2 instance. | 
| CreateEnvironmentEC2Request | withTags(Collection<Tag> tags)
 An array of key-value pairs that will be associated with the new AWS Cloud9 development environment. | 
| CreateEnvironmentEC2Request | withTags(Tag... tags)
 An array of key-value pairs that will be associated with the new AWS Cloud9 development environment. | 
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic void setName(String name)
The name of the environment to create.
This name is visible to other AWS IAM users in the same AWS account.
name - The name of the environment to create.
        This name is visible to other AWS IAM users in the same AWS account.
public String getName()
The name of the environment to create.
This name is visible to other AWS IAM users in the same AWS account.
This name is visible to other AWS IAM users in the same AWS account.
public CreateEnvironmentEC2Request withName(String name)
The name of the environment to create.
This name is visible to other AWS IAM users in the same AWS account.
name - The name of the environment to create.
        This name is visible to other AWS IAM users in the same AWS account.
public void setDescription(String description)
The description of the environment to create.
description - The description of the environment to create.public String getDescription()
The description of the environment to create.
public CreateEnvironmentEC2Request withDescription(String description)
The description of the environment to create.
description - The description of the environment to create.public void setClientRequestToken(String clientRequestToken)
A unique, case-sensitive string that helps AWS Cloud9 to ensure this operation completes no more than one time.
For more information, see Client Tokens in the Amazon EC2 API Reference.
clientRequestToken - A unique, case-sensitive string that helps AWS Cloud9 to ensure this operation completes no more than one
        time.
        For more information, see Client Tokens in the Amazon EC2 API Reference.
public String getClientRequestToken()
A unique, case-sensitive string that helps AWS Cloud9 to ensure this operation completes no more than one time.
For more information, see Client Tokens in the Amazon EC2 API Reference.
For more information, see Client Tokens in the Amazon EC2 API Reference.
public CreateEnvironmentEC2Request withClientRequestToken(String clientRequestToken)
A unique, case-sensitive string that helps AWS Cloud9 to ensure this operation completes no more than one time.
For more information, see Client Tokens in the Amazon EC2 API Reference.
clientRequestToken - A unique, case-sensitive string that helps AWS Cloud9 to ensure this operation completes no more than one
        time.
        For more information, see Client Tokens in the Amazon EC2 API Reference.
public void setInstanceType(String instanceType)
 The type of instance to connect to the environment (for example, t2.micro).
 
instanceType - The type of instance to connect to the environment (for example, t2.micro).public String getInstanceType()
 The type of instance to connect to the environment (for example, t2.micro).
 
t2.micro).public CreateEnvironmentEC2Request withInstanceType(String instanceType)
 The type of instance to connect to the environment (for example, t2.micro).
 
instanceType - The type of instance to connect to the environment (for example, t2.micro).public void setSubnetId(String subnetId)
The ID of the subnet in Amazon VPC that AWS Cloud9 will use to communicate with the Amazon EC2 instance.
subnetId - The ID of the subnet in Amazon VPC that AWS Cloud9 will use to communicate with the Amazon EC2 instance.public String getSubnetId()
The ID of the subnet in Amazon VPC that AWS Cloud9 will use to communicate with the Amazon EC2 instance.
public CreateEnvironmentEC2Request withSubnetId(String subnetId)
The ID of the subnet in Amazon VPC that AWS Cloud9 will use to communicate with the Amazon EC2 instance.
subnetId - The ID of the subnet in Amazon VPC that AWS Cloud9 will use to communicate with the Amazon EC2 instance.public void setImageId(String imageId)
The identifier for the Amazon Machine Image (AMI) that's used to create the EC2 instance. To choose an AMI for the instance, you must specify a valid AMI alias or a valid AWS Systems Manager (SSM) path.
The default AMI is used if the parameter isn't explicitly assigned a value in the request.
AMI aliases
 Amazon Linux (default): amazonlinux-1-x86_64 
 
 Amazon Linux 2: amazonlinux-2-x86_64
 
 Ubuntu 18.04: ubuntu-18.04-x86_64
 
SSM paths
 Amazon Linux (default): resolve:ssm:/aws/service/cloud9/amis/amazonlinux-1-x86_64 
 
 Amazon Linux 2: resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64
 
 Ubuntu 18.04: resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64
 
imageId - The identifier for the Amazon Machine Image (AMI) that's used to create the EC2 instance. To choose an AMI
        for the instance, you must specify a valid AMI alias or a valid AWS Systems Manager (SSM) path.
        The default AMI is used if the parameter isn't explicitly assigned a value in the request.
AMI aliases
        Amazon Linux (default): amazonlinux-1-x86_64 
        
        Amazon Linux 2: amazonlinux-2-x86_64
        
        Ubuntu 18.04: ubuntu-18.04-x86_64
        
SSM paths
        Amazon Linux (default): resolve:ssm:/aws/service/cloud9/amis/amazonlinux-1-x86_64 
        
        Amazon Linux 2: resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64
        
        Ubuntu 18.04: resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64
        
public String getImageId()
The identifier for the Amazon Machine Image (AMI) that's used to create the EC2 instance. To choose an AMI for the instance, you must specify a valid AMI alias or a valid AWS Systems Manager (SSM) path.
The default AMI is used if the parameter isn't explicitly assigned a value in the request.
AMI aliases
 Amazon Linux (default): amazonlinux-1-x86_64 
 
 Amazon Linux 2: amazonlinux-2-x86_64
 
 Ubuntu 18.04: ubuntu-18.04-x86_64
 
SSM paths
 Amazon Linux (default): resolve:ssm:/aws/service/cloud9/amis/amazonlinux-1-x86_64 
 
 Amazon Linux 2: resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64
 
 Ubuntu 18.04: resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64
 
The default AMI is used if the parameter isn't explicitly assigned a value in the request.
AMI aliases
         Amazon Linux (default): amazonlinux-1-x86_64 
         
         Amazon Linux 2: amazonlinux-2-x86_64
         
         Ubuntu 18.04: ubuntu-18.04-x86_64
         
SSM paths
         Amazon Linux (default): resolve:ssm:/aws/service/cloud9/amis/amazonlinux-1-x86_64 
         
         Amazon Linux 2: resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64
         
         Ubuntu 18.04: resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64
         
public CreateEnvironmentEC2Request withImageId(String imageId)
The identifier for the Amazon Machine Image (AMI) that's used to create the EC2 instance. To choose an AMI for the instance, you must specify a valid AMI alias or a valid AWS Systems Manager (SSM) path.
The default AMI is used if the parameter isn't explicitly assigned a value in the request.
AMI aliases
 Amazon Linux (default): amazonlinux-1-x86_64 
 
 Amazon Linux 2: amazonlinux-2-x86_64
 
 Ubuntu 18.04: ubuntu-18.04-x86_64
 
SSM paths
 Amazon Linux (default): resolve:ssm:/aws/service/cloud9/amis/amazonlinux-1-x86_64 
 
 Amazon Linux 2: resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64
 
 Ubuntu 18.04: resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64
 
imageId - The identifier for the Amazon Machine Image (AMI) that's used to create the EC2 instance. To choose an AMI
        for the instance, you must specify a valid AMI alias or a valid AWS Systems Manager (SSM) path.
        The default AMI is used if the parameter isn't explicitly assigned a value in the request.
AMI aliases
        Amazon Linux (default): amazonlinux-1-x86_64 
        
        Amazon Linux 2: amazonlinux-2-x86_64
        
        Ubuntu 18.04: ubuntu-18.04-x86_64
        
SSM paths
        Amazon Linux (default): resolve:ssm:/aws/service/cloud9/amis/amazonlinux-1-x86_64 
        
        Amazon Linux 2: resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64
        
        Ubuntu 18.04: resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64
        
public void setAutomaticStopTimeMinutes(Integer automaticStopTimeMinutes)
The number of minutes until the running instance is shut down after the environment has last been used.
automaticStopTimeMinutes - The number of minutes until the running instance is shut down after the environment has last been used.public Integer getAutomaticStopTimeMinutes()
The number of minutes until the running instance is shut down after the environment has last been used.
public CreateEnvironmentEC2Request withAutomaticStopTimeMinutes(Integer automaticStopTimeMinutes)
The number of minutes until the running instance is shut down after the environment has last been used.
automaticStopTimeMinutes - The number of minutes until the running instance is shut down after the environment has last been used.public void setOwnerArn(String ownerArn)
The Amazon Resource Name (ARN) of the environment owner. This ARN can be the ARN of any AWS IAM principal. If this value is not specified, the ARN defaults to this environment's creator.
ownerArn - The Amazon Resource Name (ARN) of the environment owner. This ARN can be the ARN of any AWS IAM principal.
        If this value is not specified, the ARN defaults to this environment's creator.public String getOwnerArn()
The Amazon Resource Name (ARN) of the environment owner. This ARN can be the ARN of any AWS IAM principal. If this value is not specified, the ARN defaults to this environment's creator.
public CreateEnvironmentEC2Request withOwnerArn(String ownerArn)
The Amazon Resource Name (ARN) of the environment owner. This ARN can be the ARN of any AWS IAM principal. If this value is not specified, the ARN defaults to this environment's creator.
ownerArn - The Amazon Resource Name (ARN) of the environment owner. This ARN can be the ARN of any AWS IAM principal.
        If this value is not specified, the ARN defaults to this environment's creator.public List<Tag> getTags()
An array of key-value pairs that will be associated with the new AWS Cloud9 development environment.
public void setTags(Collection<Tag> tags)
An array of key-value pairs that will be associated with the new AWS Cloud9 development environment.
tags - An array of key-value pairs that will be associated with the new AWS Cloud9 development environment.public CreateEnvironmentEC2Request withTags(Tag... tags)
An array of key-value pairs that will be associated with the new AWS Cloud9 development environment.
 NOTE: This method appends the values to the existing list (if any). Use
 setTags(java.util.Collection) or withTags(java.util.Collection) if you want to override the
 existing values.
 
tags - An array of key-value pairs that will be associated with the new AWS Cloud9 development environment.public CreateEnvironmentEC2Request withTags(Collection<Tag> tags)
An array of key-value pairs that will be associated with the new AWS Cloud9 development environment.
tags - An array of key-value pairs that will be associated with the new AWS Cloud9 development environment.public void setConnectionType(String connectionType)
 The connection type used for connecting to an Amazon EC2 environment. Valid values are CONNECT_SSH
 (default) and CONNECT_SSM (connected through AWS Systems Manager).
 
For more information, see Accessing no-ingress EC2 instances with AWS Systems Manager in the AWS Cloud9 User Guide.
connectionType - The connection type used for connecting to an Amazon EC2 environment. Valid values are
        CONNECT_SSH (default) and CONNECT_SSM (connected through AWS Systems
        Manager).
        For more information, see Accessing no-ingress EC2 instances with AWS Systems Manager in the AWS Cloud9 User Guide.
ConnectionTypepublic String getConnectionType()
 The connection type used for connecting to an Amazon EC2 environment. Valid values are CONNECT_SSH
 (default) and CONNECT_SSM (connected through AWS Systems Manager).
 
For more information, see Accessing no-ingress EC2 instances with AWS Systems Manager in the AWS Cloud9 User Guide.
CONNECT_SSH (default) and CONNECT_SSM (connected through AWS Systems
         Manager).
         For more information, see Accessing no-ingress EC2 instances with AWS Systems Manager in the AWS Cloud9 User Guide.
ConnectionTypepublic CreateEnvironmentEC2Request withConnectionType(String connectionType)
 The connection type used for connecting to an Amazon EC2 environment. Valid values are CONNECT_SSH
 (default) and CONNECT_SSM (connected through AWS Systems Manager).
 
For more information, see Accessing no-ingress EC2 instances with AWS Systems Manager in the AWS Cloud9 User Guide.
connectionType - The connection type used for connecting to an Amazon EC2 environment. Valid values are
        CONNECT_SSH (default) and CONNECT_SSM (connected through AWS Systems
        Manager).
        For more information, see Accessing no-ingress EC2 instances with AWS Systems Manager in the AWS Cloud9 User Guide.
ConnectionTypepublic CreateEnvironmentEC2Request withConnectionType(ConnectionType connectionType)
 The connection type used for connecting to an Amazon EC2 environment. Valid values are CONNECT_SSH
 (default) and CONNECT_SSM (connected through AWS Systems Manager).
 
For more information, see Accessing no-ingress EC2 instances with AWS Systems Manager in the AWS Cloud9 User Guide.
connectionType - The connection type used for connecting to an Amazon EC2 environment. Valid values are
        CONNECT_SSH (default) and CONNECT_SSM (connected through AWS Systems
        Manager).
        For more information, see Accessing no-ingress EC2 instances with AWS Systems Manager in the AWS Cloud9 User Guide.
ConnectionTypepublic String toString()
toString in class ObjectObject.toString()public CreateEnvironmentEC2Request clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()