com.amazonaws.services.ec2.model
Class MonitorInstancesRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.ec2.model.MonitorInstancesRequest

public class MonitorInstancesRequest
extends AmazonWebServiceRequest

Container for the parameters to the MonitorInstances operation.

Enables monitoring for a running instance.

See Also:
AmazonEC2.monitorInstances(MonitorInstancesRequest)

Constructor Summary
MonitorInstancesRequest()
          Default constructor for a new MonitorInstancesRequest object.
MonitorInstancesRequest(List<String> instanceIds)
          Constructs a new MonitorInstancesRequest object.
 
Method Summary
 boolean equals(Object obj)
           
 List<String> getInstanceIds()
          The list of Amazon EC2 instances on which to enable monitoring.
 int hashCode()
           
 void setInstanceIds(Collection<String> instanceIds)
          The list of Amazon EC2 instances on which to enable monitoring.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 MonitorInstancesRequest withInstanceIds(Collection<String> instanceIds)
          The list of Amazon EC2 instances on which to enable monitoring.
 MonitorInstancesRequest withInstanceIds(String... instanceIds)
          The list of Amazon EC2 instances on which to enable monitoring.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, setDelegationToken, setRequestCredentials
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MonitorInstancesRequest

public MonitorInstancesRequest()
Default constructor for a new MonitorInstancesRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.


MonitorInstancesRequest

public MonitorInstancesRequest(List<String> instanceIds)
Constructs a new MonitorInstancesRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
instanceIds - The list of Amazon EC2 instances on which to enable monitoring.
Method Detail

getInstanceIds

public List<String> getInstanceIds()
The list of Amazon EC2 instances on which to enable monitoring.

Returns:
The list of Amazon EC2 instances on which to enable monitoring.

setInstanceIds

public void setInstanceIds(Collection<String> instanceIds)
The list of Amazon EC2 instances on which to enable monitoring.

Parameters:
instanceIds - The list of Amazon EC2 instances on which to enable monitoring.

withInstanceIds

public MonitorInstancesRequest withInstanceIds(String... instanceIds)
The list of Amazon EC2 instances on which to enable monitoring.

Returns a reference to this object so that method calls can be chained together.

Parameters:
instanceIds - The list of Amazon EC2 instances on which to enable monitoring.
Returns:
A reference to this updated object so that method calls can be chained together.

withInstanceIds

public MonitorInstancesRequest withInstanceIds(Collection<String> instanceIds)
The list of Amazon EC2 instances on which to enable monitoring.

Returns a reference to this object so that method calls can be chained together.

Parameters:
instanceIds - The list of Amazon EC2 instances on which to enable monitoring.
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.