code: public void setAggregationEnabled(boolean enabled) {
          if (enabled) {
              this.resourcesElementsProvider.setDefaultIncludedType(Included.AGGREGATED);
          } else {
              this.resourcesElementsProvider.setDefaultIncludedType(Included.PLAIN);
          }
      }
docs: Toggle resources aggregation (if and only if value parameter differs from current value).