/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include CVSS scores from the advisory related to the vulnerability.See
* Also:
AWS
* API Reference
The version of CVSS for the CVSS score.
*/ inline const Aws::String& GetVersion() const{ return m_version; } /** *The version of CVSS for the CVSS score.
*/ inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; } /** *The version of CVSS for the CVSS score.
*/ inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; } /** *The version of CVSS for the CVSS score.
*/ inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); } /** *The version of CVSS for the CVSS score.
*/ inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); } /** *The version of CVSS for the CVSS score.
*/ inline Cvss& WithVersion(const Aws::String& value) { SetVersion(value); return *this;} /** *The version of CVSS for the CVSS score.
*/ inline Cvss& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;} /** *The version of CVSS for the CVSS score.
*/ inline Cvss& WithVersion(const char* value) { SetVersion(value); return *this;} /** *The base CVSS score.
*/ inline double GetBaseScore() const{ return m_baseScore; } /** *The base CVSS score.
*/ inline bool BaseScoreHasBeenSet() const { return m_baseScoreHasBeenSet; } /** *The base CVSS score.
*/ inline void SetBaseScore(double value) { m_baseScoreHasBeenSet = true; m_baseScore = value; } /** *The base CVSS score.
*/ inline Cvss& WithBaseScore(double value) { SetBaseScore(value); return *this;} /** *The base scoring vector for the CVSS score.
*/ inline const Aws::String& GetBaseVector() const{ return m_baseVector; } /** *The base scoring vector for the CVSS score.
*/ inline bool BaseVectorHasBeenSet() const { return m_baseVectorHasBeenSet; } /** *The base scoring vector for the CVSS score.
*/ inline void SetBaseVector(const Aws::String& value) { m_baseVectorHasBeenSet = true; m_baseVector = value; } /** *The base scoring vector for the CVSS score.
*/ inline void SetBaseVector(Aws::String&& value) { m_baseVectorHasBeenSet = true; m_baseVector = std::move(value); } /** *The base scoring vector for the CVSS score.
*/ inline void SetBaseVector(const char* value) { m_baseVectorHasBeenSet = true; m_baseVector.assign(value); } /** *The base scoring vector for the CVSS score.
*/ inline Cvss& WithBaseVector(const Aws::String& value) { SetBaseVector(value); return *this;} /** *The base scoring vector for the CVSS score.
*/ inline Cvss& WithBaseVector(Aws::String&& value) { SetBaseVector(std::move(value)); return *this;} /** *The base scoring vector for the CVSS score.
*/ inline Cvss& WithBaseVector(const char* value) { SetBaseVector(value); return *this;} /** *The origin of the original CVSS score and vector.
*/ inline const Aws::String& GetSource() const{ return m_source; } /** *The origin of the original CVSS score and vector.
*/ inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; } /** *The origin of the original CVSS score and vector.
*/ inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; } /** *The origin of the original CVSS score and vector.
*/ inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); } /** *The origin of the original CVSS score and vector.
*/ inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); } /** *The origin of the original CVSS score and vector.
*/ inline Cvss& WithSource(const Aws::String& value) { SetSource(value); return *this;} /** *The origin of the original CVSS score and vector.
*/ inline Cvss& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;} /** *The origin of the original CVSS score and vector.
*/ inline Cvss& WithSource(const char* value) { SetSource(value); return *this;} /** *Adjustments to the CVSS metrics.
*/ inline const Aws::VectorAdjustments to the CVSS metrics.
*/ inline bool AdjustmentsHasBeenSet() const { return m_adjustmentsHasBeenSet; } /** *Adjustments to the CVSS metrics.
*/ inline void SetAdjustments(const Aws::VectorAdjustments to the CVSS metrics.
*/ inline void SetAdjustments(Aws::VectorAdjustments to the CVSS metrics.
*/ inline Cvss& WithAdjustments(const Aws::VectorAdjustments to the CVSS metrics.
*/ inline Cvss& WithAdjustments(Aws::VectorAdjustments to the CVSS metrics.
*/ inline Cvss& AddAdjustments(const Adjustment& value) { m_adjustmentsHasBeenSet = true; m_adjustments.push_back(value); return *this; } /** *Adjustments to the CVSS metrics.
*/ inline Cvss& AddAdjustments(Adjustment&& value) { m_adjustmentsHasBeenSet = true; m_adjustments.push_back(std::move(value)); return *this; } private: Aws::String m_version; bool m_versionHasBeenSet = false; double m_baseScore; bool m_baseScoreHasBeenSet = false; Aws::String m_baseVector; bool m_baseVectorHasBeenSet = false; Aws::String m_source; bool m_sourceHasBeenSet = false; Aws::Vector