com.amazonaws.services.ec2.model
Class RunInstancesRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.ec2.model.RunInstancesRequest
All Implemented Interfaces:
DryRunSupportedRequest<RunInstancesRequest>, java.io.Serializable

public class RunInstancesRequest
extends AmazonWebServiceRequest
implements java.io.Serializable, DryRunSupportedRequest<RunInstancesRequest>

Container for the parameters to the RunInstances operation.

Launches the specified number of instances using an AMI for which you have permissions.

When you launch an instance, it enters the pending state. After the instance is ready for you, it enters the running state. To check the state of your instance, call DescribeInstances.

If you don't specify a security group when launching an instance, Amazon EC2 uses the default security group. For more information, see Security Groups in the Amazon Elastic Compute Cloud User Guide .

Linux instances have access to the public key of the key pair at boot. You can use this key to provide secure access to the instance. Amazon EC2 public images use this feature to provide secure access without passwords. For more information, see Key Pairs in the Amazon Elastic Compute Cloud User Guide .

You can provide optional user data when launching an instance. For more information, see Instance Metadata in the Amazon Elastic Compute Cloud User Guide .

If any of the AMIs have a product code attached for which the user has not subscribed, RunInstances fails.

For more information about troubleshooting, see What To Do If An Instance Immediately Terminates , and Troubleshooting Connecting to Your Instance in the Amazon Elastic Compute Cloud User Guide .

See Also:
AmazonEC2.runInstances(RunInstancesRequest), Serialized Form

Constructor Summary
RunInstancesRequest()
          Default constructor for a new RunInstancesRequest object.
