public class MonitorInstancesRequest extends AmazonWebServiceRequest implements Serializable, DryRunSupportedRequest<MonitorInstancesRequest>
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 .
NOOP
Constructor and Description |
---|
MonitorInstancesRequest()
Default constructor for a new MonitorInstancesRequest object.
|
MonitorInstancesRequest(List<String> instanceIds)
Constructs a new MonitorInstancesRequest object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Request<MonitorInstancesRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
List<String> |
getInstanceIds()
One or more instance IDs.
|
int |
hashCode() |
void |
setInstanceIds(Collection<String> instanceIds)
One or more instance IDs.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
MonitorInstancesRequest |
withInstanceIds(Collection<String> instanceIds)
One or more instance IDs.
|
MonitorInstancesRequest |
withInstanceIds(String... instanceIds)
One or more instance IDs.
|
copyPrivateRequestParameters, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public MonitorInstancesRequest()
public List<String> getInstanceIds()
public void setInstanceIds(Collection<String> instanceIds)
instanceIds
- One or more instance IDs.public MonitorInstancesRequest withInstanceIds(String... instanceIds)
Returns a reference to this object so that method calls can be chained together.
instanceIds
- One or more instance IDs.public MonitorInstancesRequest withInstanceIds(Collection<String> instanceIds)
Returns a reference to this object so that method calls can be chained together.
instanceIds
- One or more instance IDs.public Request<MonitorInstancesRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<MonitorInstancesRequest>
public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.