Interface Ec2InstanceAggregationResponse.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Ec2InstanceAggregationResponse.Builder,
,Ec2InstanceAggregationResponse> SdkBuilder<Ec2InstanceAggregationResponse.Builder,
,Ec2InstanceAggregationResponse> SdkPojo
- Enclosing class:
Ec2InstanceAggregationResponse
@Mutable
@NotThreadSafe
public static interface Ec2InstanceAggregationResponse.Builder
extends SdkPojo, CopyableBuilder<Ec2InstanceAggregationResponse.Builder,Ec2InstanceAggregationResponse>
-
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Web Services account for the Amazon EC2 instance.The Amazon Machine Image (AMI) of the Amazon EC2 instance.instanceId
(String instanceId) The Amazon EC2 instance ID.instanceTags
(Map<String, String> instanceTags) The tags attached to the instance.networkFindings
(Long networkFindings) The number of network findings for the Amazon EC2 instance.operatingSystem
(String operatingSystem) The operating system of the Amazon EC2 instance.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, sdkFieldNameToField, sdkFields
-
Method Details
-
accountId
The Amazon Web Services account for the Amazon EC2 instance.
- Parameters:
accountId
- The Amazon Web Services account for the Amazon EC2 instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ami
The Amazon Machine Image (AMI) of the Amazon EC2 instance.
- Parameters:
ami
- The Amazon Machine Image (AMI) of the Amazon EC2 instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceId
The Amazon EC2 instance ID.
- Parameters:
instanceId
- The Amazon EC2 instance ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceTags
The tags attached to the instance.
- Parameters:
instanceTags
- The tags attached to the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkFindings
The number of network findings for the Amazon EC2 instance.
- Parameters:
networkFindings
- The number of network findings for the Amazon EC2 instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
operatingSystem
The operating system of the Amazon EC2 instance.
- Parameters:
operatingSystem
- The operating system of the Amazon EC2 instance.- 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 Ec2InstanceAggregationResponse.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:
-