@Override
    public ModifyInstanceEventWindowResult modifyInstanceEventWindow(ModifyInstanceEventWindowRequest request) {
        request = beforeClientExecution(request);
        return executeModifyInstanceEventWindow(request);
    }
<p>
Modifies the specified event window.
</p>
<p>
You can define either a set of time ranges or a cron expression when modifying the event window, but not both.
</p>
<p>
To modify the targets associated with the event window, use the <a>AssociateInstanceEventWindow</a> and
<a>DisassociateInstanceEventWindow</a> API.
</p>
<p>
If Amazon Web Services has already scheduled an event, modifying an event window won't change the time of the
scheduled event.
</p>
<p>
For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/event-windows.html">Define
event windows for scheduled events</a> in the <i>Amazon EC2 User Guide</i>.
</p>

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