public InventoryAggregator withGroups(java.util.Collection<InventoryGroup> groups) {
        setGroups(groups);
        return this;
    }
<p>
A user-defined set of one or more filters on which to aggregate inventory data. Groups return a count of
resources that match and don't match the specified criteria.
</p>

@param groups
       A user-defined set of one or more filters on which to aggregate inventory data. Groups return a count of
       resources that match and don't match the specified criteria.
@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/InventoryAggregator.java