public class DescribeInstancesRequest extends AmazonWebServiceRequest implements Serializable
DescribeInstances operation
.
Requests a description of a set of instances.
NOTE:You must specify at least one of the parameters.
Required Permissions : To use this action, an IAM user must have a Show, Deploy, or Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions .
Constructor and Description |
---|
DescribeInstancesRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
List<String> |
getInstanceIds()
An array of instance IDs to be described.
|
String |
getLayerId()
A layer ID.
|
String |
getStackId()
A stack ID.
|
int |
hashCode() |
void |
setInstanceIds(Collection<String> instanceIds)
An array of instance IDs to be described.
|
void |
setLayerId(String layerId)
A layer ID.
|
void |
setStackId(String stackId)
A stack ID.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeInstancesRequest |
withInstanceIds(Collection<String> instanceIds)
An array of instance IDs to be described.
|
DescribeInstancesRequest |
withInstanceIds(String... instanceIds)
An array of instance IDs to be described.
|
DescribeInstancesRequest |
withLayerId(String layerId)
A layer ID.
|
DescribeInstancesRequest |
withStackId(String stackId)
A stack ID.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public String getStackId()
DescribeInstances
returns descriptions of the instances associated with the specified
stack.DescribeInstances
returns descriptions of the instances associated with the specified
stack.public void setStackId(String stackId)
DescribeInstances
returns descriptions of the instances associated with the specified
stack.stackId
- A stack ID. If you use this parameter, DescribeInstances
returns descriptions of the instances associated with the specified
stack.public DescribeInstancesRequest withStackId(String stackId)
DescribeInstances
returns descriptions of the instances associated with the specified
stack.
Returns a reference to this object so that method calls can be chained together.
stackId
- A stack ID. If you use this parameter, DescribeInstances
returns descriptions of the instances associated with the specified
stack.public String getLayerId()
DescribeInstances
returns descriptions of the instances associated with the specified
layer.DescribeInstances
returns descriptions of the instances associated with the specified
layer.public void setLayerId(String layerId)
DescribeInstances
returns descriptions of the instances associated with the specified
layer.layerId
- A layer ID. If you use this parameter, DescribeInstances
returns descriptions of the instances associated with the specified
layer.public DescribeInstancesRequest withLayerId(String layerId)
DescribeInstances
returns descriptions of the instances associated with the specified
layer.
Returns a reference to this object so that method calls can be chained together.
layerId
- A layer ID. If you use this parameter, DescribeInstances
returns descriptions of the instances associated with the specified
layer.public List<String> getInstanceIds()
DescribeInstances
returns a description of the specified
instances. Otherwise, it returns a description of every instance.DescribeInstances
returns a description of the specified
instances. Otherwise, it returns a description of every instance.public void setInstanceIds(Collection<String> instanceIds)
DescribeInstances
returns a description of the specified
instances. Otherwise, it returns a description of every instance.instanceIds
- An array of instance IDs to be described. If you use this parameter,
DescribeInstances
returns a description of the specified
instances. Otherwise, it returns a description of every instance.public DescribeInstancesRequest withInstanceIds(String... instanceIds)
DescribeInstances
returns a description of the specified
instances. Otherwise, it returns a description of every instance.
Returns a reference to this object so that method calls can be chained together.
instanceIds
- An array of instance IDs to be described. If you use this parameter,
DescribeInstances
returns a description of the specified
instances. Otherwise, it returns a description of every instance.public DescribeInstancesRequest withInstanceIds(Collection<String> instanceIds)
DescribeInstances
returns a description of the specified
instances. Otherwise, it returns a description of every instance.
Returns a reference to this object so that method calls can be chained together.
instanceIds
- An array of instance IDs to be described. If you use this parameter,
DescribeInstances
returns a description of the specified
instances. Otherwise, it returns a description of every instance.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.