|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.ec2.model.DescribeInstancesRequest
public class DescribeInstancesRequest
A request to describe the Amazon EC2 instances in a user's account.
If you specify one or more instance IDs, Amazon EC2 returns information for those instances. If you do not specify instance IDs, Amazon EC2 returns information for all relevant instances. If you specify an invalid instance ID, a fault is returned. If you specify an instance that you do not own, it will not be included in the returned results.
Recently terminated instances might appear in the returned results. This interval is usually less than one hour.
Constructor Summary | |
---|---|
DescribeInstancesRequest()
|
Method Summary | |
---|---|
List<String> |
getInstanceIds()
An optional list of the instances to describe. |
void |
setInstanceIds(Collection<String> instanceIds)
An optional list of the instances to describe. |
String |
toString()
|
DescribeInstancesRequest |
withInstanceIds(Collection<String> instanceIds)
An optional list of the instances to describe. |
DescribeInstancesRequest |
withInstanceIds(String... instanceIds)
An optional list of the instances to describe. |
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 |
---|
public DescribeInstancesRequest()
Method Detail |
---|
public List<String> getInstanceIds()
public void setInstanceIds(Collection<String> instanceIds)
instanceIds
- An optional list of the instances to describe.public DescribeInstancesRequest withInstanceIds(String... instanceIds)
Returns a reference to this object so that method calls can be chained together.
instanceIds
- An optional list of the instances to describe.
public DescribeInstancesRequest withInstanceIds(Collection<String> instanceIds)
Returns a reference to this object so that method calls can be chained together.
instanceIds
- An optional list of the instances to describe.
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |