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/ecr/ECR_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ecr/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 ECR
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_ECR_API CvssScoreDetails();
40
41
43
47 inline const Aws::Vector<CvssScoreAdjustment>& GetAdjustments() const{ return m_adjustments; }
48 inline bool AdjustmentsHasBeenSet() const { return m_adjustmentsHasBeenSet; }
49 inline void SetAdjustments(const Aws::Vector<CvssScoreAdjustment>& value) { m_adjustmentsHasBeenSet = true; m_adjustments = value; }
50 inline void SetAdjustments(Aws::Vector<CvssScoreAdjustment>&& value) { m_adjustmentsHasBeenSet = true; m_adjustments = std::move(value); }
52 inline CvssScoreDetails& WithAdjustments(Aws::Vector<CvssScoreAdjustment>&& value) { SetAdjustments(std::move(value)); return *this;}
53 inline CvssScoreDetails& AddAdjustments(const CvssScoreAdjustment& value) { m_adjustmentsHasBeenSet = true; m_adjustments.push_back(value); return *this; }
54 inline CvssScoreDetails& AddAdjustments(CvssScoreAdjustment&& value) { m_adjustmentsHasBeenSet = true; m_adjustments.push_back(std::move(value)); return *this; }
56
58
61 inline double GetScore() const{ return m_score; }
62 inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
63 inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; }
64 inline CvssScoreDetails& WithScore(double value) { SetScore(value); return *this;}
66
68
71 inline const Aws::String& GetScoreSource() const{ return m_scoreSource; }
72 inline bool ScoreSourceHasBeenSet() const { return m_scoreSourceHasBeenSet; }
73 inline void SetScoreSource(const Aws::String& value) { m_scoreSourceHasBeenSet = true; m_scoreSource = value; }
74 inline void SetScoreSource(Aws::String&& value) { m_scoreSourceHasBeenSet = true; m_scoreSource = std::move(value); }
75 inline void SetScoreSource(const char* value) { m_scoreSourceHasBeenSet = true; m_scoreSource.assign(value); }
76 inline CvssScoreDetails& WithScoreSource(const Aws::String& value) { SetScoreSource(value); return *this;}
77 inline CvssScoreDetails& WithScoreSource(Aws::String&& value) { SetScoreSource(std::move(value)); return *this;}
78 inline CvssScoreDetails& WithScoreSource(const char* value) { SetScoreSource(value); return *this;}
80
82
85 inline const Aws::String& GetScoringVector() const{ return m_scoringVector; }
86 inline bool ScoringVectorHasBeenSet() const { return m_scoringVectorHasBeenSet; }
87 inline void SetScoringVector(const Aws::String& value) { m_scoringVectorHasBeenSet = true; m_scoringVector = value; }
88 inline void SetScoringVector(Aws::String&& value) { m_scoringVectorHasBeenSet = true; m_scoringVector = std::move(value); }
89 inline void SetScoringVector(const char* value) { m_scoringVectorHasBeenSet = true; m_scoringVector.assign(value); }
90 inline CvssScoreDetails& WithScoringVector(const Aws::String& value) { SetScoringVector(value); return *this;}
91 inline CvssScoreDetails& WithScoringVector(Aws::String&& value) { SetScoringVector(std::move(value)); return *this;}
92 inline CvssScoreDetails& WithScoringVector(const char* value) { SetScoringVector(value); return *this;}
94
96
99 inline const Aws::String& GetVersion() const{ return m_version; }
100 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
101 inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
102 inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
103 inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
104 inline CvssScoreDetails& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
105 inline CvssScoreDetails& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
106 inline CvssScoreDetails& WithVersion(const char* value) { SetVersion(value); return *this;}
108 private:
109
111 bool m_adjustmentsHasBeenSet = false;
112
113 double m_score;
114 bool m_scoreHasBeenSet = false;
115
116 Aws::String m_scoreSource;
117 bool m_scoreSourceHasBeenSet = false;
118
119 Aws::String m_scoringVector;
120 bool m_scoringVectorHasBeenSet = false;
121
122 Aws::String m_version;
123 bool m_versionHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace ECR
128} // namespace Aws
AWS_ECR_API CvssScoreDetails(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetScoreSource() const
void SetVersion(const char *value)
CvssScoreDetails & WithScoreSource(const Aws::String &value)
CvssScoreDetails & AddAdjustments(const CvssScoreAdjustment &value)
CvssScoreDetails & WithScoreSource(Aws::String &&value)
const Aws::String & GetVersion() const
CvssScoreDetails & WithScore(double value)
void SetVersion(Aws::String &&value)
CvssScoreDetails & WithScoringVector(const Aws::String &value)
void SetAdjustments(Aws::Vector< CvssScoreAdjustment > &&value)
void SetScoreSource(const char *value)
CvssScoreDetails & WithScoringVector(const char *value)
void SetAdjustments(const Aws::Vector< CvssScoreAdjustment > &value)
CvssScoreDetails & AddAdjustments(CvssScoreAdjustment &&value)
CvssScoreDetails & WithVersion(Aws::String &&value)
CvssScoreDetails & WithAdjustments(Aws::Vector< CvssScoreAdjustment > &&value)
CvssScoreDetails & WithAdjustments(const Aws::Vector< CvssScoreAdjustment > &value)
CvssScoreDetails & WithVersion(const char *value)
void SetScoringVector(Aws::String &&value)
CvssScoreDetails & WithVersion(const Aws::String &value)
CvssScoreDetails & WithScoringVector(Aws::String &&value)
AWS_ECR_API CvssScoreDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetScoreSource(const Aws::String &value)
const Aws::String & GetScoringVector() const
void SetScoringVector(const Aws::String &value)
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const
void SetScoreSource(Aws::String &&value)
CvssScoreDetails & WithScoreSource(const char *value)
void SetScoringVector(const char *value)
void SetVersion(const Aws::String &value)
const Aws::Vector< CvssScoreAdjustment > & GetAdjustments() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue