public class DescribeInstancesRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<java.lang.String> |
instanceIds
An array of instance IDs to be described.
|
private java.lang.String |
layerId
A layer ID.
|
private java.lang.String |
stackId
A stack ID.
|
NOOP
Constructor and Description |
---|
DescribeInstancesRequest() |
Modifier and Type | Method and Description |
---|---|
DescribeInstancesRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.util.List<java.lang.String> |
getInstanceIds()
An array of instance IDs to be described.
|
java.lang.String |
getLayerId()
A layer ID.
|
java.lang.String |
getStackId()
A stack ID.
|
int |
hashCode() |
void |
setInstanceIds(java.util.Collection<java.lang.String> instanceIds)
An array of instance IDs to be described.
|
void |
setLayerId(java.lang.String layerId)
A layer ID.
|
void |
setStackId(java.lang.String stackId)
A stack ID.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeInstancesRequest |
withInstanceIds(java.util.Collection<java.lang.String> instanceIds)
An array of instance IDs to be described.
|
DescribeInstancesRequest |
withInstanceIds(java.lang.String... instanceIds)
An array of instance IDs to be described.
|
DescribeInstancesRequest |
withLayerId(java.lang.String layerId)
A layer ID.
|
DescribeInstancesRequest |
withStackId(java.lang.String stackId)
A stack ID.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.String stackId
A stack ID. If you use this parameter, DescribeInstances
returns descriptions of the instances associated with the specified
stack.
private java.lang.String layerId
A layer ID. If you use this parameter, DescribeInstances
returns descriptions of the instances associated with the specified
layer.
private SdkInternalList<java.lang.String> 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 void setStackId(java.lang.String stackId)
A stack ID. If you use this parameter, 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 java.lang.String getStackId()
A stack ID. If you use this parameter, DescribeInstances
returns descriptions of the instances associated with the specified
stack.
DescribeInstances
returns descriptions of the
instances associated with the specified stack.public DescribeInstancesRequest withStackId(java.lang.String stackId)
A stack ID. If you use this parameter, 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 void setLayerId(java.lang.String layerId)
A layer ID. If you use this parameter, 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 java.lang.String getLayerId()
A layer ID. If you use this parameter, DescribeInstances
returns descriptions of the instances associated with the specified
layer.
DescribeInstances
returns descriptions of the
instances associated with the specified layer.public DescribeInstancesRequest withLayerId(java.lang.String layerId)
A layer ID. If you use this parameter, 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 java.util.List<java.lang.String> getInstanceIds()
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.
DescribeInstances
returns a description
of the specified instances. Otherwise, it returns a description
of every instance.public void setInstanceIds(java.util.Collection<java.lang.String> 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.
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(java.lang.String... 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.
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.
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(java.util.Collection<java.lang.String> 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.
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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public DescribeInstancesRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()