public class MonitorInstancesRequest extends AmazonWebServiceRequest implements java.io.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 .
Constructor and Description |
---|
MonitorInstancesRequest()
Default constructor for a new MonitorInstancesRequest object.
|
MonitorInstancesRequest(java.util.List<java.lang.String> instanceIds)
Constructs a new MonitorInstancesRequest object.
|
Modifier and Type | Method and Description |
---|---|
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.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public MonitorInstancesRequest()
public MonitorInstancesRequest(java.util.List<java.lang.String> instanceIds)
instanceIds
- One or more instance IDs.public java.util.List<java.lang.String> getInstanceIds()
public void setInstanceIds(java.util.Collection<java.lang.String> instanceIds)
instanceIds
- One or more instance IDs.public MonitorInstancesRequest withInstanceIds(java.lang.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(java.util.Collection<java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.