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/ecr/ECR_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 ECR
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_ECR_API CvssScore();
35 AWS_ECR_API CvssScore(Aws::Utils::Json::JsonView jsonValue);
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 ECR
108} // namespace Aws
const Aws::String & GetSource() const
Definition CvssScore.h:68
CvssScore & WithSource(const char *value)
Definition CvssScore.h:75
void SetVersion(const Aws::String &value)
Definition CvssScore.h:84
CvssScore & WithBaseScore(double value)
Definition CvssScore.h:47
CvssScore & WithScoringVector(const Aws::String &value)
Definition CvssScore.h:59
double GetBaseScore() const
Definition CvssScore.h:44
void SetSource(const Aws::String &value)
Definition CvssScore.h:70
CvssScore & WithSource(const Aws::String &value)
Definition CvssScore.h:73
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const
CvssScore & WithVersion(const Aws::String &value)
Definition CvssScore.h:87
CvssScore & WithSource(Aws::String &&value)
Definition CvssScore.h:74
bool VersionHasBeenSet() const
Definition CvssScore.h:83
void SetBaseScore(double value)
Definition CvssScore.h:46
void SetScoringVector(const Aws::String &value)
Definition CvssScore.h:56
void SetVersion(const char *value)
Definition CvssScore.h:86
void SetSource(const char *value)
Definition CvssScore.h:72
CvssScore & WithVersion(const char *value)
Definition CvssScore.h:89
bool BaseScoreHasBeenSet() const
Definition CvssScore.h:45
AWS_ECR_API CvssScore & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSource(Aws::String &&value)
Definition CvssScore.h:71
CvssScore & WithScoringVector(const char *value)
Definition CvssScore.h:61
bool SourceHasBeenSet() const
Definition CvssScore.h:69
AWS_ECR_API CvssScore(Aws::Utils::Json::JsonView jsonValue)
CvssScore & WithScoringVector(Aws::String &&value)
Definition CvssScore.h:60
void SetVersion(Aws::String &&value)
Definition CvssScore.h:85
void SetScoringVector(Aws::String &&value)
Definition CvssScore.h:57
CvssScore & WithVersion(Aws::String &&value)
Definition CvssScore.h:88
bool ScoringVectorHasBeenSet() const
Definition CvssScore.h:55
void SetScoringVector(const char *value)
Definition CvssScore.h:58
const Aws::String & GetScoringVector() const
Definition CvssScore.h:54
const Aws::String & GetVersion() const
Definition CvssScore.h:82
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue