public class DescribeInstancesRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
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 .
NOOP
Constructor and Description |
---|
DescribeInstancesRequest() |
Modifier and Type | Method and Description |
---|---|
DescribeInstancesRequest |
clone()
Creates a shallow clone of this request.
|
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.
|
copyBaseTo, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, 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.
NOTE: This method appends the values to the existing list (if
any). Use setInstanceIds(java.util.Collection)
or withInstanceIds(java.util.Collection)
if you want to override the
existing values.
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()
public DescribeInstancesRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.