RunInstancesRequest(java.lang.String imageId, java.lang.Integer minCount, java.lang.Integer maxCount)
          Constructs a new RunInstancesRequest object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getAdditionalInfo()
           
 java.util.List<BlockDeviceMapping> getBlockDeviceMappings()
          The block device mapping.
 java.lang.String getClientToken()
          Unique, case-sensitive identifier you provide to ensure the idempotency of the request.
 java.lang.Boolean getDisableApiTermination()
          If you set this parameter to true, you can't terminate the instance using the Amazon EC2 console, CLI, or API; otherwise, you can.
 Request<RunInstancesRequest> getDryRunRequest()
          This method is intended for internal use only.
 java.lang.Boolean getEbsOptimized()
          Indicates whether the instance is optimized for EBS I/O.
 IamInstanceProfileSpecification getIamInstanceProfile()
          The IAM instance profile.
 java.lang.String getImageId()
          The ID of the AMI, which you can get by calling DescribeImages.
 java.lang.String getInstanceInitiatedShutdownBehavior()
          Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
 java.lang.String getInstanceType()
          The instance type.
 java.lang.String getKernelId()
          The ID of the kernel.
 java.lang.String getKeyName()
          The name of the key pair.
 java.lang.Integer getMaxCount()
          The maximum number of instances to launch.
 java.lang.Integer getMinCount()
          The minimum number of instances to launch.
 java.lang.Boolean getMonitoring()
          The monitoring for the instance.
 java.util.List<InstanceNetworkInterfaceSpecification> getNetworkInterfaces()
          One or more network interfaces.
 Placement getPlacement()
          The placement for the instance.
 java.lang.String getPrivateIpAddress()
          [EC2-VPC] The primary IP address.
 java.lang.String getRamdiskId()
          The ID of the RAM disk.
 java.util.List<java.lang.String> getSecurityGroupIds()
          One or more security group IDs.
 java.util.List<java.lang.String> getSecurityGroups()
          [EC2-Classic, default VPC] One or more security group names.
 java.lang.String getSubnetId()
          [EC2-VPC] The ID of the subnet to launch the instance into.
 java.lang.String getUserData()
          The Base64-encoded MIME user data for the instances.
 int hashCode()
           
 java.lang.Boolean isDisableApiTermination()
          If you set this parameter to true, you can't terminate the instance using the Amazon EC2 console, CLI, or API; otherwise, you can.
 java.lang.Boolean isEbsOptimized()
          Indicates whether the instance is optimized for EBS I/O.
 java.lang.Boolean isMonitoring()
          The monitoring for the instance.
 void setAdditionalInfo(java.lang.String additionalInfo)
           
 void setBlockDeviceMappings(java.util.Collection<BlockDeviceMapping> blockDeviceMappings)
          The block device mapping.
 void setClientToken(java.lang.String clientToken)
          Unique, case-sensitive identifier you provide to ensure the idempotency of the request.
 void setDisableApiTermination(java.lang.Boolean disableApiTermination)
          If you set this parameter to true, you can't terminate the instance using the Amazon EC2 console, CLI, or API; otherwise, you can.
 void setEbsOptimized(java.lang.Boolean ebsOptimized)
          Indicates whether the instance is optimized for EBS I/O.
 void setIamInstanceProfile(IamInstanceProfileSpecification iamInstanceProfile)
          The IAM instance profile.
 void setImageId(java.lang.String imageId)
          The ID of the AMI, which you can get by calling DescribeImages.
 void setInstanceInitiatedShutdownBehavior(ShutdownBehavior instanceInitiatedShutdownBehavior)
          Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
 void setInstanceInitiatedShutdownBehavior(java.lang.String instanceInitiatedShutdownBehavior)
          Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
 void setInstanceType(InstanceType instanceType)
          The instance type.
 void setInstanceType(java.lang.String instanceType)
          The instance type.
 void setKernelId(java.lang.String kernelId)
          The ID of the kernel.
 void setKeyName(java.lang.String keyName)
          The name of the key pair.
 void setMaxCount(java.lang.Integer maxCount)
          The maximum number of instances to launch.
 void setMinCount(java.lang.Integer minCount)
          The minimum number of instances to launch.
 void setMonitoring(java.lang.Boolean monitoring)
          The monitoring for the instance.
 void setNetworkInterfaces(java.util.Collection<InstanceNetworkInterfaceSpecification> networkInterfaces)
          One or more network interfaces.
 void setPlacement(Placement placement)
          The placement for the instance.
 void setPrivateIpAddress(java.lang.String privateIpAddress)
          [EC2-VPC] The primary IP address.
 void setRamdiskId(java.lang.String ramdiskId)
          The ID of the RAM disk.
 void setSecurityGroupIds(java.util.Collection<java.lang.String> securityGroupIds)
          One or more security group IDs.
 void setSecurityGroups(java.util.Collection<java.lang.String> securityGroups)
          [EC2-Classic, default VPC] One or more security group names.
 void setSubnetId(java.lang.String subnetId)
          [EC2-VPC] The ID of the subnet to launch the instance into.
 void setUserData(java.lang.String userData)
          The Base64-encoded MIME user data for the instances.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 RunInstancesRequest withAdditionalInfo(java.lang.String additionalInfo)
           Returns a reference to this object so that method calls can be chained together.
 RunInstancesRequest withBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
          The block device mapping.
 RunInstancesRequest withBlockDeviceMappings(java.util.Collection<BlockDeviceMapping> blockDeviceMappings)
          The block device mapping.
 RunInstancesRequest withClientToken(java.lang.String clientToken)
          Unique, case-sensitive identifier you provide to ensure the idempotency of the request.
 RunInstancesRequest withDisableApiTermination(java.lang.Boolean disableApiTermination)
          If you set this parameter to true, you can't terminate the instance using the Amazon EC2 console, CLI, or API; otherwise, you can.
 RunInstancesRequest withEbsOptimized(java.lang.Boolean ebsOptimized)
          Indicates whether the instance is optimized for EBS I/O.
 RunInstancesRequest withIamInstanceProfile(IamInstanceProfileSpecification iamInstanceProfile)
          The IAM instance profile.
 RunInstancesRequest withImageId(java.lang.String imageId)
          The ID of the AMI, which you can get by calling DescribeImages.
 RunInstancesRequest withInstanceInitiatedShutdownBehavior(ShutdownBehavior instanceInitiatedShutdownBehavior)
          Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
 RunInstancesRequest withInstanceInitiatedShutdownBehavior(java.lang.String instanceInitiatedShutdownBehavior)
          Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
 RunInstancesRequest withInstanceType(InstanceType instanceType)
          The instance type.
 RunInstancesRequest withInstanceType(java.lang.String instanceType)
          The instance type.
 RunInstancesRequest withKernelId(java.lang.String kernelId)
          The ID of the kernel.
 RunInstancesRequest withKeyName(java.lang.String keyName)
          The name of the key pair.
 RunInstancesRequest withMaxCount(java.lang.Integer maxCount)
          The maximum number of instances to launch.
 RunInstancesRequest withMinCount(java.lang.Integer minCount)
          The minimum number of instances to launch.
 RunInstancesRequest withMonitoring(java.lang.Boolean monitoring)
          The monitoring for the instance.
 RunInstancesRequest withNetworkInterfaces(java.util.Collection<InstanceNetworkInterfaceSpecification> networkInterfaces)
          One or more network interfaces.
 RunInstancesRequest withNetworkInterfaces(InstanceNetworkInterfaceSpecification... networkInterfaces)
          One or more network interfaces.
 RunInstancesRequest withPlacement(Placement placement)
          The placement for the instance.
 RunInstancesRequest withPrivateIpAddress(java.lang.String privateIpAddress)
          [EC2-VPC] The primary IP address.
 RunInstancesRequest withRamdiskId(java.lang.String ramdiskId)
          The ID of the RAM disk.
 RunInstancesRequest withSecurityGroupIds(java.util.Collection<java.lang.String> securityGroupIds)
          One or more security group IDs.
 RunInstancesRequest withSecurityGroupIds(java.lang.String... securityGroupIds)
          One or more security group IDs.
 RunInstancesRequest withSecurityGroups(java.util.Collection<java.lang.String> securityGroups)
          [EC2-Classic, default VPC] One or more security group names.
 RunInstancesRequest withSecurityGroups(java.lang.String... securityGroups)
          [EC2-Classic, default VPC] One or more security group names.
 RunInstancesRequest withSubnetId(java.lang.String subnetId)
          [EC2-VPC] The ID of the subnet to launch the instance into.
 RunInstancesRequest withUserData(java.lang.String userData)
          The Base64-encoded MIME user data for the instances.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RunInstancesRequest

public RunInstancesRequest()
Default constructor for a new RunInstancesRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.


RunInstancesRequest

public RunInstancesRequest(java.lang.String imageId,
                           java.lang.Integer minCount,
                           java.lang.Integer maxCount)
Constructs a new RunInstancesRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
imageId - The ID of the AMI, which you can get by calling DescribeImages.
minCount - The minimum number of instances to launch. If you specify a minimum that is more instances than Amazon EC2 can launch in the target Availability Zone, Amazon EC2 launches no instances.

Constraints: Between 1 and the maximum number you're allowed for the specified instance type. For more information about the default limits, and how to request an increase, see How many instances can I run in Amazon EC2 in the Amazon EC2 General FAQ.

