Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.opsworks.model
Class DescribeInstancesRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.opsworks.model.DescribeInstancesRequest
All Implemented Interfaces:
Serializable

public class DescribeInstancesRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the DescribeInstances operation.

Requests a description of a set of instances associated with a specified ID or IDs.

See Also:
AWSOpsWorks.describeInstances(DescribeInstancesRequest), Serialized Form

Constructor Summary
DescribeInstancesRequest()
           
 
Method Summary
 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.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DescribeInstancesRequest

public DescribeInstancesRequest()
Method Detail

getStackId

public String getStackId()
A stack ID. If you use this parameter, DescribeInstances returns descriptions of the instances associated with the specified stack.

Returns:
A stack ID. If you use this parameter, DescribeInstances returns descriptions of the instances associated with the specified stack.

setStackId

public void setStackId(String stackId)
A stack ID. If you use this parameter, DescribeInstances returns descriptions of the instances associated with the specified stack.

Parameters:
stackId - A stack ID. If you use this parameter, DescribeInstances returns descriptions of the instances associated with the specified stack.

withStackId

public DescribeInstancesRequest withStackId(String stackId)
A stack ID. If you use this parameter, 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.

Parameters:
stackId - A stack ID. If you use this parameter, DescribeInstances returns descriptions of the instances associated with the specified stack.
Returns:
A reference to this updated object so that method calls can be chained together.

getLayerId

public String getLayerId()
A layer ID. If you use this parameter, DescribeInstances returns descriptions of the instances associated with the specified layer.

Returns:
A layer ID. If you use this parameter, DescribeInstances returns descriptions of the instances associated with the specified layer.

setLayerId

public void setLayerId(String layerId)
A layer ID. If you use this parameter, DescribeInstances returns descriptions of the instances associated with the specified layer.

Parameters:
layerId - A layer ID. If you use this parameter, DescribeInstances returns descriptions of the instances associated with the specified layer.

withLayerId

public DescribeInstancesRequest withLayerId(String layerId)
A layer ID. If you use this parameter, 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.

Parameters:
layerId - A layer ID. If you use this parameter, DescribeInstances returns descriptions of the instances associated with the specified layer.
Returns:
A reference to this updated 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, DescribeInstances returns 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, DescribeInstances returns 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, DescribeInstances returns 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, DescribeInstances returns 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, 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.

Parameters:
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.
Returns:
A reference to this updated 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, 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.

Parameters:
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.
Returns:
A reference to this updated 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:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.