public CreateCapacityReservationFleetRequest withEndDate(java.util.Date endDate) {
        setEndDate(endDate);
        return this;
    }
<p>
The date and time at which the Capacity Reservation Fleet expires. When the Capacity Reservation Fleet expires,
its state changes to <code>expired</code> and all of the Capacity Reservations in the Fleet expire.
</p>
<p>
The Capacity Reservation Fleet expires within an hour after the specified time. For example, if you specify
<code>5/31/2019</code>, <code>13:30:55</code>, the Capacity Reservation Fleet is guaranteed to expire between
<code>13:30:55</code> and <code>14:30:55</code> on <code>5/31/2019</code>.
</p>

@param endDate
       The date and time at which the Capacity Reservation Fleet expires. When the Capacity Reservation Fleet
       expires, its state changes to <code>expired</code> and all of the Capacity Reservations in the Fleet
       expire.</p>
       <p>
       The Capacity Reservation Fleet expires within an hour after the specified time. For example, if you
       specify <code>5/31/2019</code>, <code>13:30:55</code>, the Capacity Reservation Fleet is guaranteed to
       expire between <code>13:30:55</code> and <code>14:30:55</code> on <code>5/31/2019</code>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/CreateCapacityReservationFleetRequest.java