public ListMetricsRequest withRecentlyActive(RecentlyActive recentlyActive) {
        this.recentlyActive = recentlyActive.toString();
        return this;
    }
<p>
To filter the results to show only metrics that have had data points published in the past three hours, specify
this parameter with a value of <code>PT3H</code>. This is the only valid value for this parameter.
</p>
<p>
The results that are returned are an approximation of the value you specify. There is a low probability that the
returned results include metrics with last published data as much as 40 minutes more than the specified time
interval.
</p>

@param recentlyActive
       To filter the results to show only metrics that have had data points published in the past three hours,
       specify this parameter with a value of <code>PT3H</code>. This is the only valid value for this
       parameter.</p>
       <p>
       The results that are returned are an approximation of the value you specify. There is a low probability
       that the returned results include metrics with last published data as much as 40 minutes more than the
       specified time interval.
@return Returns a reference to this object so that method calls can be chained together.
@see RecentlyActive
aws-java-sdk-cloudwatch/src/main/java/com/amazonaws/services/cloudwatch/model/ListMetricsRequest.java