Interface GroupByResult.Builder

  • Method Details

    • groupByField

      GroupByResult.Builder groupByField(String groupByField)

      The attribute by which filtered security findings should be grouped.

      Parameters:
      groupByField - The attribute by which filtered security findings should be grouped.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • groupByValues

      GroupByResult.Builder groupByValues(Collection<GroupByValue> groupByValues)

      An array of grouped values and their respective counts for each GroupByField.

      Parameters:
      groupByValues - An array of grouped values and their respective counts for each GroupByField.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • groupByValues

      GroupByResult.Builder groupByValues(GroupByValue... groupByValues)

      An array of grouped values and their respective counts for each GroupByField.

      Parameters:
      groupByValues - An array of grouped values and their respective counts for each GroupByField.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • groupByValues

      GroupByResult.Builder groupByValues(Consumer<GroupByValue.Builder>... groupByValues)

      An array of grouped values and their respective counts for each GroupByField.

      This is a convenience method that creates an instance of the GroupByValue.Builder avoiding the need to create one manually via GroupByValue.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to groupByValues(List<GroupByValue>).

      Parameters:
      groupByValues - a consumer that will call methods on GroupByValue.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: