Interface Ec2InstanceAggregationResponse.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Ec2InstanceAggregationResponse.Builder,Ec2InstanceAggregationResponse>,SdkBuilder<Ec2InstanceAggregationResponse.Builder,Ec2InstanceAggregationResponse>,SdkPojo
- Enclosing class:
- Ec2InstanceAggregationResponse
public static interface Ec2InstanceAggregationResponse.Builder extends SdkPojo, CopyableBuilder<Ec2InstanceAggregationResponse.Builder,Ec2InstanceAggregationResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Ec2InstanceAggregationResponse.BuilderaccountId(String accountId)The Amazon Web Services account for the Amazon EC2 instance.Ec2InstanceAggregationResponse.Builderami(String ami)The Amazon Machine Image (AMI) of the Amazon EC2 instance.Ec2InstanceAggregationResponse.BuilderinstanceId(String instanceId)The Amazon EC2 instance ID.Ec2InstanceAggregationResponse.BuilderinstanceTags(Map<String,String> instanceTags)The tags attached to the instance.Ec2InstanceAggregationResponse.BuildernetworkFindings(Long networkFindings)The number of network findings for the Amazon EC2 instance.Ec2InstanceAggregationResponse.BuilderoperatingSystem(String operatingSystem)The operating system of the Amazon EC2 instance.default Ec2InstanceAggregationResponse.BuilderseverityCounts(Consumer<SeverityCounts.Builder> severityCounts)An object that contains the count of matched findings per severity.Ec2InstanceAggregationResponse.BuilderseverityCounts(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 Detail
-
accountId
Ec2InstanceAggregationResponse.Builder accountId(String 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
Ec2InstanceAggregationResponse.Builder ami(String 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
Ec2InstanceAggregationResponse.Builder instanceId(String 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
Ec2InstanceAggregationResponse.Builder instanceTags(Map<String,String> 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
Ec2InstanceAggregationResponse.Builder networkFindings(Long 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
Ec2InstanceAggregationResponse.Builder operatingSystem(String 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
Ec2InstanceAggregationResponse.Builder severityCounts(SeverityCounts 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.Builderavoiding the need to create one manually viaSeverityCounts.builder().When the
Consumercompletes,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:
severityCounts(SeverityCounts)
-
-