AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CvssScoreDetails.h
1
6#pragma once
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>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace imagebuilder
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_IMAGEBUILDER_API CvssScoreDetails() = default;
38 AWS_IMAGEBUILDER_API CvssScoreDetails(Aws::Utils::Json::JsonView jsonValue);
39 AWS_IMAGEBUILDER_API CvssScoreDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetScoreSource() const { return m_scoreSource; }
48 inline bool ScoreSourceHasBeenSet() const { return m_scoreSourceHasBeenSet; }
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>
52 CvssScoreDetails& WithScoreSource(ScoreSourceT&& value) { SetScoreSource(std::forward<ScoreSourceT>(value)); return *this;}
54
56
59 inline const Aws::String& GetCvssSource() const { return m_cvssSource; }
60 inline bool CvssSourceHasBeenSet() const { return m_cvssSourceHasBeenSet; }
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>
64 CvssScoreDetails& WithCvssSource(CvssSourceT&& value) { SetCvssSource(std::forward<CvssSourceT>(value)); return *this;}
66
68
71 inline const Aws::String& GetVersion() const { return m_version; }
72 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
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>
76 CvssScoreDetails& WithVersion(VersionT&& value) { SetVersion(std::forward<VersionT>(value)); return *this;}
78
80
83 inline double GetScore() const { return m_score; }
84 inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
85 inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; }
86 inline CvssScoreDetails& WithScore(double value) { SetScore(value); return *this;}
88
90
93 inline const Aws::String& GetScoringVector() const { return m_scoringVector; }
94 inline bool ScoringVectorHasBeenSet() const { return m_scoringVectorHasBeenSet; }
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>
98 CvssScoreDetails& WithScoringVector(ScoringVectorT&& value) { SetScoringVector(std::forward<ScoringVectorT>(value)); return *this;}
100
102
106 inline const Aws::Vector<CvssScoreAdjustment>& GetAdjustments() const { return m_adjustments; }
107 inline bool AdjustmentsHasBeenSet() const { return m_adjustmentsHasBeenSet; }
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>>
111 CvssScoreDetails& WithAdjustments(AdjustmentsT&& value) { SetAdjustments(std::forward<AdjustmentsT>(value)); return *this;}
112 template<typename AdjustmentsT = CvssScoreAdjustment>
113 CvssScoreDetails& AddAdjustments(AdjustmentsT&& value) { m_adjustmentsHasBeenSet = true; m_adjustments.emplace_back(std::forward<AdjustmentsT>(value)); return *this; }
115 private:
116
117 Aws::String m_scoreSource;
118 bool m_scoreSourceHasBeenSet = false;
119
120 Aws::String m_cvssSource;
121 bool m_cvssSourceHasBeenSet = false;
122
123 Aws::String m_version;
124 bool m_versionHasBeenSet = false;
125
126 double m_score{0.0};
127 bool m_scoreHasBeenSet = false;
128
129 Aws::String m_scoringVector;
130 bool m_scoringVectorHasBeenSet = false;
131
133 bool m_adjustmentsHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace imagebuilder
138} // namespace Aws
CvssScoreDetails & AddAdjustments(AdjustmentsT &&value)
CvssScoreDetails & WithAdjustments(AdjustmentsT &&value)
CvssScoreDetails & WithScoringVector(ScoringVectorT &&value)
const Aws::String & GetCvssSource() const
AWS_IMAGEBUILDER_API CvssScoreDetails()=default
const Aws::String & GetScoreSource() const
CvssScoreDetails & WithCvssSource(CvssSourceT &&value)
void SetScoringVector(ScoringVectorT &&value)
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
CvssScoreDetails & WithVersion(VersionT &&value)
const Aws::String & GetScoringVector() const
AWS_IMAGEBUILDER_API CvssScoreDetails(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue