public GetResourceMetricsRequest withPeriodAlignment(PeriodAlignment periodAlignment) {
        this.periodAlignment = periodAlignment.toString();
        return this;
    }
<p>
The returned timestamp which is the start or end time of the time periods. The default value is
<code>END_TIME</code>.
</p>

@param periodAlignment
       The returned timestamp which is the start or end time of the time periods. The default value is
       <code>END_TIME</code>.
@return Returns a reference to this object so that method calls can be chained together.
@see PeriodAlignment
aws-java-sdk-pi/src/main/java/com/amazonaws/services/pi/model/GetResourceMetricsRequest.java