Interface AmiAggregationResponse.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AmiAggregationResponse.Builder,
,AmiAggregationResponse> SdkBuilder<AmiAggregationResponse.Builder,
,AmiAggregationResponse> SdkPojo
- Enclosing class:
AmiAggregationResponse
public static interface AmiAggregationResponse.Builder
extends SdkPojo, CopyableBuilder<AmiAggregationResponse.Builder,AmiAggregationResponse>
-
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Web Services account ID for the AMI.affectedInstances
(Long affectedInstances) The IDs of Amazon EC2 instances using this AMI.The ID of the AMI that findings were aggregated for.default AmiAggregationResponse.Builder
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 Amazon Web Services account ID for the AMI.
- Parameters:
accountId
- The Amazon Web Services account ID for the AMI.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
affectedInstances
The IDs of Amazon EC2 instances using this AMI.
- Parameters:
affectedInstances
- The IDs of Amazon EC2 instances using this AMI.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ami
The ID of the AMI that findings were aggregated for.
- Parameters:
ami
- The ID of the AMI that findings were aggregated for.- 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 AmiAggregationResponse.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:
-