AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Cvss.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/securityhub/model/Adjustment.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SecurityHub
24{
25namespace Model
26{
27
34 class Cvss
35 {
36 public:
37 AWS_SECURITYHUB_API Cvss();
38 AWS_SECURITYHUB_API Cvss(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SECURITYHUB_API Cvss& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetVersion() const{ return m_version; }
48 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
49 inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
50 inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
51 inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
52 inline Cvss& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
53 inline Cvss& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
54 inline Cvss& WithVersion(const char* value) { SetVersion(value); return *this;}
56
58
61 inline double GetBaseScore() const{ return m_baseScore; }
62 inline bool BaseScoreHasBeenSet() const { return m_baseScoreHasBeenSet; }
63 inline void SetBaseScore(double value) { m_baseScoreHasBeenSet = true; m_baseScore = value; }
64 inline Cvss& WithBaseScore(double value) { SetBaseScore(value); return *this;}
66
68
71 inline const Aws::String& GetBaseVector() const{ return m_baseVector; }
72 inline bool BaseVectorHasBeenSet() const { return m_baseVectorHasBeenSet; }
73 inline void SetBaseVector(const Aws::String& value) { m_baseVectorHasBeenSet = true; m_baseVector = value; }
74 inline void SetBaseVector(Aws::String&& value) { m_baseVectorHasBeenSet = true; m_baseVector = std::move(value); }
75 inline void SetBaseVector(const char* value) { m_baseVectorHasBeenSet = true; m_baseVector.assign(value); }
76 inline Cvss& WithBaseVector(const Aws::String& value) { SetBaseVector(value); return *this;}
77 inline Cvss& WithBaseVector(Aws::String&& value) { SetBaseVector(std::move(value)); return *this;}
78 inline Cvss& WithBaseVector(const char* value) { SetBaseVector(value); return *this;}
80
82
85 inline const Aws::String& GetSource() const{ return m_source; }
86 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
87 inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; }
88 inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
89 inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); }
90 inline Cvss& WithSource(const Aws::String& value) { SetSource(value); return *this;}
91 inline Cvss& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;}
92 inline Cvss& WithSource(const char* value) { SetSource(value); return *this;}
94
96
99 inline const Aws::Vector<Adjustment>& GetAdjustments() const{ return m_adjustments; }
100 inline bool AdjustmentsHasBeenSet() const { return m_adjustmentsHasBeenSet; }
101 inline void SetAdjustments(const Aws::Vector<Adjustment>& value) { m_adjustmentsHasBeenSet = true; m_adjustments = value; }
102 inline void SetAdjustments(Aws::Vector<Adjustment>&& value) { m_adjustmentsHasBeenSet = true; m_adjustments = std::move(value); }
103 inline Cvss& WithAdjustments(const Aws::Vector<Adjustment>& value) { SetAdjustments(value); return *this;}
104 inline Cvss& WithAdjustments(Aws::Vector<Adjustment>&& value) { SetAdjustments(std::move(value)); return *this;}
105 inline Cvss& AddAdjustments(const Adjustment& value) { m_adjustmentsHasBeenSet = true; m_adjustments.push_back(value); return *this; }
106 inline Cvss& AddAdjustments(Adjustment&& value) { m_adjustmentsHasBeenSet = true; m_adjustments.push_back(std::move(value)); return *this; }
108 private:
109
110 Aws::String m_version;
111 bool m_versionHasBeenSet = false;
112
113 double m_baseScore;
114 bool m_baseScoreHasBeenSet = false;
115
116 Aws::String m_baseVector;
117 bool m_baseVectorHasBeenSet = false;
118
119 Aws::String m_source;
120 bool m_sourceHasBeenSet = false;
121
122 Aws::Vector<Adjustment> m_adjustments;
123 bool m_adjustmentsHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace SecurityHub
128} // namespace Aws
Cvss & WithBaseVector(const Aws::String &value)
Definition Cvss.h:76
bool BaseScoreHasBeenSet() const
Definition Cvss.h:62
Cvss & WithSource(const Aws::String &value)
Definition Cvss.h:90
void SetAdjustments(const Aws::Vector< Adjustment > &value)
Definition Cvss.h:101
void SetBaseVector(const char *value)
Definition Cvss.h:75
Cvss & WithSource(Aws::String &&value)
Definition Cvss.h:91
void SetSource(const Aws::String &value)
Definition Cvss.h:87
Cvss & AddAdjustments(const Adjustment &value)
Definition Cvss.h:105
Cvss & WithSource(const char *value)
Definition Cvss.h:92
Cvss & WithBaseVector(Aws::String &&value)
Definition Cvss.h:77
Cvss & WithAdjustments(Aws::Vector< Adjustment > &&value)
Definition Cvss.h:104
bool AdjustmentsHasBeenSet() const
Definition Cvss.h:100
Cvss & WithVersion(const Aws::String &value)
Definition Cvss.h:52
void SetBaseVector(Aws::String &&value)
Definition Cvss.h:74
AWS_SECURITYHUB_API Cvss & operator=(Aws::Utils::Json::JsonView jsonValue)
bool BaseVectorHasBeenSet() const
Definition Cvss.h:72
Cvss & AddAdjustments(Adjustment &&value)
Definition Cvss.h:106
Cvss & WithBaseVector(const char *value)
Definition Cvss.h:78
void SetVersion(Aws::String &&value)
Definition Cvss.h:50
const Aws::Vector< Adjustment > & GetAdjustments() const
Definition Cvss.h:99
void SetBaseScore(double value)
Definition Cvss.h:63
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetSource() const
Definition Cvss.h:85
Cvss & WithVersion(Aws::String &&value)
Definition Cvss.h:53
void SetBaseVector(const Aws::String &value)
Definition Cvss.h:73
void SetSource(const char *value)
Definition Cvss.h:89
Cvss & WithBaseScore(double value)
Definition Cvss.h:64
void SetAdjustments(Aws::Vector< Adjustment > &&value)
Definition Cvss.h:102
void SetVersion(const char *value)
Definition Cvss.h:51
Cvss & WithVersion(const char *value)
Definition Cvss.h:54
void SetSource(Aws::String &&value)
Definition Cvss.h:88
const Aws::String & GetVersion() const
Definition Cvss.h:47
void SetVersion(const Aws::String &value)
Definition Cvss.h:49
const Aws::String & GetBaseVector() const
Definition Cvss.h:71
Cvss & WithAdjustments(const Aws::Vector< Adjustment > &value)
Definition Cvss.h:103
bool SourceHasBeenSet() const
Definition Cvss.h:86
AWS_SECURITYHUB_API Cvss(Aws::Utils::Json::JsonView jsonValue)
double GetBaseScore() const
Definition Cvss.h:61
bool VersionHasBeenSet() const
Definition Cvss.h:48
AWS_SECURITYHUB_API Cvss()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue