/** * 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 { /** *

Includes counts of image and pipeline resource findings by * vulnerability.

See Also:

AWS * API Reference

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

The vulnerability Id for this set of counts.

*/ inline const Aws::String& GetVulnerabilityId() const{ return m_vulnerabilityId; } /** *

The vulnerability Id for this set of counts.

*/ inline bool VulnerabilityIdHasBeenSet() const { return m_vulnerabilityIdHasBeenSet; } /** *

The vulnerability Id for this set of counts.

*/ inline void SetVulnerabilityId(const Aws::String& value) { m_vulnerabilityIdHasBeenSet = true; m_vulnerabilityId = value; } /** *

The vulnerability Id for this set of counts.

*/ inline void SetVulnerabilityId(Aws::String&& value) { m_vulnerabilityIdHasBeenSet = true; m_vulnerabilityId = std::move(value); } /** *

The vulnerability Id for this set of counts.

*/ inline void SetVulnerabilityId(const char* value) { m_vulnerabilityIdHasBeenSet = true; m_vulnerabilityId.assign(value); } /** *

The vulnerability Id for this set of counts.

*/ inline VulnerabilityIdAggregation& WithVulnerabilityId(const Aws::String& value) { SetVulnerabilityId(value); return *this;} /** *

The vulnerability Id for this set of counts.

*/ inline VulnerabilityIdAggregation& WithVulnerabilityId(Aws::String&& value) { SetVulnerabilityId(std::move(value)); return *this;} /** *

The vulnerability Id for this set of counts.

*/ inline VulnerabilityIdAggregation& WithVulnerabilityId(const char* value) { SetVulnerabilityId(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 vulnerability.

*/ 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 vulnerability.

*/ 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 vulnerability.

*/ 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 vulnerability.

*/ 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 vulnerability.

*/ inline VulnerabilityIdAggregation& 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 vulnerability.

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