AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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
35class CvssScore {
36 public:
37 AWS_IMAGEBUILDER_API CvssScore() = default;
38 AWS_IMAGEBUILDER_API CvssScore(Aws::Utils::Json::JsonView jsonValue);
39 AWS_IMAGEBUILDER_API CvssScore& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline double GetBaseScore() const { return m_baseScore; }
47 inline bool BaseScoreHasBeenSet() const { return m_baseScoreHasBeenSet; }
48 inline void SetBaseScore(double value) {
49 m_baseScoreHasBeenSet = true;
50 m_baseScore = value;
51 }
52 inline CvssScore& WithBaseScore(double value) {
53 SetBaseScore(value);
54 return *this;
55 }
57
59
62 inline const Aws::String& GetScoringVector() const { return m_scoringVector; }
63 inline bool ScoringVectorHasBeenSet() const { return m_scoringVectorHasBeenSet; }
64 template <typename ScoringVectorT = Aws::String>
65 void SetScoringVector(ScoringVectorT&& value) {
66 m_scoringVectorHasBeenSet = true;
67 m_scoringVector = std::forward<ScoringVectorT>(value);
68 }
69 template <typename ScoringVectorT = Aws::String>
70 CvssScore& WithScoringVector(ScoringVectorT&& value) {
71 SetScoringVector(std::forward<ScoringVectorT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetVersion() const { return m_version; }
81 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
82 template <typename VersionT = Aws::String>
83 void SetVersion(VersionT&& value) {
84 m_versionHasBeenSet = true;
85 m_version = std::forward<VersionT>(value);
86 }
87 template <typename VersionT = Aws::String>
88 CvssScore& WithVersion(VersionT&& value) {
89 SetVersion(std::forward<VersionT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetSource() const { return m_source; }
99 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
100 template <typename SourceT = Aws::String>
101 void SetSource(SourceT&& value) {
102 m_sourceHasBeenSet = true;
103 m_source = std::forward<SourceT>(value);
104 }
105 template <typename SourceT = Aws::String>
106 CvssScore& WithSource(SourceT&& value) {
107 SetSource(std::forward<SourceT>(value));
108 return *this;
109 }
111 private:
112 double m_baseScore{0.0};
113
114 Aws::String m_scoringVector;
115
116 Aws::String m_version;
117
118 Aws::String m_source;
119 bool m_baseScoreHasBeenSet = false;
120 bool m_scoringVectorHasBeenSet = false;
121 bool m_versionHasBeenSet = false;
122 bool m_sourceHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace imagebuilder
127} // namespace Aws
void SetVersion(VersionT &&value)
Definition CvssScore.h:83
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:98
const Aws::String & GetScoringVector() const
Definition CvssScore.h:62
CvssScore & WithSource(SourceT &&value)
Definition CvssScore.h:106
void SetScoringVector(ScoringVectorT &&value)
Definition CvssScore.h:65
AWS_IMAGEBUILDER_API CvssScore()=default
void SetBaseScore(double value)
Definition CvssScore.h:48
CvssScore & WithBaseScore(double value)
Definition CvssScore.h:52
AWS_IMAGEBUILDER_API CvssScore(Aws::Utils::Json::JsonView jsonValue)
CvssScore & WithScoringVector(ScoringVectorT &&value)
Definition CvssScore.h:70
CvssScore & WithVersion(VersionT &&value)
Definition CvssScore.h:88
void SetSource(SourceT &&value)
Definition CvssScore.h:101
const Aws::String & GetVersion() const
Definition CvssScore.h:80
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue