Class DescribeInstancesRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.opsworks.model.DescribeInstancesRequest
-
- All Implemented Interfaces:
ReadLimitInfo,Serializable,Cloneable
public class DescribeInstancesRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description DescribeInstancesRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DescribeInstancesRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)List<String>getInstanceIds()An array of instance IDs to be described.StringgetLayerId()A layer ID.StringgetStackId()A stack ID.inthashCode()voidsetInstanceIds(Collection<String> instanceIds)An array of instance IDs to be described.voidsetLayerId(String layerId)A layer ID.voidsetStackId(String stackId)A stack ID.StringtoString()Returns a string representation of this object; useful for testing and debugging.DescribeInstancesRequestwithInstanceIds(String... instanceIds)An array of instance IDs to be described.DescribeInstancesRequestwithInstanceIds(Collection<String> instanceIds)An array of instance IDs to be described.DescribeInstancesRequestwithLayerId(String layerId)A layer ID.DescribeInstancesRequestwithStackId(String stackId)A stack ID.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
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
-
-
-
-
Method Detail
-
setStackId
public void setStackId(String stackId)
A stack ID. If you use this parameter,
DescribeInstancesreturns descriptions of the instances associated with the specified stack.- Parameters:
stackId- A stack ID. If you use this parameter,DescribeInstancesreturns descriptions of the instances associated with the specified stack.
-
getStackId
public String getStackId()
A stack ID. If you use this parameter,
DescribeInstancesreturns descriptions of the instances associated with the specified stack.- Returns:
- A stack ID. If you use this parameter,
DescribeInstancesreturns descriptions of the instances associated with the specified stack.
-
withStackId
public DescribeInstancesRequest withStackId(String stackId)
A stack ID. If you use this parameter,
DescribeInstancesreturns descriptions of the instances associated with the specified stack.- Parameters:
stackId- A stack ID. If you use this parameter,DescribeInstancesreturns descriptions of the instances associated with the specified stack.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setLayerId
public void setLayerId(String layerId)
A layer ID. If you use this parameter,
DescribeInstancesreturns descriptions of the instances associated with the specified layer.- Parameters:
layerId- A layer ID. If you use this parameter,DescribeInstancesreturns descriptions of the instances associated with the specified layer.
-
getLayerId
public String getLayerId()
A layer ID. If you use this parameter,
DescribeInstancesreturns descriptions of the instances associated with the specified layer.- Returns:
- A layer ID. If you use this parameter,
DescribeInstancesreturns descriptions of the instances associated with the specified layer.
-
withLayerId
public DescribeInstancesRequest withLayerId(String layerId)
A layer ID. If you use this parameter,
DescribeInstancesreturns descriptions of the instances associated with the specified layer.- Parameters:
layerId- A layer ID. If you use this parameter,DescribeInstancesreturns descriptions of the instances associated with the specified layer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getInstanceIds
public List<String> getInstanceIds()
An array of instance IDs to be described. If you use this parameter,
DescribeInstancesreturns a description of the specified instances. Otherwise, it returns a description of every instance.- Returns:
- An array of instance IDs to be described. If you use this
parameter,
DescribeInstancesreturns a description of the specified instances. Otherwise, it returns a description of every instance.
-
setInstanceIds
public void setInstanceIds(Collection<String> instanceIds)
An array of instance IDs to be described. If you use this parameter,
DescribeInstancesreturns a description of the specified instances. Otherwise, it returns a description of every instance.- Parameters:
instanceIds- An array of instance IDs to be described. If you use this parameter,DescribeInstancesreturns a description of the specified instances. Otherwise, it returns a description of every instance.
-
withInstanceIds
public DescribeInstancesRequest withInstanceIds(String... instanceIds)
An array of instance IDs to be described. If you use this parameter,
DescribeInstancesreturns 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)orwithInstanceIds(java.util.Collection)if you want to override the existing values.- Parameters:
instanceIds- An array of instance IDs to be described. If you use this parameter,DescribeInstancesreturns a description of the specified instances. Otherwise, it returns a description of every instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withInstanceIds
public DescribeInstancesRequest withInstanceIds(Collection<String> instanceIds)
An array of instance IDs to be described. If you use this parameter,
DescribeInstancesreturns a description of the specified instances. Otherwise, it returns a description of every instance.- Parameters:
instanceIds- An array of instance IDs to be described. If you use this parameter,DescribeInstancesreturns a description of the specified instances. Otherwise, it returns a description of every instance.- Returns:
- Returns a reference to this 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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public DescribeInstancesRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-