/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #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 * AMI.

See Also:

AWS * API Reference

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

The Amazon Web Services account ID for the AMI.

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

The Amazon Web Services account ID for the AMI.

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

The Amazon Web Services account ID for the AMI.

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

The Amazon Web Services account ID for the AMI.

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

The Amazon Web Services account ID for the AMI.

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

The Amazon Web Services account ID for the AMI.

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

The Amazon Web Services account ID for the AMI.

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

The Amazon Web Services account ID for the AMI.

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

The IDs of Amazon EC2 instances using this AMI.

*/ inline long long GetAffectedInstances() const{ return m_affectedInstances; } /** *

The IDs of Amazon EC2 instances using this AMI.

*/ inline bool AffectedInstancesHasBeenSet() const { return m_affectedInstancesHasBeenSet; } /** *

The IDs of Amazon EC2 instances using this AMI.

*/ inline void SetAffectedInstances(long long value) { m_affectedInstancesHasBeenSet = true; m_affectedInstances = value; } /** *

The IDs of Amazon EC2 instances using this AMI.

*/ inline AmiAggregationResponse& WithAffectedInstances(long long value) { SetAffectedInstances(value); return *this;} /** *

The ID of the AMI that findings were aggregated for.

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

The ID of the AMI that findings were aggregated for.

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

The ID of the AMI that findings were aggregated for.

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

The ID of the AMI that findings were aggregated for.

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

The ID of the AMI that findings were aggregated for.

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

The ID of the AMI that findings were aggregated for.

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

The ID of the AMI that findings were aggregated for.

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

The ID of the AMI that findings were aggregated for.

*/ inline AmiAggregationResponse& WithAmi(const char* value) { SetAmi(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 AmiAggregationResponse& WithSeverityCounts(const SeverityCounts& value) { SetSeverityCounts(value); return *this;} /** *

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

*/ inline AmiAggregationResponse& WithSeverityCounts(SeverityCounts&& value) { SetSeverityCounts(std::move(value)); return *this;} private: Aws::String m_accountId; bool m_accountIdHasBeenSet = false; long long m_affectedInstances; bool m_affectedInstancesHasBeenSet = false; Aws::String m_ami; bool m_amiHasBeenSet = false; SeverityCounts m_severityCounts; bool m_severityCountsHasBeenSet = false; }; } // namespace Model } // namespace Inspector2 } // namespace Aws