public void setEc2InstanceAggregation(Ec2InstanceAggregationResponse ec2InstanceAggregation) {
        this.ec2InstanceAggregation = ec2InstanceAggregation;
    }
<p>
An object that contains details about an aggregation response based on Amazon EC2 instances.
</p>

@param ec2InstanceAggregation
       An object that contains details about an aggregation response based on Amazon EC2 instances.
aws-java-sdk-inspector2/src/main/java/com/amazonaws/services/inspector2/model/AggregationResponse.java