Interface PackageAggregationResponse.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<PackageAggregationResponse.Builder,
,PackageAggregationResponse> SdkBuilder<PackageAggregationResponse.Builder,
,PackageAggregationResponse> SdkPojo
- Enclosing class:
PackageAggregationResponse
public static interface PackageAggregationResponse.Builder
extends SdkPojo, CopyableBuilder<PackageAggregationResponse.Builder,PackageAggregationResponse>
-
Method Summary
Modifier and TypeMethodDescriptionThe ID of the Amazon Web Services account associated with the findings.packageName
(String packageName) The name of the operating system package.severityCounts
(Consumer<SeverityCounts.Builder> severityCounts) An object that contains the count of matched findings per severity.severityCounts
(SeverityCounts severityCounts) An object that contains the count of matched findings per severity.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, sdkFields
-
Method Details
-
accountId
The ID of the Amazon Web Services account associated with the findings.
- Parameters:
accountId
- The ID of the Amazon Web Services account associated with the findings.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
packageName
The name of the operating system package.
- Parameters:
packageName
- The name of the operating system package.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
severityCounts
An object that contains the count of matched findings per severity.
- Parameters:
severityCounts
- An object that contains the count of matched findings per severity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
severityCounts
default PackageAggregationResponse.Builder severityCounts(Consumer<SeverityCounts.Builder> severityCounts) An object that contains the count of matched findings per severity.
This is a convenience method that creates an instance of theSeverityCounts.Builder
avoiding the need to create one manually viaSeverityCounts.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toseverityCounts(SeverityCounts)
.- Parameters:
severityCounts
- a consumer that will call methods onSeverityCounts.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-