Interface GroupByResult.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<GroupByResult.Builder,,GroupByResult> SdkBuilder<GroupByResult.Builder,,GroupByResult> SdkPojo
- Enclosing class:
GroupByResult
@Mutable
@NotThreadSafe
public static interface GroupByResult.Builder
extends SdkPojo, CopyableBuilder<GroupByResult.Builder,GroupByResult>
-
Method Summary
Modifier and TypeMethodDescriptiongroupByField(String groupByField) The attribute by which filtered security findings should be grouped.groupByValues(Collection<GroupByValue> groupByValues) An array of grouped values and their respective counts for eachGroupByField.groupByValues(Consumer<GroupByValue.Builder>... groupByValues) An array of grouped values and their respective counts for eachGroupByField.groupByValues(GroupByValue... groupByValues) An array of grouped values and their respective counts for eachGroupByField.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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
An array of grouped values and their respective counts for each
GroupByField.- Parameters:
groupByValues- An array of grouped values and their respective counts for eachGroupByField.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 eachGroupByField.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groupByValues
An array of grouped values and their respective counts for each
This is a convenience method that creates an instance of theGroupByField.GroupByValue.Builderavoiding the need to create one manually viaGroupByValue.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed togroupByValues(List<GroupByValue>).- Parameters:
groupByValues- a consumer that will call methods onGroupByValue.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-