Interface GetResourcesStatisticsV2Response.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetResourcesStatisticsV2Response.Builder,
,GetResourcesStatisticsV2Response> SdkBuilder<GetResourcesStatisticsV2Response.Builder,
,GetResourcesStatisticsV2Response> SdkPojo
,SdkResponse.Builder
,SecurityHubResponse.Builder
- Enclosing class:
GetResourcesStatisticsV2Response
@Mutable
@NotThreadSafe
public static interface GetResourcesStatisticsV2Response.Builder
extends SecurityHubResponse.Builder, SdkPojo, CopyableBuilder<GetResourcesStatisticsV2Response.Builder,GetResourcesStatisticsV2Response>
-
Method Summary
Modifier and TypeMethodDescriptiongroupByResults
(Collection<GroupByResult> groupByResults) The aggregated statistics about resources based on the specified grouping rule.groupByResults
(Consumer<GroupByResult.Builder>... groupByResults) The aggregated statistics about resources based on the specified grouping rule.groupByResults
(GroupByResult... groupByResults) The aggregated statistics about resources based on the specified grouping rule.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
Methods inherited from interface software.amazon.awssdk.services.securityhub.model.SecurityHubResponse.Builder
build, responseMetadata, responseMetadata
-
Method Details
-
groupByResults
The aggregated statistics about resources based on the specified grouping rule.
- Parameters:
groupByResults
- The aggregated statistics about resources based on the specified grouping rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groupByResults
The aggregated statistics about resources based on the specified grouping rule.
- Parameters:
groupByResults
- The aggregated statistics about resources based on the specified grouping rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groupByResults
GetResourcesStatisticsV2Response.Builder groupByResults(Consumer<GroupByResult.Builder>... groupByResults) The aggregated statistics about resources based on the specified grouping rule.
This is a convenience method that creates an instance of theGroupByResult.Builder
avoiding the need to create one manually viaGroupByResult.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed togroupByResults(List<GroupByResult>)
.- Parameters:
groupByResults
- a consumer that will call methods onGroupByResult.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-