public GetInventoryRequest withAggregators(InventoryAggregator... aggregators) {
        if (this.aggregators == null) {
            setAggregators(new com.amazonaws.internal.SdkInternalList<InventoryAggregator>(aggregators.length));
        }
        for (InventoryAggregator ele : aggregators) {
            this.aggregators.add(ele);
        }
        return this;
    }
<p>
Returns counts of inventory types based on one or more expressions. For example, if you aggregate by using an
expression that uses the <code>AWS:InstanceInformation.PlatformType</code> type, you can see a count of how many
Windows and Linux managed nodes exist in your inventoried fleet.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setAggregators(java.util.Collection)} or {@link #withAggregators(java.util.Collection)} if you want to
override the existing values.
</p>

@param aggregators
       Returns counts of inventory types based on one or more expressions. For example, if you aggregate by using
       an expression that uses the <code>AWS:InstanceInformation.PlatformType</code> type, you can see a count of
       how many Windows and Linux managed nodes exist in your inventoried fleet.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ssm/src/main/java/com/amazonaws/services/simplesystemsmanagement/model/GetInventoryRequest.java