/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Details about the source of the score, and the factors that determined the
* adjustments to create the final score.See Also:
AWS
* API Reference
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 source of the finding.
*/ inline const Aws::String& GetCvssSource() const{ return m_cvssSource; } /** *The source of the finding.
*/ inline bool CvssSourceHasBeenSet() const { return m_cvssSourceHasBeenSet; } /** *The source of the finding.
*/ inline void SetCvssSource(const Aws::String& value) { m_cvssSourceHasBeenSet = true; m_cvssSource = value; } /** *The source of the finding.
*/ inline void SetCvssSource(Aws::String&& value) { m_cvssSourceHasBeenSet = true; m_cvssSource = std::move(value); } /** *The source of the finding.
*/ inline void SetCvssSource(const char* value) { m_cvssSourceHasBeenSet = true; m_cvssSource.assign(value); } /** *The source of the finding.
*/ inline CvssScoreDetails& WithCvssSource(const Aws::String& value) { SetCvssSource(value); return *this;} /** *The source of the finding.
*/ inline CvssScoreDetails& WithCvssSource(Aws::String&& value) { SetCvssSource(std::move(value)); return *this;} /** *The source of the finding.
*/ inline CvssScoreDetails& WithCvssSource(const char* value) { SetCvssSource(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 CvssScoreDetails& WithVersion(const Aws::String& value) { SetVersion(value); return *this;} /** *The CVSS version that generated the score.
*/ inline CvssScoreDetails& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;} /** *The CVSS version that generated the score.
*/ inline CvssScoreDetails& WithVersion(const char* value) { SetVersion(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;} /** *A vector that measures the severity of the vulnerability.
*/ inline const Aws::String& GetScoringVector() const{ return m_scoringVector; } /** *A vector that measures the severity of the vulnerability.
*/ inline bool ScoringVectorHasBeenSet() const { return m_scoringVectorHasBeenSet; } /** *A vector that measures the severity of the vulnerability.
*/ inline void SetScoringVector(const Aws::String& value) { m_scoringVectorHasBeenSet = true; m_scoringVector = value; } /** *A vector that measures the severity of the vulnerability.
*/ inline void SetScoringVector(Aws::String&& value) { m_scoringVectorHasBeenSet = true; m_scoringVector = std::move(value); } /** *A vector that measures the severity of the vulnerability.
*/ inline void SetScoringVector(const char* value) { m_scoringVectorHasBeenSet = true; m_scoringVector.assign(value); } /** *A vector that measures the severity of the vulnerability.
*/ inline CvssScoreDetails& WithScoringVector(const Aws::String& value) { SetScoringVector(value); return *this;} /** *A vector that measures the severity of the vulnerability.
*/ inline CvssScoreDetails& WithScoringVector(Aws::String&& value) { SetScoringVector(std::move(value)); return *this;} /** *A vector that measures the severity of the vulnerability.
*/ inline CvssScoreDetails& WithScoringVector(const char* value) { SetScoringVector(value); return *this;} /** *An object that contains details about an adjustment that Amazon Inspector * made to the CVSS score for the finding.
*/ inline const Aws::VectorAn object that contains details about an adjustment that Amazon Inspector * made to the CVSS score for the finding.
*/ inline bool AdjustmentsHasBeenSet() const { return m_adjustmentsHasBeenSet; } /** *An object that contains details about an adjustment that Amazon Inspector * made to the CVSS score for the finding.
*/ inline void SetAdjustments(const Aws::VectorAn object that contains details about an adjustment that Amazon Inspector * made to the CVSS score for the finding.
*/ inline void SetAdjustments(Aws::VectorAn object that contains details about an adjustment that Amazon Inspector * made to the CVSS score for the finding.
*/ inline CvssScoreDetails& WithAdjustments(const Aws::VectorAn object that contains details about an adjustment that Amazon Inspector * made to the CVSS score for the finding.
*/ inline CvssScoreDetails& WithAdjustments(Aws::VectorAn object that contains details about an adjustment that Amazon Inspector * made to the CVSS score for the finding.
*/ inline CvssScoreDetails& AddAdjustments(const CvssScoreAdjustment& value) { m_adjustmentsHasBeenSet = true; m_adjustments.push_back(value); return *this; } /** *An object that contains details about an adjustment that Amazon Inspector * made to the CVSS score for the finding.
*/ inline CvssScoreDetails& AddAdjustments(CvssScoreAdjustment&& value) { m_adjustmentsHasBeenSet = true; m_adjustments.push_back(std::move(value)); return *this; } private: Aws::String m_scoreSource; bool m_scoreSourceHasBeenSet = false; Aws::String m_cvssSource; bool m_cvssSourceHasBeenSet = false; Aws::String m_version; bool m_versionHasBeenSet = false; double m_score; bool m_scoreHasBeenSet = false; Aws::String m_scoringVector; bool m_scoringVectorHasBeenSet = false; Aws::Vector