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

The CVSS score for a finding.

See Also:

AWS API * Reference

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

The base CVSS score used for the finding.

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

The base CVSS score used for the finding.

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

The base CVSS score used for the finding.

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

The base CVSS score used for the finding.

*/ 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 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;} /** *

The version of CVSS used for the score.

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

The version of CVSS used for the score.

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

The version of CVSS used for the score.

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

The version of CVSS used for the score.

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

The version of CVSS used for the score.

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

The version of CVSS used for the score.

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

The version of CVSS used for the score.

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

The version of CVSS used for the score.

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