/** * 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 image * layer.

See Also:

AWS * API Reference

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

The ID of the Amazon Web Services account associated with the findings.

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

The ID of the Amazon Web Services account associated with the findings.

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

The ID of the Amazon Web Services account associated with the findings.

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

The ID of the Amazon Web Services account associated with the findings.

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

The ID of the Amazon Web Services account associated with the findings.

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

The ID of the Amazon Web Services account associated with the findings.

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

The ID of the Amazon Web Services account associated with the findings.

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

The ID of the Amazon Web Services account associated with the findings.

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

The name of the operating system package.

*/ inline const Aws::String& GetPackageName() const{ return m_packageName; } /** *

The name of the operating system package.

*/ inline bool PackageNameHasBeenSet() const { return m_packageNameHasBeenSet; } /** *

The name of the operating system package.

*/ inline void SetPackageName(const Aws::String& value) { m_packageNameHasBeenSet = true; m_packageName = value; } /** *

The name of the operating system package.

*/ inline void SetPackageName(Aws::String&& value) { m_packageNameHasBeenSet = true; m_packageName = std::move(value); } /** *

The name of the operating system package.

*/ inline void SetPackageName(const char* value) { m_packageNameHasBeenSet = true; m_packageName.assign(value); } /** *

The name of the operating system package.

*/ inline PackageAggregationResponse& WithPackageName(const Aws::String& value) { SetPackageName(value); return *this;} /** *

The name of the operating system package.

*/ inline PackageAggregationResponse& WithPackageName(Aws::String&& value) { SetPackageName(std::move(value)); return *this;} /** *

The name of the operating system package.

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

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

*/ inline PackageAggregationResponse& WithSeverityCounts(SeverityCounts&& value) { SetSeverityCounts(std::move(value)); return *this;} private: Aws::String m_accountId; bool m_accountIdHasBeenSet = false; Aws::String m_packageName; bool m_packageNameHasBeenSet = false; SeverityCounts m_severityCounts; bool m_severityCountsHasBeenSet = false; }; } // namespace Model } // namespace Inspector2 } // namespace Aws