maxCount - The maximum number of instances to launch. If you specify more instances than Amazon EC2 can launch in the target Availability Zone, Amazon EC2 launches the largest possible number of instances above MinCount.

Constraints: Between 1 and the maximum number you're allowed for the specified instance type. For more information about the default limits, and how to request an increase, see How many instances can I run in Amazon EC2 in the Amazon EC2 General FAQ.

Method Detail

getImageId

public java.lang.String getImageId()
The ID of the AMI, which you can get by calling DescribeImages.

Returns:
The ID of the AMI, which you can get by calling DescribeImages.

setImageId

public void setImageId(java.lang.String imageId)
The ID of the AMI, which you can get by calling DescribeImages.

Parameters:
imageId - The ID of the AMI, which you can get by calling DescribeImages.

withImageId

public RunInstancesRequest withImageId(java.lang.String imageId)
The ID of the AMI, which you can get by calling DescribeImages.

Returns a reference to this object so that method calls can be chained together.

Parameters:
imageId - The ID of the AMI, which you can get by calling DescribeImages.
Returns:
A reference to this updated object so that method calls can be chained together.

getMinCount

public java.lang.Integer getMinCount()
The minimum number of instances to launch. If you specify a minimum that is more instances than Amazon EC2 can launch in the target Availability Zone, Amazon EC2 launches no instances.

Constraints: Between 1 and the maximum number you're allowed for the specified instance type. For more information about the default limits, and how to request an increase, see How many instances can I run in Amazon EC2 in the Amazon EC2 General FAQ.

Returns:
The minimum number of instances to launch. If you specify a minimum that is more instances than Amazon EC2 can launch in the target Availability Zone, Amazon EC2 launches no instances.

Constraints: Between 1 and the maximum number you're allowed for the specified instance type. For more information about the default limits, and how to request an increase, see How many instances can I run in Amazon EC2 in the Amazon EC2 General FAQ.


setMinCount

public void setMinCount(java.lang.Integer minCount)
The minimum number of instances to launch. If you specify a minimum that is more instances than Amazon EC2 can launch in the target Availability Zone, Amazon EC2 launches no instances.

Constraints: Between 1 and the maximum number you're allowed for the specified instance type. For more information about the default limits, and how to request an increase, see How many instances can I run in Amazon EC2 in the Amazon EC2 General FAQ.

Parameters:
minCount - The minimum number of instances to launch. If you specify a minimum that is more instances than Amazon EC2 can launch in the target Availability Zone, Amazon EC2 launches no instances.

Constraints: Between 1 and the maximum number you're allowed for the specified instance type. For more information about the default limits, and how to request an increase, see How many instances can I run in Amazon EC2 in the Amazon EC2 General FAQ.


withMinCount

public RunInstancesRequest withMinCount(java.lang.Integer minCount)
The minimum number of instances to launch. If you specify a minimum that is more instances than Amazon EC2 can launch in the target Availability Zone, Amazon EC2 launches no instances.

Constraints: Between 1 and the maximum number you're allowed for the specified instance type. For more information about the default limits, and how to request an increase, see How many instances can I run in Amazon EC2 in the Amazon EC2 General FAQ.

Returns a reference to this object so that method calls can be chained together.

Parameters:
minCount - The minimum number of instances to launch. If you specify a minimum that is more instances than Amazon EC2 can launch in the target Availability Zone, Amazon EC2 launches no instances.

Constraints: Between 1 and the maximum number you're allowed for the specified instance type. For more information about the default limits, and how to request an increase, see How many instances can I run in Amazon EC2 in the Amazon EC2 General FAQ.

Returns:
A reference to this updated object so that method calls can be chained together.

getMaxCount

public java.lang.Integer getMaxCount()
The maximum number of instances to launch. If you specify more instances than Amazon EC2 can launch in the target Availability Zone, Amazon EC2 launches the largest possible number of instances above MinCount.

Constraints: Between 1 and the maximum number you're allowed for the specified instance type. For more information about the default limits, and how to request an increase, see How many instances can I run in Amazon EC2 in the Amazon EC2 General FAQ.

Returns:
The maximum number of instances to launch. If you specify more instances than Amazon EC2 can launch in the target Availability Zone, Amazon EC2 launches the largest possible number of instances above MinCount.

Constraints: Between 1 and the maximum number you're allowed for the specified instance type. For more information about the default limits, and how to request an increase, see How many instances can I run in Amazon EC2 in the Amazon EC2 General FAQ.


setMaxCount

public void setMaxCount(java.lang.Integer maxCount)
The maximum number of instances to launch. If you specify more instances than Amazon EC2 can launch in the target Availability Zone, Amazon EC2 launches the largest possible number of instances above MinCount.

Constraints: Between 1 and the maximum number you're allowed for the specified instance type. For more information about the default limits, and how to request an increase, see How many instances can I run in Amazon EC2 in the Amazon EC2 General FAQ.

Parameters:
maxCount - The maximum number of instances to launch. If you specify more instances than Amazon EC2 can launch in the target Availability Zone, Amazon EC2 launches the largest possible number of instances above MinCount.

Constraints: Between 1 and the maximum number you're allowed for the specified instance type. For more information about the default limits, and how to request an increase, see How many instances can I run in Amazon EC2 in the Amazon EC2 General FAQ.


withMaxCount

