Overview | Package | Class | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.amazonaws.services.ec2.model
Class StartInstancesRequest

    java.lang.Object
      com.amazonaws.AmazonWebServiceRequest
          com.amazonaws.services.ec2.model.StartInstancesRequest

    public class StartInstancesRequest

extends AmazonWebServiceRequest

Container for the parameters to the `StartInstances operation`.

Starts an instance that uses an Amazon EBS volume as its root device. Instances that use Amazon EBS volumes as their root devices can be quickly stopped and started. When an instance is stopped, the compute resources are released and you are not billed for hourly instance usage. However, your root partition Amazon EBS volume remains, continues to persist your data, and you are charged for Amazon EBS volume usage. You can restart your instance at any time.

NOTE: Before stopping an instance, make sure it is in a state from which it can be restarted. Stopping an instance does not preserve data stored in RAM. Performing this operation on an instance that uses an instance store as its root device returns an error.

See Also:
  `AmazonEC2.startInstances(StartInstancesRequest)`

Constructor Summary
`StartInstancesRequest()`

Method Summary
`List<String>` | `getInstanceIds()` The list of Amazon EC2 instances to start.
`void` | `setInstanceIds(Collection<String> instanceIds)` The list of Amazon EC2 instances to start.
`String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
`StartInstancesRequest` | `withInstanceIds(Collection<String> instanceIds)` The list of Amazon EC2 instances to start.
`StartInstancesRequest` | `withInstanceIds(String... instanceIds)` The list of Amazon EC2 instances to start.

Methods inherited from class com.amazonaws.AmazonWebServiceRequest
`copyPrivateRequestParameters`

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### StartInstancesRequest

    public StartInstancesRequest()

Method Detail

### getInstanceIds

    public List<String> getInstanceIds()

  The list of Amazon EC2 instances to start.

  Returns:
    The list of Amazon EC2 instances to start.

### setInstanceIds

    public void setInstanceIds(Collection<String> instanceIds)

  The list of Amazon EC2 instances to start.

  Parameters:
    `instanceIds` - The list of Amazon EC2 instances to start.

### withInstanceIds

    public StartInstancesRequest withInstanceIds(String... instanceIds)

  The list of Amazon EC2 instances to start.

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

  Parameters:
    `instanceIds` - The list of Amazon EC2 instances to start.
  Returns:
    A reference to this updated object so that method calls can be chained together.

### withInstanceIds

    public StartInstancesRequest withInstanceIds(Collection<String> instanceIds)

  The list of Amazon EC2 instances to start.

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

  Parameters:
    `instanceIds` - The list of Amazon EC2 instances to start.
  Returns:
    A reference to this updated object so that method calls can be chained together.

### toString

    public String toString()

  Returns a string representation of this object; useful for testing and debugging.

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

Overview | Package | Class | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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