public void setEndTime(java.util.Date endTime) {
        this.endTime = endTime;
    }
<p>
The end of the time interval for which to get metric data.
</p>
<p>
Constraints:
</p>
<ul>
<li>
<p>
Specified in Coordinated Universal Time (UTC).
</p>
</li>
<li>
<p>
Specified in the Unix time format.
</p>
<p>
For example, if you wish to use an end time of October 1, 2018, at 9 PM UTC, specify <code>1538427600</code> as
the end time.
</p>
</li>
</ul>
<p>
You can convert a human-friendly time to Unix time format using a converter like <a
href="https://www.epochconverter.com/">Epoch converter</a>.
</p>

@param endTime
       The end of the time interval for which to get metric data.</p>
       <p>
       Constraints:
       </p>
       <ul>
       <li>
       <p>
       Specified in Coordinated Universal Time (UTC).
       </p>
       </li>
       <li>
       <p>
       Specified in the Unix time format.
       </p>
       <p>
       For example, if you wish to use an end time of October 1, 2018, at 9 PM UTC, specify
       <code>1538427600</code> as the end time.
       </p>
       </li>
       </ul>
       <p>
       You can convert a human-friendly time to Unix time format using a converter like <a
       href="https://www.epochconverter.com/">Epoch converter</a>.
aws-java-sdk-lightsail/src/main/java/com/amazonaws/services/lightsail/model/GetDistributionMetricDataRequest.java