public RunInstancesRequest withMaxCount(java.lang.Integer maxCount)
The maximum number of instances to launch. If you specify more instances than Amazon EC2 can launch in the target Availability Zone, Amazon EC2 launches the largest possible number of instances above MinCount.

Constraints: Between 1 and the maximum number you're allowed for the specified instance type. For more information about the default limits, and how to request an increase, see How many instances can I run in Amazon EC2 in the Amazon EC2 General FAQ.

Returns a reference to this object so that method calls can be chained together.

Parameters:
maxCount - The maximum number of instances to launch. If you specify more instances than Amazon EC2 can launch in the target Availability Zone, Amazon EC2 launches the largest possible number of instances above MinCount.

Constraints: Between 1 and the maximum number you're allowed for the specified instance type. For more information about the default limits, and how to request an increase, see How many instances can I run in Amazon EC2 in the Amazon EC2 General FAQ.

Returns:
A reference to this updated object so that method calls can be chained together.

getKeyName

public java.lang.String getKeyName()
The name of the key pair. You can create a key pair using CreateKeyPair or ImportKeyPair.

If you launch an instance without specifying a key pair, you can't connect to the instance.

Returns:
The name of the key pair. You can create a key pair using CreateKeyPair or ImportKeyPair.

If you launch an instance without specifying a key pair, you can't connect to the instance.


setKeyName

public void setKeyName(java.lang.String keyName)
The name of the key pair. You can create a key pair using CreateKeyPair or ImportKeyPair.

If you launch an instance without specifying a key pair, you can't connect to the instance.

Parameters:
keyName - The name of the key pair. You can create a key pair using CreateKeyPair or ImportKeyPair.

If you launch an instance without specifying a key pair, you can't connect to the instance.


withKeyName

public RunInstancesRequest withKeyName(java.lang.String keyName)
The name of the key pair. You can create a key pair using CreateKeyPair or ImportKeyPair.

If you launch an instance without specifying a key pair, you can't connect to the instance.

Returns a reference to this object so that method calls can be chained together.

Parameters:
keyName - The name of the key pair. You can create a key pair using CreateKeyPair or ImportKeyPair.

If you launch an instance without specifying a key pair, you can't connect to the instance.

Returns:
A reference to this updated object so that method calls can be chained together.

getSecurityGroups

public java.util.List<java.lang.String> getSecurityGroups()
[EC2-Classic, default VPC] One or more security group names. For a nondefault VPC, you must use security group IDs instead.

Default: Amazon EC2 uses the default security group.

Returns:
[EC2-Classic, default VPC] One or more security group names. For a nondefault VPC, you must use security group IDs instead.

Default: Amazon EC2 uses the default security group.


setSecurityGroups

public void setSecurityGroups(java.util.Collection<java.lang.String> securityGroups)
[EC2-Classic, default VPC] One or more security group names. For a nondefault VPC, you must use security group IDs instead.

Default: Amazon EC2 uses the default security group.

Parameters:
securityGroups - [EC2-Classic, default VPC] One or more security group names. For a nondefault VPC, you must use security group IDs instead.

Default: Amazon EC2 uses the default security group.


withSecurityGroups

public RunInstancesRequest withSecurityGroups(java.lang.String... securityGroups)
[EC2-Classic, default VPC] One or more security group names. For a nondefault VPC, you must use security group IDs instead.

Default: Amazon EC2 uses the default security group.

Returns a reference to this object so that method calls can be chained together.

Parameters:
securityGroups - [EC2-Classic, default VPC] One or more security group names. For a nondefault VPC, you must use security group IDs instead.

Default: Amazon EC2 uses the default security group.

Returns:
A reference to this updated object so that method calls can be chained together.

withSecurityGroups

public RunInstancesRequest withSecurityGroups(java.util.Collection<java.lang.String> securityGroups)
[EC2-Classic, default VPC] One or more security group names. For a nondefault VPC, you must use security group IDs instead.

Default: Amazon EC2 uses the default security group.

Returns a reference to this object so that method calls can be chained together.

Parameters:
securityGroups - [EC2-Classic, default VPC] One or more security group names. For a nondefault VPC, you must use security group IDs instead.

Default: Amazon EC2 uses the default security group.

Returns:
A reference to this updated object so that method calls can be chained together.

getSecurityGroupIds

public java.util.List<java.lang.String> getSecurityGroupIds()
One or more security group IDs. You can create a security group using CreateSecurityGroup.

Default: Amazon EC2 uses the default security group.

Returns:
One or more security group IDs. You can create a security group using CreateSecurityGroup.

Default: Amazon EC2 uses the default security group.


setSecurityGroupIds

public void setSecurityGroupIds(java.util.Collection<java.lang.String> securityGroupIds)
One or more security group IDs. You can create a security group using CreateSecurityGroup.

Default: Amazon EC2 uses the default security group.

Parameters:
securityGroupIds - One or more security group IDs. You can create a security group using CreateSecurityGroup.

Default: Amazon EC2 uses the default security group.


withSecurityGroupIds

public RunInstancesRequest withSecurityGroupIds(java.lang.String... securityGroupIds)
One or more security group IDs. You can create a security group using CreateSecurityGroup.

Default: Amazon EC2 uses the default security group.

Returns a reference to this object so that method calls can be chained together.

Parameters:
securityGroupIds - One or more security group IDs. You can create a security group using CreateSecurityGroup.

Default: Amazon EC2 uses the default security group.

Returns:
A reference to this updated object so that method calls can be chained together.

withSecurityGroupIds

public RunInstancesRequest withSecurityGroupIds(java.util.Collection<java.lang.String> securityGroupIds)
One or more security group IDs. You can create a security group using CreateSecurityGroup.

Default: Amazon EC2 uses the default security group.

Returns a reference to this object so that method calls can be chained together.

Parameters:
securityGroupIds - One or more security group IDs. You can create a security group using CreateSecurityGroup.

Default: Amazon EC2 uses the default security group.

Returns:
A reference to this updated object so that method calls can be chained together.

getUserData

public java.lang.String getUserData()
The Base64-encoded MIME user data for the instances.

Returns:
The Base64-encoded MIME user data for the instances.

setUserData

public void setUserData(java.lang.String userData)
The Base64-encoded MIME user data for the instances.

Parameters:
userData - The Base64-encoded MIME user data for the instances.

withUserData

public RunInstancesRequest withUserData(java.lang.String userData)
The Base64-encoded MIME user data for the instances.

Returns a reference to this object so that method calls can be chained together.

Parameters:
userData - The Base64-encoded MIME user data for the instances.
Returns:
A reference to this updated object so that method calls can be chained together.

getInstanceType

public java.lang.String getInstanceType()
The instance type. For more information, see Instance Types in the Amazon Elastic Compute Cloud User Guide.

Default: m1.small

Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, i2.xlarge, i2.2xlarge, i2.4xlarge, i2.8xlarge, hi1.4xlarge, hs1.8xlarge, c1.medium, c1.xlarge, c3.large, c3.xlarge, c3.2xlarge, c3.4xlarge, c3.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, cg1.4xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge

Returns:
The instance type. For more information, see Instance Types in the Amazon Elastic Compute Cloud User Guide.

Default: m1.small

See Also:
InstanceType

setInstanceType

public void setInstanceType(java.lang.String instanceType)
The instance type. For more information, see Instance Types in the Amazon Elastic Compute Cloud User Guide.

Default: m1.small

Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, i2.xlarge, i2.2xlarge, i2.4xlarge, i2.8xlarge, hi1.4xlarge, hs1.8xlarge, c1.medium, c1.xlarge, c3.large, c3.xlarge, c3.2xlarge, c3.4xlarge, c3.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, cg1.4xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge

Parameters:
instanceType - The instance type. For more information, see Instance Types in the Amazon Elastic Compute Cloud User Guide.

Default: m1.small

See Also:
InstanceType

withInstanceType

public RunInstancesRequest withInstanceType(java.lang.String instanceType)
The instance type. For more information, see Instance Types in the Amazon Elastic Compute Cloud User Guide.

Default: m1.small

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, i2.xlarge, i2.2xlarge, i2.4xlarge, i2.8xlarge, hi1.4xlarge, hs1.8xlarge, c1.medium, c1.xlarge, c3.large, c3.xlarge, c3.2xlarge, c3.4xlarge, c3.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, cg1.4xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge

Parameters:
instanceType - The instance type. For more information, see Instance Types in the Amazon Elastic Compute Cloud User Guide.

Default: m1.small

Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
InstanceType

setInstanceType

public void setInstanceType(InstanceType instanceType)
The instance type. For more information, see Instance Types in the Amazon Elastic Compute Cloud User Guide.

Default: m1.small

Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, i2.xlarge, i2.2xlarge, i2.4xlarge, i2.8xlarge, hi1.4xlarge, hs1.8xlarge, c1.medium, c1.xlarge, c3.large, c3.xlarge, c3.2xlarge, c3.4xlarge, c3.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, cg1.4xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge

Parameters:
instanceType - The instance type. For more information, see Instance Types in the Amazon Elastic Compute Cloud User Guide.

Default: m1.small

See Also:
InstanceType

withInstanceType

public RunInstancesRequest withInstanceType(InstanceType instanceType)
The instance type. For more information, see Instance Types in the Amazon Elastic Compute Cloud User Guide.

Default: m1.small

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, i2.xlarge, i2.2xlarge, i2.4xlarge, i2.8xlarge, hi1.4xlarge, hs1.8xlarge, c1.medium, c1.xlarge, c3.large, c3.xlarge, c3.2xlarge, c3.4xlarge, c3.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, cg1.4xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge

Parameters:
instanceType - The instance type. For more information, see Instance Types in the Amazon Elastic Compute Cloud User Guide.

Default: m1.small

Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
InstanceType

getPlacement

public Placement getPlacement()
The placement for the instance.

Returns:
The placement for the instance.

setPlacement

public void setPlacement(Placement placement)
The placement for the instance.

Parameters:
placement - The placement for the instance.

withPlacement

public RunInstancesRequest withPlacement(Placement placement)
The placement for the instance.

Returns a reference to this object so that method calls can be chained together.

Parameters:
placement - The placement for the instance.
Returns:
A reference to this updated object so that method calls can be chained together.

getKernelId

public java.lang.String getKernelId()
The ID of the kernel.

We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB: A New Amazon Kernel Image in the Amazon Elastic Compute Cloud User Guide.

Returns:
The ID of the kernel.

We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB: A New Amazon Kernel Image in the Amazon Elastic Compute Cloud User Guide.


setKernelId

public void setKernelId(java.lang.String kernelId)
The ID of the kernel.

We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB: A New Amazon Kernel Image in the Amazon Elastic Compute Cloud User Guide.

Parameters:
kernelId - The ID of the kernel.

We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB: A New Amazon Kernel Image in the Amazon Elastic Compute Cloud User Guide.


withKernelId

public RunInstancesRequest withKernelId(java.lang.String kernelId)
The ID of the kernel.

We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB: A New Amazon Kernel Image in the Amazon Elastic Compute Cloud User Guide.

Returns a reference to this object so that method calls can be chained together.

Parameters:
kernelId - The ID of the kernel.

We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB: A New Amazon Kernel Image in the Amazon Elastic Compute Cloud User Guide.

Returns:
A reference to this updated object so that method calls can be chained together.

getRamdiskId

public java.lang.String getRamdiskId()
The ID of the RAM disk.

Returns:
The ID of the RAM disk.

setRamdiskId

public void setRamdiskId(java.lang.String ramdiskId)
The ID of the RAM disk.

Parameters:
ramdiskId - The ID of the RAM disk.

withRamdiskId

public RunInstancesRequest withRamdiskId(java.lang.String ramdiskId)
The ID of the RAM disk.

Returns a reference to this object so that method calls can be chained together.

Parameters:
ramdiskId - The ID of the RAM disk.
Returns:
A reference to this updated object so that method calls can be chained together.

getBlockDeviceMappings

public java.util.List<BlockDeviceMapping> getBlockDeviceMappings()
The block device mapping.

Returns:
The block device mapping.

setBlockDeviceMappings

public void setBlockDeviceMappings(java.util.Collection<BlockDeviceMapping> blockDeviceMappings)
The block device mapping.

Parameters:
blockDeviceMappings - The block device mapping.

withBlockDeviceMappings

public RunInstancesRequest withBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
The block device mapping.

Returns a reference to this object so that method calls can be chained together.

Parameters:
blockDeviceMappings - The block device mapping.
Returns:
A reference to this updated object so that method calls can be chained together.

withBlockDeviceMappings

public RunInstancesRequest withBlockDeviceMappings(java.util.Collection<BlockDeviceMapping> blockDeviceMappings)
The block device mapping.

Returns a reference to this object so that method calls can be chained together.

Parameters:
blockDeviceMappings - The block device mapping.
Returns:
A reference to this updated object so that method calls can be chained together.

isMonitoring

public java.lang.Boolean isMonitoring()
The monitoring for the instance.

Returns:
The monitoring for the instance.

setMonitoring

public void setMonitoring(java.lang.Boolean monitoring)
The monitoring for the instance.

Parameters:
monitoring - The monitoring for the instance.

withMonitoring

public RunInstancesRequest withMonitoring(java.lang.Boolean monitoring)
The monitoring for the instance.

Returns a reference to this object so that method calls can be chained together.

Parameters:
monitoring - The monitoring for the instance.
Returns:
A reference to this updated object so that method calls can be chained together.

getMonitoring

public java.lang.Boolean getMonitoring()
The monitoring for the instance.

Returns:
The monitoring for the instance.

getSubnetId

public java.lang.String getSubnetId()
[EC2-VPC] The ID of the subnet to launch the instance into.

Returns:
[EC2-VPC] The ID of the subnet to launch the instance into.

setSubnetId

public void setSubnetId(java.lang.String subnetId)
[EC2-VPC] The ID of the subnet to launch the instance into.

Parameters:
subnetId - [EC2-VPC] The ID of the subnet to launch the instance into.

withSubnetId

public RunInstancesRequest withSubnetId(java.lang.String subnetId)
[EC2-VPC] The ID of the subnet to launch the instance into.

Returns a reference to this object so that method calls can be chained together.

Parameters:
subnetId - [EC2-VPC] The ID of the subnet to launch the instance into.
Returns:
A reference to this updated object so that method calls can be chained together.

isDisableApiTermination

public java.lang.Boolean isDisableApiTermination()
If you set this parameter to true, you can't terminate the instance using the Amazon EC2 console, CLI, or API; otherwise, you can. If you set this parameter to true and then later want to be able to terminate the instance, you must first change the value of the disableApiTermination attribute to false using ModifyInstanceAttribute. Alternatively, if you set InstanceInitiatedShutdownBehavior to terminate, you can terminate the instance by running the shutdown command from the instance.

Default: false

Returns:
If you set this parameter to true, you can't terminate the instance using the Amazon EC2 console, CLI, or API; otherwise, you can. If you set this parameter to true and then later want to be able to terminate the instance, you must first change the value of the disableApiTermination attribute to false using ModifyInstanceAttribute. Alternatively, if you set InstanceInitiatedShutdownBehavior to terminate, you can terminate the instance by running the shutdown command from the instance.

Default: false


setDisableApiTermination

public void setDisableApiTermination(java.lang.Boolean disableApiTermination)
If you set this parameter to true, you can't terminate the instance using the Amazon EC2 console, CLI, or API; otherwise, you can. If you set this parameter to true and then later want to be able to terminate the instance, you must first change the value of the disableApiTermination attribute to false using ModifyInstanceAttribute. Alternatively, if you set InstanceInitiatedShutdownBehavior to terminate, you can terminate the instance by running the shutdown command from the instance.

Default: false

Parameters:
disableApiTermination - If you set this parameter to true, you can't terminate the instance using the Amazon EC2 console, CLI, or API; otherwise, you can. If you set this parameter to true and then later want to be able to terminate the instance, you must first change the value of the disableApiTermination attribute to false using ModifyInstanceAttribute. Alternatively, if you set InstanceInitiatedShutdownBehavior to terminate, you can terminate the instance by running the shutdown command from the instance.

Default: false


withDisableApiTermination

public RunInstancesRequest withDisableApiTermination(java.lang.Boolean disableApiTermination)
If you set this parameter to true, you can't terminate the instance using the Amazon EC2 console, CLI, or API; otherwise, you can. If you set this parameter to true and then later want to be able to terminate the instance, you must first change the value of the disableApiTermination attribute to false using ModifyInstanceAttribute. Alternatively, if you set InstanceInitiatedShutdownBehavior to terminate, you can terminate the instance by running the shutdown command from the instance.

Default: false

Returns a reference to this object so that method calls can be chained together.

Parameters:
disableApiTermination - If you set this parameter to true, you can't terminate the instance using the Amazon EC2 console, CLI, or API; otherwise, you can. If you set this parameter to true and then later want to be able to terminate the instance, you must first change the value of the disableApiTermination attribute to false using ModifyInstanceAttribute. Alternatively, if you set InstanceInitiatedShutdownBehavior to terminate, you can terminate the instance by running the shutdown command from the instance.

Default: false

Returns:
A reference to this updated object so that method calls can be chained together.

getDisableApiTermination

public java.lang.Boolean getDisableApiTermination()
If you set this parameter to true, you can't terminate the instance using the Amazon EC2 console, CLI, or API; otherwise, you can. If you set this parameter to true and then later want to be able to terminate the instance, you must first change the value of the disableApiTermination attribute to false using ModifyInstanceAttribute. Alternatively, if you set InstanceInitiatedShutdownBehavior to terminate, you can terminate the instance by running the shutdown command from the instance.

Default: false

Returns:
If you set this parameter to true, you can't terminate the instance using the Amazon EC2 console, CLI, or API; otherwise, you can. If you set this parameter to true and then later want to be able to terminate the instance, you must first change the value of the disableApiTermination attribute to false using ModifyInstanceAttribute. Alternatively, if you set InstanceInitiatedShutdownBehavior to terminate, you can terminate the instance by running the shutdown command from the instance.

Default: false


getInstanceInitiatedShutdownBehavior

public java.lang.String getInstanceInitiatedShutdownBehavior()
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).

Default: stop

Constraints:
Allowed Values: stop, terminate

Returns:
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).

Default: stop

See Also:
ShutdownBehavior

setInstanceInitiatedShutdownBehavior

public void setInstanceInitiatedShutdownBehavior(java.lang.String instanceInitiatedShutdownBehavior)
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).

Default: stop

Constraints:
Allowed Values: stop, terminate

Parameters:
instanceInitiatedShutdownBehavior - Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).

Default: stop

See Also:
ShutdownBehavior

withInstanceInitiatedShutdownBehavior

public RunInstancesRequest withInstanceInitiatedShutdownBehavior(java.lang.String instanceInitiatedShutdownBehavior)
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).

Default: stop

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: stop, terminate

Parameters:
instanceInitiatedShutdownBehavior - Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).

Default: stop

Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
ShutdownBehavior

setInstanceInitiatedShutdownBehavior

public void setInstanceInitiatedShutdownBehavior(ShutdownBehavior instanceInitiatedShutdownBehavior)
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).

Default: stop

Constraints:
Allowed Values: stop, terminate

Parameters:
instanceInitiatedShutdownBehavior - Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).

Default: stop

See Also:
ShutdownBehavior

withInstanceInitiatedShutdownBehavior

public RunInstancesRequest withInstanceInitiatedShutdownBehavior(ShutdownBehavior instanceInitiatedShutdownBehavior)
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).

Default: stop

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: stop, terminate

Parameters:
instanceInitiatedShutdownBehavior - Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).

Default: stop

Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
ShutdownBehavior

getPrivateIpAddress

public java.lang.String getPrivateIpAddress()
[EC2-VPC] The primary IP address. You must specify a value from the IP address range of the subnet.

Only one private IP address can be designated as primary. Therefore, you can't specify this parameter if PrivateIpAddresses.n.Primary is set to true and PrivateIpAddresses.n.PrivateIpAddress is set to an IP address.

Default: We select an IP address from the IP address range of the subnet.

Returns:
[EC2-VPC] The primary IP address. You must specify a value from the IP address range of the subnet.

Only one private IP address can be designated as primary. Therefore, you can't specify this parameter if PrivateIpAddresses.n.Primary is set to true and PrivateIpAddresses.n.PrivateIpAddress is set to an IP address.

Default: We select an IP address from the IP address range of the subnet.


setPrivateIpAddress

public void setPrivateIpAddress(java.lang.String privateIpAddress)
[EC2-VPC] The primary IP address. You must specify a value from the IP address range of the subnet.

Only one private IP address can be designated as primary. Therefore, you can't specify this parameter if PrivateIpAddresses.n.Primary is set to true and PrivateIpAddresses.n.PrivateIpAddress is set to an IP address.

Default: We select an IP address from the IP address range of the subnet.

Parameters:
privateIpAddress - [EC2-VPC] The primary IP address. You must specify a value from the IP address range of the subnet.

Only one private IP address can be designated as primary. Therefore, you can't specify this parameter if PrivateIpAddresses.n.Primary is set to true and PrivateIpAddresses.n.PrivateIpAddress is set to an IP address.

Default: We select an IP address from the IP address range of the subnet.


withPrivateIpAddress

public RunInstancesRequest withPrivateIpAddress(java.lang.String privateIpAddress)
[EC2-VPC] The primary IP address. You must specify a value from the IP address range of the subnet.

