public PreviewOverride withEndTime(java.util.Date endTime) {
        setEndTime(endTime);
        return this;
    }
<p>
Information about the time a rotation override would end.
</p>

@param endTime
       Information about the time a rotation override would end.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ssmcontacts/src/main/java/com/amazonaws/services/ssmcontacts/model/PreviewOverride.java