AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ScoringVectorT = Aws::String>
57 void SetScoringVector(ScoringVectorT&& value) { m_scoringVectorHasBeenSet = true; m_scoringVector = std::forward<ScoringVectorT>(value); }
58 template<typename ScoringVectorT = Aws::String>
59 CvssScore& WithScoringVector(ScoringVectorT&& value) { SetScoringVector(std::forward<ScoringVectorT>(value)); return *this;}
61
63
66 inline const Aws::String& GetSource() const { return m_source; }
67 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
68 template<typename SourceT = Aws::String>
69 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
70 template<typename SourceT = Aws::String>
71 CvssScore& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
73
75
78 inline const Aws::String& GetVersion() const { return m_version; }
79 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
80 template<typename VersionT = Aws::String>
81 void SetVersion(VersionT&& value) { m_versionHasBeenSet = true; m_version = std::forward<VersionT>(value); }
82 template<typename VersionT = Aws::String>
83 CvssScore& WithVersion(VersionT&& value) { SetVersion(std::forward<VersionT>(value)); return *this;}
85 private:
86
87 double m_baseScore{0.0};
88 bool m_baseScoreHasBeenSet = false;
89
90 Aws::String m_scoringVector;
91 bool m_scoringVectorHasBeenSet = false;
92
93 Aws::String m_source;
94 bool m_sourceHasBeenSet = false;
95
96 Aws::String m_version;
97 bool m_versionHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace Inspector2
102} // namespace Aws
CvssScore & WithScoringVector(ScoringVectorT &&value)
Definition CvssScore.h:59
CvssScore & WithVersion(VersionT &&value)
Definition CvssScore.h:83
void SetVersion(VersionT &&value)
Definition CvssScore.h:81
CvssScore & WithSource(SourceT &&value)
Definition CvssScore.h:71
const Aws::String & GetScoringVector() const
Definition CvssScore.h:54
void SetBaseScore(double value)
Definition CvssScore.h:46
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_INSPECTOR2_API CvssScore & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_INSPECTOR2_API CvssScore(Aws::Utils::Json::JsonView jsonValue)
CvssScore & WithBaseScore(double value)
Definition CvssScore.h:47
void SetScoringVector(ScoringVectorT &&value)
Definition CvssScore.h:57
AWS_INSPECTOR2_API CvssScore()=default
void SetSource(SourceT &&value)
Definition CvssScore.h:69
const Aws::String & GetSource() const
Definition CvssScore.h:66
const Aws::String & GetVersion() const
Definition CvssScore.h:78
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue