AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Cvss2.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 class Cvss2
33 {
34 public:
35 AWS_INSPECTOR2_API Cvss2();
36 AWS_INSPECTOR2_API Cvss2(Aws::Utils::Json::JsonView jsonValue);
37 AWS_INSPECTOR2_API Cvss2& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline double GetBaseScore() const{ return m_baseScore; }
46 inline bool BaseScoreHasBeenSet() const { return m_baseScoreHasBeenSet; }
47 inline void SetBaseScore(double value) { m_baseScoreHasBeenSet = true; m_baseScore = value; }
48 inline Cvss2& WithBaseScore(double value) { SetBaseScore(value); return *this;}
50
52
55 inline const Aws::String& GetScoringVector() const{ return m_scoringVector; }
56 inline bool ScoringVectorHasBeenSet() const { return m_scoringVectorHasBeenSet; }
57 inline void SetScoringVector(const Aws::String& value) { m_scoringVectorHasBeenSet = true; m_scoringVector = value; }
58 inline void SetScoringVector(Aws::String&& value) { m_scoringVectorHasBeenSet = true; m_scoringVector = std::move(value); }
59 inline void SetScoringVector(const char* value) { m_scoringVectorHasBeenSet = true; m_scoringVector.assign(value); }
60 inline Cvss2& WithScoringVector(const Aws::String& value) { SetScoringVector(value); return *this;}
61 inline Cvss2& WithScoringVector(Aws::String&& value) { SetScoringVector(std::move(value)); return *this;}
62 inline Cvss2& WithScoringVector(const char* value) { SetScoringVector(value); return *this;}
64 private:
65
66 double m_baseScore;
67 bool m_baseScoreHasBeenSet = false;
68
69 Aws::String m_scoringVector;
70 bool m_scoringVectorHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace Inspector2
75} // namespace Aws
void SetScoringVector(const char *value)
Definition Cvss2.h:59
bool ScoringVectorHasBeenSet() const
Definition Cvss2.h:56
double GetBaseScore() const
Definition Cvss2.h:45
AWS_INSPECTOR2_API Cvss2()
const Aws::String & GetScoringVector() const
Definition Cvss2.h:55
bool BaseScoreHasBeenSet() const
Definition Cvss2.h:46
void SetBaseScore(double value)
Definition Cvss2.h:47
AWS_INSPECTOR2_API Cvss2(Aws::Utils::Json::JsonView jsonValue)
Cvss2 & WithBaseScore(double value)
Definition Cvss2.h:48
void SetScoringVector(Aws::String &&value)
Definition Cvss2.h:58
AWS_INSPECTOR2_API Cvss2 & operator=(Aws::Utils::Json::JsonView jsonValue)
Cvss2 & WithScoringVector(const char *value)
Definition Cvss2.h:62
Cvss2 & WithScoringVector(const Aws::String &value)
Definition Cvss2.h:60
Cvss2 & WithScoringVector(Aws::String &&value)
Definition Cvss2.h:61
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetScoringVector(const Aws::String &value)
Definition Cvss2.h:57
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue