AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Cvss3.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 Cvss3
33 {
34 public:
35 AWS_INSPECTOR2_API Cvss3();
36 AWS_INSPECTOR2_API Cvss3(Aws::Utils::Json::JsonView jsonValue);
37 AWS_INSPECTOR2_API Cvss3& 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 Cvss3& 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 Cvss3& WithScoringVector(const Aws::String& value) { SetScoringVector(value); return *this;}
61 inline Cvss3& WithScoringVector(Aws::String&& value) { SetScoringVector(std::move(value)); return *this;}
62 inline Cvss3& 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
Cvss3 & WithBaseScore(double value)
Definition Cvss3.h:48
AWS_INSPECTOR2_API Cvss3 & operator=(Aws::Utils::Json::JsonView jsonValue)
Cvss3 & WithScoringVector(const Aws::String &value)
Definition Cvss3.h:60
AWS_INSPECTOR2_API Cvss3()
void SetScoringVector(const Aws::String &value)
Definition Cvss3.h:57
void SetBaseScore(double value)
Definition Cvss3.h:47
void SetScoringVector(const char *value)
Definition Cvss3.h:59
Cvss3 & WithScoringVector(Aws::String &&value)
Definition Cvss3.h:61
AWS_INSPECTOR2_API Cvss3(Aws::Utils::Json::JsonView jsonValue)
Cvss3 & WithScoringVector(const char *value)
Definition Cvss3.h:62
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetScoringVector() const
Definition Cvss3.h:55
bool ScoringVectorHasBeenSet() const
Definition Cvss3.h:56
void SetScoringVector(Aws::String &&value)
Definition Cvss3.h:58
double GetBaseScore() const
Definition Cvss3.h:45
bool BaseScoreHasBeenSet() const
Definition Cvss3.h:46
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue