7#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/imagebuilder/model/CvssScoreAdjustment.h>
49 template<
typename ScoreSourceT = Aws::String>
50 void SetScoreSource(ScoreSourceT&& value) { m_scoreSourceHasBeenSet =
true; m_scoreSource = std::forward<ScoreSourceT>(value); }
51 template<
typename ScoreSourceT = Aws::String>
61 template<
typename CvssSourceT = Aws::String>
62 void SetCvssSource(CvssSourceT&& value) { m_cvssSourceHasBeenSet =
true; m_cvssSource = std::forward<CvssSourceT>(value); }
63 template<
typename CvssSourceT = Aws::String>
73 template<
typename VersionT = Aws::String>
74 void SetVersion(VersionT&& value) { m_versionHasBeenSet =
true; m_version = std::forward<VersionT>(value); }
75 template<
typename VersionT = Aws::String>
83 inline double GetScore()
const {
return m_score; }
85 inline void SetScore(
double value) { m_scoreHasBeenSet =
true; m_score = value; }
95 template<
typename ScoringVectorT = Aws::String>
96 void SetScoringVector(ScoringVectorT&& value) { m_scoringVectorHasBeenSet =
true; m_scoringVector = std::forward<ScoringVectorT>(value); }
97 template<
typename ScoringVectorT = Aws::String>
108 template<
typename AdjustmentsT = Aws::Vector<CvssScoreAdjustment>>
109 void SetAdjustments(AdjustmentsT&& value) { m_adjustmentsHasBeenSet =
true; m_adjustments = std::forward<AdjustmentsT>(value); }
110 template<
typename AdjustmentsT = Aws::Vector<CvssScoreAdjustment>>
112 template<
typename AdjustmentsT = CvssScoreAdjustment>
113 CvssScoreDetails&
AddAdjustments(AdjustmentsT&& value) { m_adjustmentsHasBeenSet =
true; m_adjustments.emplace_back(std::forward<AdjustmentsT>(value));
return *
this; }
118 bool m_scoreSourceHasBeenSet =
false;
121 bool m_cvssSourceHasBeenSet =
false;
124 bool m_versionHasBeenSet =
false;
127 bool m_scoreHasBeenSet =
false;
130 bool m_scoringVectorHasBeenSet =
false;
133 bool m_adjustmentsHasBeenSet =
false;
bool ScoreHasBeenSet() const
CvssScoreDetails & AddAdjustments(AdjustmentsT &&value)
CvssScoreDetails & WithAdjustments(AdjustmentsT &&value)
bool CvssSourceHasBeenSet() const
void SetScoreSource(ScoreSourceT &&value)
bool VersionHasBeenSet() const
CvssScoreDetails & WithScoringVector(ScoringVectorT &&value)
const Aws::String & GetCvssSource() const
AWS_IMAGEBUILDER_API CvssScoreDetails()=default
const Aws::String & GetScoreSource() const
bool AdjustmentsHasBeenSet() const
bool ScoringVectorHasBeenSet() const
CvssScoreDetails & WithCvssSource(CvssSourceT &&value)
void SetScoringVector(ScoringVectorT &&value)
bool ScoreSourceHasBeenSet() const
AWS_IMAGEBUILDER_API CvssScoreDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
CvssScoreDetails & WithScore(double value)
const Aws::Vector< CvssScoreAdjustment > & GetAdjustments() const
CvssScoreDetails & WithScoreSource(ScoreSourceT &&value)
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAdjustments(AdjustmentsT &&value)
CvssScoreDetails & WithVersion(VersionT &&value)
const Aws::String & GetVersion() const
const Aws::String & GetScoringVector() const
void SetVersion(VersionT &&value)
AWS_IMAGEBUILDER_API CvssScoreDetails(Aws::Utils::Json::JsonView jsonValue)
void SetScore(double value)
void SetCvssSource(CvssSourceT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue