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

The Common Vulnerability Scoring System (CVSS) version 2 details for the * vulnerability.

See Also:

AWS * API Reference

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

The CVSS v2 base score for the vulnerability.

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

The CVSS v2 base score for the vulnerability.

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

The CVSS v2 base score for the vulnerability.

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

The CVSS v2 base score for the vulnerability.

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

The scoring vector associated with the CVSS v2 score.

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

The scoring vector associated with the CVSS v2 score.

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

The scoring vector associated with the CVSS v2 score.

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

The scoring vector associated with the CVSS v2 score.

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

The scoring vector associated with the CVSS v2 score.

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

The scoring vector associated with the CVSS v2 score.

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

The scoring vector associated with the CVSS v2 score.

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

The scoring vector associated with the CVSS v2 score.

*/ inline Cvss2& WithScoringVector(const char* value) { SetScoringVector(value); return *this;} private: double m_baseScore; bool m_baseScoreHasBeenSet = false; Aws::String m_scoringVector; bool m_scoringVectorHasBeenSet = false; }; } // namespace Model } // namespace Inspector2 } // namespace Aws