@Override
    public MonitorInstancesResult monitorInstances(MonitorInstancesRequest request) {
        request = beforeClientExecution(request);
        return executeMonitorInstances(request);
    }
<p>
Enables detailed monitoring for a running instance. Otherwise, basic monitoring is enabled. For more information,
see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-cloudwatch.html">Monitor your instances
using CloudWatch</a> in the <i>Amazon EC2 User Guide</i>.
</p>
<p>
To disable detailed monitoring, see <a
href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_UnmonitorInstances.html">UnmonitorInstances</a>.
</p>

@param monitorInstancesRequest
@return Result of the MonitorInstances operation returned by the service.
@sample AmazonEC2.MonitorInstances
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/MonitorInstances" target="_top">AWS API
     Documentation</a>
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/AmazonEC2Client.java