/** * 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 imagebuilder { namespace Model { /** *

Contains vulnerability counts for a specific image.

See Also:

* AWS * API Reference

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

The Amazon Resource Name (ARN) that identifies the image for this * aggregation.

*/ inline const Aws::String& GetImageBuildVersionArn() const{ return m_imageBuildVersionArn; } /** *

The Amazon Resource Name (ARN) that identifies the image for this * aggregation.

*/ inline bool ImageBuildVersionArnHasBeenSet() const { return m_imageBuildVersionArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) that identifies the image for this * aggregation.

*/ inline void SetImageBuildVersionArn(const Aws::String& value) { m_imageBuildVersionArnHasBeenSet = true; m_imageBuildVersionArn = value; } /** *

The Amazon Resource Name (ARN) that identifies the image for this * aggregation.

*/ inline void SetImageBuildVersionArn(Aws::String&& value) { m_imageBuildVersionArnHasBeenSet = true; m_imageBuildVersionArn = std::move(value); } /** *

The Amazon Resource Name (ARN) that identifies the image for this * aggregation.

*/ inline void SetImageBuildVersionArn(const char* value) { m_imageBuildVersionArnHasBeenSet = true; m_imageBuildVersionArn.assign(value); } /** *

The Amazon Resource Name (ARN) that identifies the image for this * aggregation.

*/ inline ImageAggregation& WithImageBuildVersionArn(const Aws::String& value) { SetImageBuildVersionArn(value); return *this;} /** *

The Amazon Resource Name (ARN) that identifies the image for this * aggregation.

*/ inline ImageAggregation& WithImageBuildVersionArn(Aws::String&& value) { SetImageBuildVersionArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) that identifies the image for this * aggregation.

*/ inline ImageAggregation& WithImageBuildVersionArn(const char* value) { SetImageBuildVersionArn(value); return *this;} /** *

Counts by severity level for medium severity and higher level findings, plus * a total for all of the findings for the specified image.

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

Counts by severity level for medium severity and higher level findings, plus * a total for all of the findings for the specified image.

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

Counts by severity level for medium severity and higher level findings, plus * a total for all of the findings for the specified image.

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

Counts by severity level for medium severity and higher level findings, plus * a total for all of the findings for the specified image.

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

Counts by severity level for medium severity and higher level findings, plus * a total for all of the findings for the specified image.

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

Counts by severity level for medium severity and higher level findings, plus * a total for all of the findings for the specified image.

*/ inline ImageAggregation& WithSeverityCounts(SeverityCounts&& value) { SetSeverityCounts(std::move(value)); return *this;} private: Aws::String m_imageBuildVersionArn; bool m_imageBuildVersionArnHasBeenSet = false; SeverityCounts m_severityCounts; bool m_severityCountsHasBeenSet = false; }; } // namespace Model } // namespace imagebuilder } // namespace Aws