7#include <aws/ecr/ECR_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ecr/model/CvssScoreAdjustment.h>
49 template<
typename AdjustmentsT = Aws::Vector<CvssScoreAdjustment>>
50 void SetAdjustments(AdjustmentsT&& value) { m_adjustmentsHasBeenSet =
true; m_adjustments = std::forward<AdjustmentsT>(value); }
51 template<
typename AdjustmentsT = Aws::Vector<CvssScoreAdjustment>>
53 template<
typename AdjustmentsT = CvssScoreAdjustment>
54 CvssScoreDetails&
AddAdjustments(AdjustmentsT&& value) { m_adjustmentsHasBeenSet =
true; m_adjustments.emplace_back(std::forward<AdjustmentsT>(value));
return *
this; }
61 inline double GetScore()
const {
return m_score; }
63 inline void SetScore(
double value) { m_scoreHasBeenSet =
true; m_score = value; }
73 template<
typename ScoreSourceT = Aws::String>
74 void SetScoreSource(ScoreSourceT&& value) { m_scoreSourceHasBeenSet =
true; m_scoreSource = std::forward<ScoreSourceT>(value); }
75 template<
typename ScoreSourceT = Aws::String>
85 template<
typename ScoringVectorT = Aws::String>
86 void SetScoringVector(ScoringVectorT&& value) { m_scoringVectorHasBeenSet =
true; m_scoringVector = std::forward<ScoringVectorT>(value); }
87 template<
typename ScoringVectorT = Aws::String>
97 template<
typename VersionT = Aws::String>
98 void SetVersion(VersionT&& value) { m_versionHasBeenSet =
true; m_version = std::forward<VersionT>(value); }
99 template<
typename VersionT = Aws::String>
105 bool m_adjustmentsHasBeenSet =
false;
108 bool m_scoreHasBeenSet =
false;
111 bool m_scoreSourceHasBeenSet =
false;
114 bool m_scoringVectorHasBeenSet =
false;
117 bool m_versionHasBeenSet =
false;
bool ScoringVectorHasBeenSet() const
AWS_ECR_API CvssScoreDetails(Aws::Utils::Json::JsonView jsonValue)
void SetScore(double value)
const Aws::String & GetScoreSource() const
bool ScoreHasBeenSet() const
const Aws::String & GetVersion() const
CvssScoreDetails & WithScore(double value)
AWS_ECR_API CvssScoreDetails()=default
void SetAdjustments(AdjustmentsT &&value)
void SetVersion(VersionT &&value)
bool ScoreSourceHasBeenSet() const
bool VersionHasBeenSet() const
bool AdjustmentsHasBeenSet() const
void SetScoringVector(ScoringVectorT &&value)
AWS_ECR_API CvssScoreDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetScoringVector() const
CvssScoreDetails & WithScoreSource(ScoreSourceT &&value)
CvssScoreDetails & AddAdjustments(AdjustmentsT &&value)
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< CvssScoreAdjustment > & GetAdjustments() const
CvssScoreDetails & WithVersion(VersionT &&value)
CvssScoreDetails & WithScoringVector(ScoringVectorT &&value)
void SetScoreSource(ScoreSourceT &&value)
CvssScoreDetails & WithAdjustments(AdjustmentsT &&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