AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CvssScoreDetails.h
1
6#pragma once
7#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/imagebuilder/model/CvssScoreAdjustment.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 imagebuilder
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_IMAGEBUILDER_API CvssScoreDetails();
38 AWS_IMAGEBUILDER_API CvssScoreDetails(Aws::Utils::Json::JsonView jsonValue);
39 AWS_IMAGEBUILDER_API CvssScoreDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetScoreSource() const{ return m_scoreSource; }
48 inline bool ScoreSourceHasBeenSet() const { return m_scoreSourceHasBeenSet; }
49 inline void SetScoreSource(const Aws::String& value) { m_scoreSourceHasBeenSet = true; m_scoreSource = value; }
50 inline void SetScoreSource(Aws::String&& value) { m_scoreSourceHasBeenSet = true; m_scoreSource = std::move(value); }
51 inline void SetScoreSource(const char* value) { m_scoreSourceHasBeenSet = true; m_scoreSource.assign(value); }
52 inline CvssScoreDetails& WithScoreSource(const Aws::String& value) { SetScoreSource(value); return *this;}
53 inline CvssScoreDetails& WithScoreSource(Aws::String&& value) { SetScoreSource(std::move(value)); return *this;}
54 inline CvssScoreDetails& WithScoreSource(const char* value) { SetScoreSource(value); return *this;}
56
58
61 inline const Aws::String& GetCvssSource() const{ return m_cvssSource; }
62 inline bool CvssSourceHasBeenSet() const { return m_cvssSourceHasBeenSet; }
63 inline void SetCvssSource(const Aws::String& value) { m_cvssSourceHasBeenSet = true; m_cvssSource = value; }
64 inline void SetCvssSource(Aws::String&& value) { m_cvssSourceHasBeenSet = true; m_cvssSource = std::move(value); }
65 inline void SetCvssSource(const char* value) { m_cvssSourceHasBeenSet = true; m_cvssSource.assign(value); }
66 inline CvssScoreDetails& WithCvssSource(const Aws::String& value) { SetCvssSource(value); return *this;}
67 inline CvssScoreDetails& WithCvssSource(Aws::String&& value) { SetCvssSource(std::move(value)); return *this;}
68 inline CvssScoreDetails& WithCvssSource(const char* value) { SetCvssSource(value); return *this;}
70
72
75 inline const Aws::String& GetVersion() const{ return m_version; }
76 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
77 inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
78 inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
79 inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
80 inline CvssScoreDetails& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
81 inline CvssScoreDetails& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
82 inline CvssScoreDetails& WithVersion(const char* value) { SetVersion(value); return *this;}
84
86
89 inline double GetScore() const{ return m_score; }
90 inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
91 inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; }
92 inline CvssScoreDetails& WithScore(double value) { SetScore(value); return *this;}
94
96
99 inline const Aws::String& GetScoringVector() const{ return m_scoringVector; }
100 inline bool ScoringVectorHasBeenSet() const { return m_scoringVectorHasBeenSet; }
101 inline void SetScoringVector(const Aws::String& value) { m_scoringVectorHasBeenSet = true; m_scoringVector = value; }
102 inline void SetScoringVector(Aws::String&& value) { m_scoringVectorHasBeenSet = true; m_scoringVector = std::move(value); }
103 inline void SetScoringVector(const char* value) { m_scoringVectorHasBeenSet = true; m_scoringVector.assign(value); }
104 inline CvssScoreDetails& WithScoringVector(const Aws::String& value) { SetScoringVector(value); return *this;}
105 inline CvssScoreDetails& WithScoringVector(Aws::String&& value) { SetScoringVector(std::move(value)); return *this;}
106 inline CvssScoreDetails& WithScoringVector(const char* value) { SetScoringVector(value); return *this;}
108
110
114 inline const Aws::Vector<CvssScoreAdjustment>& GetAdjustments() const{ return m_adjustments; }
115 inline bool AdjustmentsHasBeenSet() const { return m_adjustmentsHasBeenSet; }
116 inline void SetAdjustments(const Aws::Vector<CvssScoreAdjustment>& value) { m_adjustmentsHasBeenSet = true; m_adjustments = value; }
117 inline void SetAdjustments(Aws::Vector<CvssScoreAdjustment>&& value) { m_adjustmentsHasBeenSet = true; m_adjustments = std::move(value); }
119 inline CvssScoreDetails& WithAdjustments(Aws::Vector<CvssScoreAdjustment>&& value) { SetAdjustments(std::move(value)); return *this;}
120 inline CvssScoreDetails& AddAdjustments(const CvssScoreAdjustment& value) { m_adjustmentsHasBeenSet = true; m_adjustments.push_back(value); return *this; }
121 inline CvssScoreDetails& AddAdjustments(CvssScoreAdjustment&& value) { m_adjustmentsHasBeenSet = true; m_adjustments.push_back(std::move(value)); return *this; }
123 private:
124
125 Aws::String m_scoreSource;
126 bool m_scoreSourceHasBeenSet = false;
127
128 Aws::String m_cvssSource;
129 bool m_cvssSourceHasBeenSet = false;
130
131 Aws::String m_version;
132 bool m_versionHasBeenSet = false;
133
134 double m_score;
135 bool m_scoreHasBeenSet = false;
136
137 Aws::String m_scoringVector;
138 bool m_scoringVectorHasBeenSet = false;
139
141 bool m_adjustmentsHasBeenSet = false;
142 };
143
144} // namespace Model
145} // namespace imagebuilder
146} // namespace Aws
void SetAdjustments(Aws::Vector< CvssScoreAdjustment > &&value)
CvssScoreDetails & WithCvssSource(Aws::String &&value)
CvssScoreDetails & WithVersion(const char *value)
CvssScoreDetails & WithCvssSource(const Aws::String &value)
CvssScoreDetails & WithScoringVector(const char *value)
CvssScoreDetails & WithCvssSource(const char *value)
CvssScoreDetails & WithVersion(Aws::String &&value)
CvssScoreDetails & AddAdjustments(CvssScoreAdjustment &&value)
void SetScoreSource(const Aws::String &value)
const Aws::String & GetCvssSource() const
CvssScoreDetails & WithAdjustments(Aws::Vector< CvssScoreAdjustment > &&value)
const Aws::String & GetScoreSource() const
void SetVersion(const Aws::String &value)
CvssScoreDetails & WithAdjustments(const Aws::Vector< CvssScoreAdjustment > &value)
CvssScoreDetails & WithScoreSource(const Aws::String &value)
AWS_IMAGEBUILDER_API CvssScoreDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
CvssScoreDetails & WithScore(double value)
const Aws::Vector< CvssScoreAdjustment > & GetAdjustments() const
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
CvssScoreDetails & AddAdjustments(const CvssScoreAdjustment &value)
CvssScoreDetails & WithScoreSource(const char *value)
CvssScoreDetails & WithVersion(const Aws::String &value)
CvssScoreDetails & WithScoreSource(Aws::String &&value)
CvssScoreDetails & WithScoringVector(Aws::String &&value)
CvssScoreDetails & WithScoringVector(const Aws::String &value)
void SetAdjustments(const Aws::Vector< CvssScoreAdjustment > &value)
const Aws::String & GetScoringVector() const
AWS_IMAGEBUILDER_API CvssScoreDetails(Aws::Utils::Json::JsonView jsonValue)
void SetScoringVector(const Aws::String &value)
void SetCvssSource(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue