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/inspector2/Inspector2_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 Inspector2
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_INSPECTOR2_API CvssScore();
35 AWS_INSPECTOR2_API CvssScore(Aws::Utils::Json::JsonView jsonValue);
36 AWS_INSPECTOR2_API CvssScore& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline double GetBaseScore() const{ return m_baseScore; }
45 inline bool BaseScoreHasBeenSet() const { return m_baseScoreHasBeenSet; }
46 inline void SetBaseScore(double value) { m_baseScoreHasBeenSet = true; m_baseScore = value; }
47 inline CvssScore& WithBaseScore(double value) { SetBaseScore(value); return *this;}
49
51
54 inline const Aws::String& GetScoringVector() const{ return m_scoringVector; }
55 inline bool ScoringVectorHasBeenSet() const { return m_scoringVectorHasBeenSet; }
56 inline void SetScoringVector(const Aws::String& value) { m_scoringVectorHasBeenSet = true; m_scoringVector = value; }
57 inline void SetScoringVector(Aws::String&& value) { m_scoringVectorHasBeenSet = true; m_scoringVector = std::move(value); }
58 inline void SetScoringVector(const char* value) { m_scoringVectorHasBeenSet = true; m_scoringVector.assign(value); }
59 inline CvssScore& WithScoringVector(const Aws::String& value) { SetScoringVector(value); return *this;}
60 inline CvssScore& WithScoringVector(Aws::String&& value) { SetScoringVector(std::move(value)); return *this;}
61 inline CvssScore& WithScoringVector(const char* value) { SetScoringVector(value); return *this;}
63
65
68 inline const Aws::String& GetSource() const{ return m_source; }
69 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
70 inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; }
71 inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
72 inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); }
73 inline CvssScore& WithSource(const Aws::String& value) { SetSource(value); return *this;}
74 inline CvssScore& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;}
75 inline CvssScore& WithSource(const char* value) { SetSource(value); return *this;}
77
79
82 inline const Aws::String& GetVersion() const{ return m_version; }
83 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
84 inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
85 inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
86 inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
87 inline CvssScore& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
88 inline CvssScore& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
89 inline CvssScore& WithVersion(const char* value) { SetVersion(value); return *this;}
91 private:
92
93 double m_baseScore;
94 bool m_baseScoreHasBeenSet = false;
95
96 Aws::String m_scoringVector;
97 bool m_scoringVectorHasBeenSet = false;
98
99 Aws::String m_source;
100 bool m_sourceHasBeenSet = false;
101
102 Aws::String m_version;
103 bool m_versionHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace Inspector2
108} // namespace Aws
CvssScore & WithSource(const char *value)
Definition CvssScore.h:75
void SetVersion(const char *value)
Definition CvssScore.h:86
const Aws::String & GetScoringVector() const
Definition CvssScore.h:54
void SetScoringVector(const Aws::String &value)
Definition CvssScore.h:56
void SetVersion(Aws::String &&value)
Definition CvssScore.h:85
CvssScore & WithSource(Aws::String &&value)
Definition CvssScore.h:74
void SetBaseScore(double value)
Definition CvssScore.h:46
void SetScoringVector(const char *value)
Definition CvssScore.h:58
void SetSource(Aws::String &&value)
Definition CvssScore.h:71
AWS_INSPECTOR2_API CvssScore()
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
CvssScore & WithScoringVector(const char *value)
Definition CvssScore.h:61
CvssScore & WithVersion(const char *value)
Definition CvssScore.h:89
AWS_INSPECTOR2_API CvssScore & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_INSPECTOR2_API CvssScore(Aws::Utils::Json::JsonView jsonValue)
void SetSource(const char *value)
Definition CvssScore.h:72
CvssScore & WithVersion(Aws::String &&value)
Definition CvssScore.h:88
void SetVersion(const Aws::String &value)
Definition CvssScore.h:84
CvssScore & WithBaseScore(double value)
Definition CvssScore.h:47
CvssScore & WithVersion(const Aws::String &value)
Definition CvssScore.h:87
CvssScore & WithScoringVector(const Aws::String &value)
Definition CvssScore.h:59
void SetSource(const Aws::String &value)
Definition CvssScore.h:70
CvssScore & WithSource(const Aws::String &value)
Definition CvssScore.h:73
const Aws::String & GetSource() const
Definition CvssScore.h:68
const Aws::String & GetVersion() const
Definition CvssScore.h:82
CvssScore & WithScoringVector(Aws::String &&value)
Definition CvssScore.h:60
void SetScoringVector(Aws::String &&value)
Definition CvssScore.h:57
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue