public MonitorSummary withAggregationPeriod(Long aggregationPeriod) {
        setAggregationPeriod(aggregationPeriod);
        return this;
    }
<p>
The time, in seconds, that metrics are collected and sent to Amazon CloudWatch. Valid values are either
<code>30</code> or <code>60</code>.
</p>

@param aggregationPeriod
       The time, in seconds, that metrics are collected and sent to Amazon CloudWatch. Valid values are either
       <code>30</code> or <code>60</code>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-networkmonitor/src/main/java/com/amazonaws/services/networkmonitor/model/MonitorSummary.java