AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CvssScore.h
1
6#pragma once
7#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace imagebuilder
22{
23namespace Model
24{
25
40 {
41 public:
42 AWS_IMAGEBUILDER_API CvssScore() = default;
43 AWS_IMAGEBUILDER_API CvssScore(Aws::Utils::Json::JsonView jsonValue);
44 AWS_IMAGEBUILDER_API CvssScore& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline double GetBaseScore() const { return m_baseScore; }
53 inline bool BaseScoreHasBeenSet() const { return m_baseScoreHasBeenSet; }
54 inline void SetBaseScore(double value) { m_baseScoreHasBeenSet = true; m_baseScore = value; }
55 inline CvssScore& WithBaseScore(double value) { SetBaseScore(value); return *this;}
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) { m_scoringVectorHasBeenSet = true; m_scoringVector = std::forward<ScoringVectorT>(value); }
66 template<typename ScoringVectorT = Aws::String>
67 CvssScore& WithScoringVector(ScoringVectorT&& value) { SetScoringVector(std::forward<ScoringVectorT>(value)); return *this;}
69
71
74 inline const Aws::String& GetVersion() const { return m_version; }
75 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
76 template<typename VersionT = Aws::String>
77 void SetVersion(VersionT&& value) { m_versionHasBeenSet = true; m_version = std::forward<VersionT>(value); }
78 template<typename VersionT = Aws::String>
79 CvssScore& WithVersion(VersionT&& value) { SetVersion(std::forward<VersionT>(value)); return *this;}
81
83
86 inline const Aws::String& GetSource() const { return m_source; }
87 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
88 template<typename SourceT = Aws::String>
89 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
90 template<typename SourceT = Aws::String>
91 CvssScore& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
93 private:
94
95 double m_baseScore{0.0};
96 bool m_baseScoreHasBeenSet = false;
97
98 Aws::String m_scoringVector;
99 bool m_scoringVectorHasBeenSet = false;
100
101 Aws::String m_version;
102 bool m_versionHasBeenSet = false;
103
104 Aws::String m_source;
105 bool m_sourceHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace imagebuilder
110} // namespace Aws
void SetVersion(VersionT &&value)
Definition CvssScore.h:77
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:86
const Aws::String & GetScoringVector() const
Definition CvssScore.h:62
CvssScore & WithSource(SourceT &&value)
Definition CvssScore.h:91
void SetScoringVector(ScoringVectorT &&value)
Definition CvssScore.h:65
AWS_IMAGEBUILDER_API CvssScore()=default
void SetBaseScore(double value)
Definition CvssScore.h:54
CvssScore & WithBaseScore(double value)
Definition CvssScore.h:55
AWS_IMAGEBUILDER_API CvssScore(Aws::Utils::Json::JsonView jsonValue)
CvssScore & WithScoringVector(ScoringVectorT &&value)
Definition CvssScore.h:67
CvssScore & WithVersion(VersionT &&value)
Definition CvssScore.h:79
void SetSource(SourceT &&value)
Definition CvssScore.h:89
const Aws::String & GetVersion() const
Definition CvssScore.h:74
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue