AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
CvssScore.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ecr/ECR_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ECR {
20namespace Model {
21
27class CvssScore {
28 public:
29 AWS_ECR_API CvssScore() = default;
30 AWS_ECR_API CvssScore(Aws::Utils::Json::JsonView jsonValue);
33
35
38 inline double GetBaseScore() const { return m_baseScore; }
39 inline bool BaseScoreHasBeenSet() const { return m_baseScoreHasBeenSet; }
40 inline void SetBaseScore(double value) {
41 m_baseScoreHasBeenSet = true;
42 m_baseScore = value;
43 }
44 inline CvssScore& WithBaseScore(double value) {
45 SetBaseScore(value);
46 return *this;
47 }
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) {
58 m_scoringVectorHasBeenSet = true;
59 m_scoringVector = std::forward<ScoringVectorT>(value);
60 }
61 template <typename ScoringVectorT = Aws::String>
62 CvssScore& WithScoringVector(ScoringVectorT&& value) {
63 SetScoringVector(std::forward<ScoringVectorT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetSource() const { return m_source; }
73 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
74 template <typename SourceT = Aws::String>
75 void SetSource(SourceT&& value) {
76 m_sourceHasBeenSet = true;
77 m_source = std::forward<SourceT>(value);
78 }
79 template <typename SourceT = Aws::String>
80 CvssScore& WithSource(SourceT&& value) {
81 SetSource(std::forward<SourceT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::String& GetVersion() const { return m_version; }
91 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
92 template <typename VersionT = Aws::String>
93 void SetVersion(VersionT&& value) {
94 m_versionHasBeenSet = true;
95 m_version = std::forward<VersionT>(value);
96 }
97 template <typename VersionT = Aws::String>
98 CvssScore& WithVersion(VersionT&& value) {
99 SetVersion(std::forward<VersionT>(value));
100 return *this;
101 }
103 private:
104 double m_baseScore{0.0};
105
106 Aws::String m_scoringVector;
107
108 Aws::String m_source;
109
110 Aws::String m_version;
111 bool m_baseScoreHasBeenSet = false;
112 bool m_scoringVectorHasBeenSet = false;
113 bool m_sourceHasBeenSet = false;
114 bool m_versionHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace ECR
119} // namespace Aws
const Aws::String & GetSource() const
Definition CvssScore.h:72
CvssScore & WithBaseScore(double value)
Definition CvssScore.h:44
double GetBaseScore() const
Definition CvssScore.h:38
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const
void SetVersion(VersionT &&value)
Definition CvssScore.h:93
bool VersionHasBeenSet() const
Definition CvssScore.h:91
void SetBaseScore(double value)
Definition CvssScore.h:40
AWS_ECR_API CvssScore()=default
CvssScore & WithSource(SourceT &&value)
Definition CvssScore.h:80
CvssScore & WithVersion(VersionT &&value)
Definition CvssScore.h:98
bool BaseScoreHasBeenSet() const
Definition CvssScore.h:39
AWS_ECR_API CvssScore & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSource(SourceT &&value)
Definition CvssScore.h:75
bool SourceHasBeenSet() const
Definition CvssScore.h:73
AWS_ECR_API CvssScore(Aws::Utils::Json::JsonView jsonValue)
bool ScoringVectorHasBeenSet() const
Definition CvssScore.h:55
CvssScore & WithScoringVector(ScoringVectorT &&value)
Definition CvssScore.h:62
const Aws::String & GetScoringVector() const
Definition CvssScore.h:54
void SetScoringVector(ScoringVectorT &&value)
Definition CvssScore.h:57
const Aws::String & GetVersion() const
Definition CvssScore.h:90
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue