com.amazonaws.services.ec2.model
Class StartInstancesRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by 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: 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()
          Default constructor for a new StartInstancesRequest object.
StartInstancesRequest(List<String> instanceIds)
          Constructs a new StartInstancesRequest object.
 
Method Summary
 boolean equals(Object obj)
           
 String getAdditionalInfo()
          Returns the value of the AdditionalInfo property for this object.
 List<String> getInstanceIds()
          The list of Amazon EC2 instances to start.
 int hashCode()
           
 void setAdditionalInfo(String additionalInfo)
          Sets the value of the AdditionalInfo property for this object.
 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 withAdditionalInfo(String additionalInfo)
          Sets the value of the AdditionalInfo property for this object.
 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, getDelegationToken, getRequestClientOptions, getRequestCredentials, setDelegationToken, setRequestCredentials
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StartInstancesRequest

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


StartInstancesRequest

public StartInstancesRequest(List<String> instanceIds)
Constructs a new StartInstancesRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
instanceIds - The list of Amazon EC2 instances to start.
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.

getAdditionalInfo

public String getAdditionalInfo()
Returns the value of the AdditionalInfo property for this object.

Returns:
The value of the AdditionalInfo property for this object.

setAdditionalInfo

public void setAdditionalInfo(String additionalInfo)
Sets the value of the AdditionalInfo property for this object.

Parameters:
additionalInfo - The new value for the AdditionalInfo property for this object.

withAdditionalInfo

public StartInstancesRequest withAdditionalInfo(String additionalInfo)
Sets the value of the AdditionalInfo property for this object.

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

Parameters:
additionalInfo - The new value for the AdditionalInfo property for this object.
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()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


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