Overview | Package | Class | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.amazonaws.services.ec2.model
Class MonitorInstancesRequest

    java.lang.Object
      com.amazonaws.AmazonWebServiceRequest
          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()`

Method Summary
`List<String>` | `getInstanceIds()` The list of Amazon EC2 instances on which to enable monitoring.
`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`

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### MonitorInstancesRequest

    public MonitorInstancesRequest()

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()`

Overview | Package | Class | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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