Only one private IP address can be designated as primary. Therefore, you can't specify this parameter if PrivateIpAddresses.n.Primary is set to true and PrivateIpAddresses.n.PrivateIpAddress is set to an IP address.

Default: We select an IP address from the IP address range of the subnet.

Returns a reference to this object so that method calls can be chained together.

Parameters:
privateIpAddress - [EC2-VPC] The primary IP address. You must specify a value from the IP address range of the subnet.

Only one private IP address can be designated as primary. Therefore, you can't specify this parameter if PrivateIpAddresses.n.Primary is set to true and PrivateIpAddresses.n.PrivateIpAddress is set to an IP address.

Default: We select an IP address from the IP address range of the subnet.

Returns:
A reference to this updated object so that method calls can be chained together.

getClientToken

public java.lang.String getClientToken()
Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency in the Amazon Elastic Compute Cloud User Guide.

Constraints: Maximum 64 ASCII characters

Returns:
Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency in the Amazon Elastic Compute Cloud User Guide.

Constraints: Maximum 64 ASCII characters


setClientToken

public void setClientToken(java.lang.String clientToken)
Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency in the Amazon Elastic Compute Cloud User Guide.

Constraints: Maximum 64 ASCII characters

Parameters:
clientToken - Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency in the Amazon Elastic Compute Cloud User Guide.

Constraints: Maximum 64 ASCII characters


withClientToken

public RunInstancesRequest withClientToken(java.lang.String clientToken)
Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency in the Amazon Elastic Compute Cloud User Guide.

Constraints: Maximum 64 ASCII characters

Returns a reference to this object so that method calls can be chained together.

Parameters:
clientToken - Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency in the Amazon Elastic Compute Cloud User Guide.

Constraints: Maximum 64 ASCII characters

Returns:
A reference to this updated object so that method calls can be chained together.

getAdditionalInfo

public java.lang.String getAdditionalInfo()
Returns:

setAdditionalInfo

public void setAdditionalInfo(java.lang.String additionalInfo)
Parameters:
additionalInfo -

withAdditionalInfo

public RunInstancesRequest withAdditionalInfo(java.lang.String additionalInfo)

Returns a reference to this object so that method calls can be chained together.

Parameters:
additionalInfo -
Returns:
A reference to this updated object so that method calls can be chained together.

getNetworkInterfaces

public java.util.List<InstanceNetworkInterfaceSpecification> getNetworkInterfaces()
One or more network interfaces.

Returns:
One or more network interfaces.

setNetworkInterfaces

public void setNetworkInterfaces(java.util.Collection<InstanceNetworkInterfaceSpecification> networkInterfaces)
One or more network interfaces.

Parameters:
networkInterfaces - One or more network interfaces.

withNetworkInterfaces

public RunInstancesRequest withNetworkInterfaces(InstanceNetworkInterfaceSpecification... networkInterfaces)
One or more network interfaces.

Returns a reference to this object so that method calls can be chained together.

Parameters:
networkInterfaces - One or more network interfaces.
Returns:
A reference to this updated object so that method calls can be chained together.

withNetworkInterfaces

public RunInstancesRequest withNetworkInterfaces(java.util.Collection<InstanceNetworkInterfaceSpecification> networkInterfaces)
One or more network interfaces.

Returns a reference to this object so that method calls can be chained together.

Parameters:
networkInterfaces - One or more network interfaces.
Returns:
A reference to this updated object so that method calls can be chained together.

getIamInstanceProfile

public IamInstanceProfileSpecification getIamInstanceProfile()
The IAM instance profile.

Returns:
The IAM instance profile.

setIamInstanceProfile

public void setIamInstanceProfile(IamInstanceProfileSpecification iamInstanceProfile)
The IAM instance profile.

Parameters:
iamInstanceProfile - The IAM instance profile.

withIamInstanceProfile

public RunInstancesRequest withIamInstanceProfile(IamInstanceProfileSpecification iamInstanceProfile)
The IAM instance profile.

Returns a reference to this object so that method calls can be chained together.

Parameters:
iamInstanceProfile - The IAM instance profile.
Returns:
A reference to this updated object so that method calls can be chained together.

isEbsOptimized

public java.lang.Boolean isEbsOptimized()
Indicates whether the instance is optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal Amazon EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS-optimized instance.

Default: false

Returns:
Indicates whether the instance is optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal Amazon EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS-optimized instance.

Default: false


setEbsOptimized

public void setEbsOptimized(java.lang.Boolean ebsOptimized)
Indicates whether the instance is optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal Amazon EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS-optimized instance.

Default: false

Parameters:
ebsOptimized - Indicates whether the instance is optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal Amazon EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS-optimized instance.

Default: false


withEbsOptimized

public RunInstancesRequest withEbsOptimized(java.lang.Boolean ebsOptimized)
Indicates whether the instance is optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal Amazon EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS-optimized instance.

Default: false

Returns a reference to this object so that method calls can be chained together.

Parameters:
ebsOptimized - Indicates whether the instance is optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal Amazon EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS-optimized instance.

Default: false

Returns:
A reference to this updated object so that method calls can be chained together.

getEbsOptimized

public java.lang.Boolean getEbsOptimized()
Indicates whether the instance is optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal Amazon EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS-optimized instance.

Default: false

Returns:
Indicates whether the instance is optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal Amazon EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS-optimized instance.

Default: false


getDryRunRequest

public Request<RunInstancesRequest> getDryRunRequest()
This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.

Specified by:
getDryRunRequest in interface DryRunSupportedRequest<RunInstancesRequest>

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.