/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Inspector2 { namespace Model { /** *

A response that contains the results of a finding aggregation by Amazon EC2 * instance.

See Also:

AWS * API Reference

*/ class Ec2InstanceAggregationResponse { public: AWS_INSPECTOR2_API Ec2InstanceAggregationResponse(); AWS_INSPECTOR2_API Ec2InstanceAggregationResponse(Aws::Utils::Json::JsonView jsonValue); AWS_INSPECTOR2_API Ec2InstanceAggregationResponse& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The Amazon Web Services account for the Amazon EC2 instance.

*/ inline const Aws::String& GetAccountId() const{ return m_accountId; } /** *

The Amazon Web Services account for the Amazon EC2 instance.

*/ inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } /** *

The Amazon Web Services account for the Amazon EC2 instance.

*/ inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; } /** *

The Amazon Web Services account for the Amazon EC2 instance.

*/ inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); } /** *

The Amazon Web Services account for the Amazon EC2 instance.

*/ inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); } /** *

The Amazon Web Services account for the Amazon EC2 instance.

*/ inline Ec2InstanceAggregationResponse& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;} /** *

The Amazon Web Services account for the Amazon EC2 instance.

*/ inline Ec2InstanceAggregationResponse& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;} /** *

The Amazon Web Services account for the Amazon EC2 instance.

*/ inline Ec2InstanceAggregationResponse& WithAccountId(const char* value) { SetAccountId(value); return *this;} /** *

The Amazon Machine Image (AMI) of the Amazon EC2 instance.

*/ inline const Aws::String& GetAmi() const{ return m_ami; } /** *

The Amazon Machine Image (AMI) of the Amazon EC2 instance.

*/ inline bool AmiHasBeenSet() const { return m_amiHasBeenSet; } /** *

The Amazon Machine Image (AMI) of the Amazon EC2 instance.

*/ inline void SetAmi(const Aws::String& value) { m_amiHasBeenSet = true; m_ami = value; } /** *

The Amazon Machine Image (AMI) of the Amazon EC2 instance.

*/ inline void SetAmi(Aws::String&& value) { m_amiHasBeenSet = true; m_ami = std::move(value); } /** *

The Amazon Machine Image (AMI) of the Amazon EC2 instance.

*/ inline void SetAmi(const char* value) { m_amiHasBeenSet = true; m_ami.assign(value); } /** *

The Amazon Machine Image (AMI) of the Amazon EC2 instance.

*/ inline Ec2InstanceAggregationResponse& WithAmi(const Aws::String& value) { SetAmi(value); return *this;} /** *

The Amazon Machine Image (AMI) of the Amazon EC2 instance.

*/ inline Ec2InstanceAggregationResponse& WithAmi(Aws::String&& value) { SetAmi(std::move(value)); return *this;} /** *

The Amazon Machine Image (AMI) of the Amazon EC2 instance.

*/ inline Ec2InstanceAggregationResponse& WithAmi(const char* value) { SetAmi(value); return *this;} /** *

The Amazon EC2 instance ID.

*/ inline const Aws::String& GetInstanceId() const{ return m_instanceId; } /** *

The Amazon EC2 instance ID.

*/ inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; } /** *

The Amazon EC2 instance ID.

*/ inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; } /** *

The Amazon EC2 instance ID.

*/ inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); } /** *

The Amazon EC2 instance ID.

*/ inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); } /** *

The Amazon EC2 instance ID.

*/ inline Ec2InstanceAggregationResponse& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;} /** *

The Amazon EC2 instance ID.

*/ inline Ec2InstanceAggregationResponse& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;} /** *

The Amazon EC2 instance ID.

*/ inline Ec2InstanceAggregationResponse& WithInstanceId(const char* value) { SetInstanceId(value); return *this;} /** *

The tags attached to the instance.

*/ inline const Aws::Map& GetInstanceTags() const{ return m_instanceTags; } /** *

The tags attached to the instance.

*/ inline bool InstanceTagsHasBeenSet() const { return m_instanceTagsHasBeenSet; } /** *

The tags attached to the instance.

*/ inline void SetInstanceTags(const Aws::Map& value) { m_instanceTagsHasBeenSet = true; m_instanceTags = value; } /** *

The tags attached to the instance.

*/ inline void SetInstanceTags(Aws::Map&& value) { m_instanceTagsHasBeenSet = true; m_instanceTags = std::move(value); } /** *

The tags attached to the instance.

*/ inline Ec2InstanceAggregationResponse& WithInstanceTags(const Aws::Map& value) { SetInstanceTags(value); return *this;} /** *

The tags attached to the instance.

*/ inline Ec2InstanceAggregationResponse& WithInstanceTags(Aws::Map&& value) { SetInstanceTags(std::move(value)); return *this;} /** *

The tags attached to the instance.

*/ inline Ec2InstanceAggregationResponse& AddInstanceTags(const Aws::String& key, const Aws::String& value) { m_instanceTagsHasBeenSet = true; m_instanceTags.emplace(key, value); return *this; } /** *

The tags attached to the instance.

*/ inline Ec2InstanceAggregationResponse& AddInstanceTags(Aws::String&& key, const Aws::String& value) { m_instanceTagsHasBeenSet = true; m_instanceTags.emplace(std::move(key), value); return *this; } /** *

The tags attached to the instance.

*/ inline Ec2InstanceAggregationResponse& AddInstanceTags(const Aws::String& key, Aws::String&& value) { m_instanceTagsHasBeenSet = true; m_instanceTags.emplace(key, std::move(value)); return *this; } /** *

The tags attached to the instance.

*/ inline Ec2InstanceAggregationResponse& AddInstanceTags(Aws::String&& key, Aws::String&& value) { m_instanceTagsHasBeenSet = true; m_instanceTags.emplace(std::move(key), std::move(value)); return *this; } /** *

The tags attached to the instance.

*/ inline Ec2InstanceAggregationResponse& AddInstanceTags(const char* key, Aws::String&& value) { m_instanceTagsHasBeenSet = true; m_instanceTags.emplace(key, std::move(value)); return *this; } /** *

The tags attached to the instance.

*/ inline Ec2InstanceAggregationResponse& AddInstanceTags(Aws::String&& key, const char* value) { m_instanceTagsHasBeenSet = true; m_instanceTags.emplace(std::move(key), value); return *this; } /** *

The tags attached to the instance.

*/ inline Ec2InstanceAggregationResponse& AddInstanceTags(const char* key, const char* value) { m_instanceTagsHasBeenSet = true; m_instanceTags.emplace(key, value); return *this; } /** *

The number of network findings for the Amazon EC2 instance.

*/ inline long long GetNetworkFindings() const{ return m_networkFindings; } /** *

The number of network findings for the Amazon EC2 instance.

*/ inline bool NetworkFindingsHasBeenSet() const { return m_networkFindingsHasBeenSet; } /** *

The number of network findings for the Amazon EC2 instance.

*/ inline void SetNetworkFindings(long long value) { m_networkFindingsHasBeenSet = true; m_networkFindings = value; } /** *

The number of network findings for the Amazon EC2 instance.

*/ inline Ec2InstanceAggregationResponse& WithNetworkFindings(long long value) { SetNetworkFindings(value); return *this;} /** *

The operating system of the Amazon EC2 instance.

*/ inline const Aws::String& GetOperatingSystem() const{ return m_operatingSystem; } /** *

The operating system of the Amazon EC2 instance.

*/ inline bool OperatingSystemHasBeenSet() const { return m_operatingSystemHasBeenSet; } /** *

The operating system of the Amazon EC2 instance.

*/ inline void SetOperatingSystem(const Aws::String& value) { m_operatingSystemHasBeenSet = true; m_operatingSystem = value; } /** *

The operating system of the Amazon EC2 instance.

*/ inline void SetOperatingSystem(Aws::String&& value) { m_operatingSystemHasBeenSet = true; m_operatingSystem = std::move(value); } /** *

The operating system of the Amazon EC2 instance.

*/ inline void SetOperatingSystem(const char* value) { m_operatingSystemHasBeenSet = true; m_operatingSystem.assign(value); } /** *

The operating system of the Amazon EC2 instance.

*/ inline Ec2InstanceAggregationResponse& WithOperatingSystem(const Aws::String& value) { SetOperatingSystem(value); return *this;} /** *

The operating system of the Amazon EC2 instance.

*/ inline Ec2InstanceAggregationResponse& WithOperatingSystem(Aws::String&& value) { SetOperatingSystem(std::move(value)); return *this;} /** *

The operating system of the Amazon EC2 instance.

*/ inline Ec2InstanceAggregationResponse& WithOperatingSystem(const char* value) { SetOperatingSystem(value); return *this;} /** *

An object that contains the count of matched findings per severity.

*/ inline const SeverityCounts& GetSeverityCounts() const{ return m_severityCounts; } /** *

An object that contains the count of matched findings per severity.

*/ inline bool SeverityCountsHasBeenSet() const { return m_severityCountsHasBeenSet; } /** *

An object that contains the count of matched findings per severity.

*/ inline void SetSeverityCounts(const SeverityCounts& value) { m_severityCountsHasBeenSet = true; m_severityCounts = value; } /** *

An object that contains the count of matched findings per severity.

*/ inline void SetSeverityCounts(SeverityCounts&& value) { m_severityCountsHasBeenSet = true; m_severityCounts = std::move(value); } /** *

An object that contains the count of matched findings per severity.

*/ inline Ec2InstanceAggregationResponse& WithSeverityCounts(const SeverityCounts& value) { SetSeverityCounts(value); return *this;} /** *

An object that contains the count of matched findings per severity.

*/ inline Ec2InstanceAggregationResponse& WithSeverityCounts(SeverityCounts&& value) { SetSeverityCounts(std::move(value)); return *this;} private: Aws::String m_accountId; bool m_accountIdHasBeenSet = false; Aws::String m_ami; bool m_amiHasBeenSet = false; Aws::String m_instanceId; bool m_instanceIdHasBeenSet = false; Aws::Map m_instanceTags; bool m_instanceTagsHasBeenSet = false; long long m_networkFindings; bool m_networkFindingsHasBeenSet = false; Aws::String m_operatingSystem; bool m_operatingSystemHasBeenSet = false; SeverityCounts m_severityCounts; bool m_severityCountsHasBeenSet = false; }; } // namespace Model } // namespace Inspector2 } // namespace Aws