AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CodeVulnerabilityDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/inspector2/Inspector2_EXPORTS.h>
10#include <aws/inspector2/model/CodeFilePath.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Inspector2 {
22namespace Model {
23
31 public:
32 AWS_INSPECTOR2_API CodeVulnerabilityDetails() = default;
35 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const CodeFilePath& GetFilePath() const { return m_filePath; }
43 inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; }
44 template <typename FilePathT = CodeFilePath>
45 void SetFilePath(FilePathT&& value) {
46 m_filePathHasBeenSet = true;
47 m_filePath = std::forward<FilePathT>(value);
48 }
49 template <typename FilePathT = CodeFilePath>
51 SetFilePath(std::forward<FilePathT>(value));
52 return *this;
53 }
55
57
66 inline const Aws::Vector<Aws::String>& GetDetectorTags() const { return m_detectorTags; }
67 inline bool DetectorTagsHasBeenSet() const { return m_detectorTagsHasBeenSet; }
68 template <typename DetectorTagsT = Aws::Vector<Aws::String>>
69 void SetDetectorTags(DetectorTagsT&& value) {
70 m_detectorTagsHasBeenSet = true;
71 m_detectorTags = std::forward<DetectorTagsT>(value);
72 }
73 template <typename DetectorTagsT = Aws::Vector<Aws::String>>
75 SetDetectorTags(std::forward<DetectorTagsT>(value));
76 return *this;
77 }
78 template <typename DetectorTagsT = Aws::String>
79 CodeVulnerabilityDetails& AddDetectorTags(DetectorTagsT&& value) {
80 m_detectorTagsHasBeenSet = true;
81 m_detectorTags.emplace_back(std::forward<DetectorTagsT>(value));
82 return *this;
83 }
85
87
91 inline const Aws::Vector<Aws::String>& GetReferenceUrls() const { return m_referenceUrls; }
92 inline bool ReferenceUrlsHasBeenSet() const { return m_referenceUrlsHasBeenSet; }
93 template <typename ReferenceUrlsT = Aws::Vector<Aws::String>>
94 void SetReferenceUrls(ReferenceUrlsT&& value) {
95 m_referenceUrlsHasBeenSet = true;
96 m_referenceUrls = std::forward<ReferenceUrlsT>(value);
97 }
98 template <typename ReferenceUrlsT = Aws::Vector<Aws::String>>
100 SetReferenceUrls(std::forward<ReferenceUrlsT>(value));
101 return *this;
102 }
103 template <typename ReferenceUrlsT = Aws::String>
105 m_referenceUrlsHasBeenSet = true;
106 m_referenceUrls.emplace_back(std::forward<ReferenceUrlsT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::String& GetRuleId() const { return m_ruleId; }
116 inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; }
117 template <typename RuleIdT = Aws::String>
118 void SetRuleId(RuleIdT&& value) {
119 m_ruleIdHasBeenSet = true;
120 m_ruleId = std::forward<RuleIdT>(value);
121 }
122 template <typename RuleIdT = Aws::String>
124 SetRuleId(std::forward<RuleIdT>(value));
125 return *this;
126 }
128
130
134 inline const Aws::String& GetSourceLambdaLayerArn() const { return m_sourceLambdaLayerArn; }
135 inline bool SourceLambdaLayerArnHasBeenSet() const { return m_sourceLambdaLayerArnHasBeenSet; }
136 template <typename SourceLambdaLayerArnT = Aws::String>
137 void SetSourceLambdaLayerArn(SourceLambdaLayerArnT&& value) {
138 m_sourceLambdaLayerArnHasBeenSet = true;
139 m_sourceLambdaLayerArn = std::forward<SourceLambdaLayerArnT>(value);
140 }
141 template <typename SourceLambdaLayerArnT = Aws::String>
142 CodeVulnerabilityDetails& WithSourceLambdaLayerArn(SourceLambdaLayerArnT&& value) {
143 SetSourceLambdaLayerArn(std::forward<SourceLambdaLayerArnT>(value));
144 return *this;
145 }
147
149
155 inline const Aws::String& GetDetectorId() const { return m_detectorId; }
156 inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
157 template <typename DetectorIdT = Aws::String>
158 void SetDetectorId(DetectorIdT&& value) {
159 m_detectorIdHasBeenSet = true;
160 m_detectorId = std::forward<DetectorIdT>(value);
161 }
162 template <typename DetectorIdT = Aws::String>
164 SetDetectorId(std::forward<DetectorIdT>(value));
165 return *this;
166 }
168
170
176 inline const Aws::String& GetDetectorName() const { return m_detectorName; }
177 inline bool DetectorNameHasBeenSet() const { return m_detectorNameHasBeenSet; }
178 template <typename DetectorNameT = Aws::String>
179 void SetDetectorName(DetectorNameT&& value) {
180 m_detectorNameHasBeenSet = true;
181 m_detectorName = std::forward<DetectorNameT>(value);
182 }
183 template <typename DetectorNameT = Aws::String>
185 SetDetectorName(std::forward<DetectorNameT>(value));
186 return *this;
187 }
189
191
195 inline const Aws::Vector<Aws::String>& GetCwes() const { return m_cwes; }
196 inline bool CwesHasBeenSet() const { return m_cwesHasBeenSet; }
197 template <typename CwesT = Aws::Vector<Aws::String>>
198 void SetCwes(CwesT&& value) {
199 m_cwesHasBeenSet = true;
200 m_cwes = std::forward<CwesT>(value);
201 }
202 template <typename CwesT = Aws::Vector<Aws::String>>
204 SetCwes(std::forward<CwesT>(value));
205 return *this;
206 }
207 template <typename CwesT = Aws::String>
209 m_cwesHasBeenSet = true;
210 m_cwes.emplace_back(std::forward<CwesT>(value));
211 return *this;
212 }
214 private:
215 CodeFilePath m_filePath;
216
217 Aws::Vector<Aws::String> m_detectorTags;
218
219 Aws::Vector<Aws::String> m_referenceUrls;
220
221 Aws::String m_ruleId;
222
223 Aws::String m_sourceLambdaLayerArn;
224
225 Aws::String m_detectorId;
226
227 Aws::String m_detectorName;
228
230 bool m_filePathHasBeenSet = false;
231 bool m_detectorTagsHasBeenSet = false;
232 bool m_referenceUrlsHasBeenSet = false;
233 bool m_ruleIdHasBeenSet = false;
234 bool m_sourceLambdaLayerArnHasBeenSet = false;
235 bool m_detectorIdHasBeenSet = false;
236 bool m_detectorNameHasBeenSet = false;
237 bool m_cwesHasBeenSet = false;
238};
239
240} // namespace Model
241} // namespace Inspector2
242} // namespace Aws
CodeVulnerabilityDetails & WithReferenceUrls(ReferenceUrlsT &&value)
const Aws::Vector< Aws::String > & GetCwes() const
AWS_INSPECTOR2_API CodeVulnerabilityDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_INSPECTOR2_API CodeVulnerabilityDetails(Aws::Utils::Json::JsonView jsonValue)
CodeVulnerabilityDetails & WithDetectorId(DetectorIdT &&value)
CodeVulnerabilityDetails & WithSourceLambdaLayerArn(SourceLambdaLayerArnT &&value)
CodeVulnerabilityDetails & AddCwes(CwesT &&value)
CodeVulnerabilityDetails & WithDetectorTags(DetectorTagsT &&value)
CodeVulnerabilityDetails & WithCwes(CwesT &&value)
CodeVulnerabilityDetails & AddReferenceUrls(ReferenceUrlsT &&value)
const Aws::Vector< Aws::String > & GetReferenceUrls() const
CodeVulnerabilityDetails & AddDetectorTags(DetectorTagsT &&value)
CodeVulnerabilityDetails & WithRuleId(RuleIdT &&value)
CodeVulnerabilityDetails & WithDetectorName(DetectorNameT &&value)
const Aws::Vector< Aws::String > & GetDetectorTags() const
CodeVulnerabilityDetails & WithFilePath(FilePathT &&value)
AWS_INSPECTOR2_API CodeVulnerabilityDetails()=default
void SetSourceLambdaLayerArn(SourceLambdaLayerArnT &&value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() 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