AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetScoringVector(const Aws::String& value) { m_scoringVectorHasBeenSet = true; m_scoringVector = value; }
65 inline void SetScoringVector(Aws::String&& value) { m_scoringVectorHasBeenSet = true; m_scoringVector = std::move(value); }
66 inline void SetScoringVector(const char* value) { m_scoringVectorHasBeenSet = true; m_scoringVector.assign(value); }
67 inline CvssScore& WithScoringVector(const Aws::String& value) { SetScoringVector(value); return *this;}
68 inline CvssScore& WithScoringVector(Aws::String&& value) { SetScoringVector(std::move(value)); return *this;}
69 inline CvssScore& WithScoringVector(const char* value) { SetScoringVector(value); return *this;}
71
73
76 inline const Aws::String& GetVersion() const{ return m_version; }
77 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
78 inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
79 inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
80 inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
81 inline CvssScore& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
82 inline CvssScore& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
83 inline CvssScore& WithVersion(const char* value) { SetVersion(value); return *this;}
85
87
90 inline const Aws::String& GetSource() const{ return m_source; }
91 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
92 inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; }
93 inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
94 inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); }
95 inline CvssScore& WithSource(const Aws::String& value) { SetSource(value); return *this;}
96 inline CvssScore& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;}
97 inline CvssScore& WithSource(const char* value) { SetSource(value); return *this;}
99 private:
100
101 double m_baseScore;
102 bool m_baseScoreHasBeenSet = false;
103
104 Aws::String m_scoringVector;
105 bool m_scoringVectorHasBeenSet = false;
106
107 Aws::String m_version;
108 bool m_versionHasBeenSet = false;
109
110 Aws::String m_source;
111 bool m_sourceHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace imagebuilder
116} // namespace Aws
CvssScore & WithScoringVector(Aws::String &&value)
Definition CvssScore.h:68
CvssScore & WithVersion(Aws::String &&value)
Definition CvssScore.h:82
CvssScore & WithScoringVector(const Aws::String &value)
Definition CvssScore.h:67
AWS_IMAGEBUILDER_API CvssScore & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetScoringVector(const char *value)
Definition CvssScore.h:66
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetSource() const
Definition CvssScore.h:90
void SetSource(const Aws::String &value)
Definition CvssScore.h:92
const Aws::String & GetScoringVector() const
Definition CvssScore.h:62
void SetScoringVector(Aws::String &&value)
Definition CvssScore.h:65
CvssScore & WithVersion(const Aws::String &value)
Definition CvssScore.h:81
CvssScore & WithVersion(const char *value)
Definition CvssScore.h:83
AWS_IMAGEBUILDER_API CvssScore()
void SetVersion(Aws::String &&value)
Definition CvssScore.h:79
void SetBaseScore(double value)
Definition CvssScore.h:54
CvssScore & WithScoringVector(const char *value)
Definition CvssScore.h:69
CvssScore & WithSource(const char *value)
Definition CvssScore.h:97
void SetSource(Aws::String &&value)
Definition CvssScore.h:93
void SetScoringVector(const Aws::String &value)
Definition CvssScore.h:64
CvssScore & WithSource(const Aws::String &value)
Definition CvssScore.h:95
void SetSource(const char *value)
Definition CvssScore.h:94
CvssScore & WithSource(Aws::String &&value)
Definition CvssScore.h:96
CvssScore & WithBaseScore(double value)
Definition CvssScore.h:55
AWS_IMAGEBUILDER_API CvssScore(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetVersion() const
Definition CvssScore.h:76
void SetVersion(const char *value)
Definition CvssScore.h:80
void SetVersion(const Aws::String &value)
Definition CvssScore.h:78
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue