public CreateScheduledActionResult withEndTime(java.util.Date endTime) {
        setEndTime(endTime);
        return this;
    }
<p>
The end time in UTC when the schedule is no longer active. After this time, the scheduled action does not
trigger.
</p>

@param endTime
       The end time in UTC when the schedule is no longer active. After this time, the scheduled action does not
       trigger.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-redshift/src/main/java/com/amazonaws/services/redshift/model/CreateScheduledActionResult.java