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

Amazon Inspector generates a risk score for each finding. This score helps * you to prioritize findings, to focus on the most critical findings and the most * vulnerable resources. The score uses the Common Vulnerability Scoring System * (CVSS) format. This format is a modification of the base CVSS score that the * National Vulnerability Database (NVD) provides. For more information about * severity levels, see Severity * levels for Amazon Inspector findings in the Amazon Inspector User * Guide.

See Also:

AWS * API Reference

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

The CVSS base score.

*/ inline double GetBaseScore() const{ return m_baseScore; } /** *

The CVSS base score.

*/ inline bool BaseScoreHasBeenSet() const { return m_baseScoreHasBeenSet; } /** *

The CVSS base score.

*/ inline void SetBaseScore(double value) { m_baseScoreHasBeenSet = true; m_baseScore = value; } /** *

The CVSS base score.

*/ inline CvssScore& WithBaseScore(double value) { SetBaseScore(value); return *this;} /** *

The vector string of the CVSS score.

*/ inline const Aws::String& GetScoringVector() const{ return m_scoringVector; } /** *

The vector string of the CVSS score.

*/ inline bool ScoringVectorHasBeenSet() const { return m_scoringVectorHasBeenSet; } /** *

The vector string of the CVSS score.

*/ inline void SetScoringVector(const Aws::String& value) { m_scoringVectorHasBeenSet = true; m_scoringVector = value; } /** *

The vector string of the CVSS score.

*/ inline void SetScoringVector(Aws::String&& value) { m_scoringVectorHasBeenSet = true; m_scoringVector = std::move(value); } /** *

The vector string of the CVSS score.

*/ inline void SetScoringVector(const char* value) { m_scoringVectorHasBeenSet = true; m_scoringVector.assign(value); } /** *

The vector string of the CVSS score.

*/ inline CvssScore& WithScoringVector(const Aws::String& value) { SetScoringVector(value); return *this;} /** *

The vector string of the CVSS score.

*/ inline CvssScore& WithScoringVector(Aws::String&& value) { SetScoringVector(std::move(value)); return *this;} /** *

The vector string of the CVSS score.

*/ inline CvssScore& WithScoringVector(const char* value) { SetScoringVector(value); return *this;} /** *

The CVSS version that generated the score.

*/ inline const Aws::String& GetVersion() const{ return m_version; } /** *

The CVSS version that generated the score.

*/ inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; } /** *

The CVSS version that generated the score.

*/ inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; } /** *

The CVSS version that generated the score.

*/ inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); } /** *

The CVSS version that generated the score.

*/ inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); } /** *

The CVSS version that generated the score.

*/ inline CvssScore& WithVersion(const Aws::String& value) { SetVersion(value); return *this;} /** *

The CVSS version that generated the score.

*/ inline CvssScore& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;} /** *

The CVSS version that generated the score.

*/ inline CvssScore& WithVersion(const char* value) { SetVersion(value); return *this;} /** *

The source of the CVSS score.

*/ inline const Aws::String& GetSource() const{ return m_source; } /** *

The source of the CVSS score.

*/ inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; } /** *

The source of the CVSS score.

*/ inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; } /** *

The source of the CVSS score.

*/ inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); } /** *

The source of the CVSS score.

*/ inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); } /** *

The source of the CVSS score.

*/ inline CvssScore& WithSource(const Aws::String& value) { SetSource(value); return *this;} /** *

The source of the CVSS score.

*/ inline CvssScore& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;} /** *

The source of the CVSS score.

*/ inline CvssScore& WithSource(const char* value) { SetSource(value); return *this;} private: double m_baseScore; bool m_baseScoreHasBeenSet = false; Aws::String m_scoringVector; bool m_scoringVectorHasBeenSet = false; Aws::String m_version; bool m_versionHasBeenSet = false; Aws::String m_source; bool m_sourceHasBeenSet = false; }; } // namespace Model } // namespace imagebuilder } // namespace Aws