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

Information about the CVSS score.

See Also:

AWS * API Reference

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

An object that contains details about adjustment Amazon Inspector made to the * CVSS score.

*/ inline const Aws::Vector& GetAdjustments() const{ return m_adjustments; } /** *

An object that contains details about adjustment Amazon Inspector made to the * CVSS score.

*/ inline bool AdjustmentsHasBeenSet() const { return m_adjustmentsHasBeenSet; } /** *

An object that contains details about adjustment Amazon Inspector made to the * CVSS score.

*/ inline void SetAdjustments(const Aws::Vector& value) { m_adjustmentsHasBeenSet = true; m_adjustments = value; } /** *

An object that contains details about adjustment Amazon Inspector made to the * CVSS score.

*/ inline void SetAdjustments(Aws::Vector&& value) { m_adjustmentsHasBeenSet = true; m_adjustments = std::move(value); } /** *

An object that contains details about adjustment Amazon Inspector made to the * CVSS score.

*/ inline CvssScoreDetails& WithAdjustments(const Aws::Vector& value) { SetAdjustments(value); return *this;} /** *

An object that contains details about adjustment Amazon Inspector made to the * CVSS score.

*/ inline CvssScoreDetails& WithAdjustments(Aws::Vector&& value) { SetAdjustments(std::move(value)); return *this;} /** *

An object that contains details about adjustment Amazon Inspector made to the * CVSS score.

*/ inline CvssScoreDetails& AddAdjustments(const CvssScoreAdjustment& value) { m_adjustmentsHasBeenSet = true; m_adjustments.push_back(value); return *this; } /** *

An object that contains details about adjustment Amazon Inspector made to the * CVSS score.

*/ inline CvssScoreDetails& AddAdjustments(CvssScoreAdjustment&& value) { m_adjustmentsHasBeenSet = true; m_adjustments.push_back(std::move(value)); return *this; } /** *

The CVSS score.

*/ inline double GetScore() const{ return m_score; } /** *

The CVSS score.

*/ inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; } /** *

The CVSS score.

*/ inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; } /** *

The CVSS score.

*/ inline CvssScoreDetails& WithScore(double value) { SetScore(value); return *this;} /** *

The source for the CVSS score.

*/ inline const Aws::String& GetScoreSource() const{ return m_scoreSource; } /** *

The source for the CVSS score.

*/ inline bool ScoreSourceHasBeenSet() const { return m_scoreSourceHasBeenSet; } /** *

The source for the CVSS score.

*/ inline void SetScoreSource(const Aws::String& value) { m_scoreSourceHasBeenSet = true; m_scoreSource = value; } /** *

The source for the CVSS score.

*/ inline void SetScoreSource(Aws::String&& value) { m_scoreSourceHasBeenSet = true; m_scoreSource = std::move(value); } /** *

The source for the CVSS score.

*/ inline void SetScoreSource(const char* value) { m_scoreSourceHasBeenSet = true; m_scoreSource.assign(value); } /** *

The source for the CVSS score.

*/ inline CvssScoreDetails& WithScoreSource(const Aws::String& value) { SetScoreSource(value); return *this;} /** *

The source for the CVSS score.

*/ inline CvssScoreDetails& WithScoreSource(Aws::String&& value) { SetScoreSource(std::move(value)); return *this;} /** *

The source for the CVSS score.

*/ inline CvssScoreDetails& WithScoreSource(const char* value) { SetScoreSource(value); return *this;} /** *

The vector for the CVSS score.

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

The vector for the CVSS score.

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

The vector for the CVSS score.

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

The vector for the CVSS score.

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

The vector for the CVSS score.

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

The vector for the CVSS score.

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

The vector for the CVSS score.

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

The vector for the CVSS score.

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

The CVSS version used in scoring.

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

The CVSS version used in scoring.

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

The CVSS version used in scoring.

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

The CVSS version used in scoring.

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

The CVSS version used in scoring.

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

The CVSS version used in scoring.

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

The CVSS version used in scoring.

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

The CVSS version used in scoring.

*/ inline CvssScoreDetails& WithVersion(const char* value) { SetVersion(value); return *this;} private: Aws::Vector m_adjustments; bool m_adjustmentsHasBeenSet = false; double m_score; bool m_scoreHasBeenSet = false; Aws::String m_scoreSource; bool m_scoreSourceHasBeenSet = false; Aws::String m_scoringVector; bool m_scoringVectorHasBeenSet = false; Aws::String m_version; bool m_versionHasBeenSet = false; }; } // namespace Model } // namespace ECR } // namespace Aws