AWS SDK for C++

AWS SDK for C++ Version 1.11.902

Loading...
Searching...
No Matches
CvssScore.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace imagebuilder {
20namespace Model {
21
30class CvssScore {
31 public:
32 AWS_IMAGEBUILDER_API CvssScore() = default;
33 AWS_IMAGEBUILDER_API CvssScore(Aws::Utils::Json::JsonView jsonValue);
34 AWS_IMAGEBUILDER_API CvssScore& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline double GetBaseScore() const { return m_baseScore; }
42 inline bool BaseScoreHasBeenSet() const { return m_baseScoreHasBeenSet; }
43 inline void SetBaseScore(double value) {
44 m_baseScoreHasBeenSet = true;
45 m_baseScore = value;
46 }
47 inline CvssScore& WithBaseScore(double value) {
48 SetBaseScore(value);
49 return *this;
50 }
52
54
57 inline const Aws::String& GetScoringVector() const { return m_scoringVector; }
58 inline bool ScoringVectorHasBeenSet() const { return m_scoringVectorHasBeenSet; }
59 template <typename ScoringVectorT = Aws::String>
60 void SetScoringVector(ScoringVectorT&& value) {
61 m_scoringVectorHasBeenSet = true;
62 m_scoringVector = std::forward<ScoringVectorT>(value);
63 }
64 template <typename ScoringVectorT = Aws::String>
65 CvssScore& WithScoringVector(ScoringVectorT&& value) {
66 SetScoringVector(std::forward<ScoringVectorT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetVersion() const { return m_version; }
76 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
77 template <typename VersionT = Aws::String>
78 void SetVersion(VersionT&& value) {
79 m_versionHasBeenSet = true;
80 m_version = std::forward<VersionT>(value);
81 }
82 template <typename VersionT = Aws::String>
83 CvssScore& WithVersion(VersionT&& value) {
84 SetVersion(std::forward<VersionT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetSource() const { return m_source; }
94 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
95 template <typename SourceT = Aws::String>
96 void SetSource(SourceT&& value) {
97 m_sourceHasBeenSet = true;
98 m_source = std::forward<SourceT>(value);
99 }
100 template <typename SourceT = Aws::String>
101 CvssScore& WithSource(SourceT&& value) {
102 SetSource(std::forward<SourceT>(value));
103 return *this;
104 }
106 private:
107 double m_baseScore{0.0};
108
109 Aws::String m_scoringVector;
110
111 Aws::String m_version;
112
113 Aws::String m_source;
114 bool m_baseScoreHasBeenSet = false;
115 bool m_scoringVectorHasBeenSet = false;
116 bool m_versionHasBeenSet = false;
117 bool m_sourceHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace imagebuilder
122} // namespace Aws
void SetVersion(VersionT &&value)
Definition CvssScore.h:78
AWS_IMAGEBUILDER_API CvssScore & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetSource() const
Definition CvssScore.h:93
const Aws::String & GetScoringVector() const
Definition CvssScore.h:57
CvssScore & WithSource(SourceT &&value)
Definition CvssScore.h:101
void SetScoringVector(ScoringVectorT &&value)
Definition CvssScore.h:60
AWS_IMAGEBUILDER_API CvssScore()=default
void SetBaseScore(double value)
Definition CvssScore.h:43
CvssScore & WithBaseScore(double value)
Definition CvssScore.h:47
AWS_IMAGEBUILDER_API CvssScore(Aws::Utils::Json::JsonView jsonValue)
CvssScore & WithScoringVector(ScoringVectorT &&value)
Definition CvssScore.h:65
CvssScore & WithVersion(VersionT &&value)
Definition CvssScore.h:83
void SetSource(SourceT &&value)
Definition CvssScore.h:96
const Aws::String & GetVersion() const
Definition CvssScore.h:75
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue