com.amazonaws.services.ec2.model
Class MonitorInstancesRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.ec2.model.MonitorInstancesRequest
All Implemented Interfaces:
DryRunSupportedRequest<MonitorInstancesRequest>, java.io.Serializable

public class MonitorInstancesRequest
extends AmazonWebServiceRequest
implements java.io.Serializable, DryRunSupportedRequest<MonitorInstancesRequest>

Container for the parameters to the MonitorInstances operation.

Enables monitoring for a running instance. For more information about monitoring instances, see Monitoring Your Instances and Volumes in the Amazon Elastic Compute Cloud User Guide .

See Also:
AmazonEC2.monitorInstances(MonitorInstancesRequest), Serialized Form

Constructor Summary
MonitorInstancesRequest()
          Default constructor for a new MonitorInstancesRequest object.
MonitorInstancesRequest(java.util.List<java.lang.String> instanceIds)
          Constructs a new MonitorInstancesRequest object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 Request<MonitorInstancesRequest> getDryRunRequest()
          This method is intended for internal use only.
 java.util.List<java.lang.String> getInstanceIds()
          One or more instance IDs.
 int hashCode()
           
 void setInstanceIds(java.util.Collection<java.lang.String> instanceIds)
          One or more instance IDs.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 MonitorInstancesRequest withInstanceIds(java.util.Collection<java.lang.String> instanceIds)
          One or more instance IDs.
 MonitorInstancesRequest withInstanceIds(java.lang.String... instanceIds)
          One or more instance IDs.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
 
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(java.util.List<java.lang.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 - One or more instance IDs.
Method Detail

getInstanceIds

public java.util.List<java.lang.String> getInstanceIds()
One or more instance IDs.

Returns:
One or more instance IDs.

setInstanceIds

public void setInstanceIds(java.util.Collection<java.lang.String> instanceIds)
One or more instance IDs.

Parameters:
instanceIds - One or more instance IDs.

withInstanceIds

public MonitorInstancesRequest withInstanceIds(java.lang.String... instanceIds)
One or more instance IDs.

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

Parameters:
instanceIds - One or more instance IDs.
Returns:
A reference to this updated object so that method calls can be chained together.

withInstanceIds

public MonitorInstancesRequest withInstanceIds(java.util.Collection<java.lang.String> instanceIds)
One or more instance IDs.

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

Parameters:
instanceIds - One or more instance IDs.
Returns:
A reference to this updated object so that method calls can be chained together.

getDryRunRequest

public Request<MonitorInstancesRequest> getDryRunRequest()
This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.

Specified by:
getDryRunRequest in interface DryRunSupportedRequest<MonitorInstancesRequest>

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


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