public CreateFlowLogsRequest withMaxAggregationInterval(Integer maxAggregationInterval) {
        setMaxAggregationInterval(maxAggregationInterval);
        return this;
    }
<p>
The maximum interval of time during which a flow of packets is captured and aggregated into a flow log record.
The possible values are 60 seconds (1 minute) or 600 seconds (10 minutes). This parameter must be 60 seconds for
transit gateway resource types.
</p>
<p>
When a network interface is attached to a <a
href="https://docs.aws.amazon.com/ec2/latest/instancetypes/ec2-nitro-instances.html">Nitro-based instance</a>,
the aggregation interval is always 60 seconds or less, regardless of the value that you specify.
</p>
<p>
Default: 600
</p>

@param maxAggregationInterval
       The maximum interval of time during which a flow of packets is captured and aggregated into a flow log
       record. The possible values are 60 seconds (1 minute) or 600 seconds (10 minutes). This parameter must be
       60 seconds for transit gateway resource types.</p>
       <p>
       When a network interface is attached to a <a
       href="https://docs.aws.amazon.com/ec2/latest/instancetypes/ec2-nitro-instances.html">Nitro-based
       instance</a>, the aggregation interval is always 60 seconds or less, regardless of the value that you
       specify.
       </p>
       <p>
       Default: 600
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/CreateFlowLogsRequest.java