AWS SDK for C++

AWS SDK for C++ Version 1.11.816

Loading...
Searching...
No Matches
CodeReviewJob.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/securityagent/SecurityAgent_EXPORTS.h>
11#include <aws/securityagent/model/CloudWatchLog.h>
12#include <aws/securityagent/model/CodeRemediationStrategy.h>
13#include <aws/securityagent/model/DocumentInfo.h>
14#include <aws/securityagent/model/ErrorInformation.h>
15#include <aws/securityagent/model/ExecutionContext.h>
16#include <aws/securityagent/model/IntegratedRepository.h>
17#include <aws/securityagent/model/JobStatus.h>
18#include <aws/securityagent/model/SourceCodeRepository.h>
19#include <aws/securityagent/model/Step.h>
20
21#include <utility>
22
23namespace Aws {
24namespace Utils {
25namespace Json {
26class JsonValue;
27class JsonView;
28} // namespace Json
29} // namespace Utils
30namespace SecurityAgent {
31namespace Model {
32
41 public:
42 AWS_SECURITYAGENT_API CodeReviewJob() = default;
43 AWS_SECURITYAGENT_API CodeReviewJob(Aws::Utils::Json::JsonView jsonValue);
44 AWS_SECURITYAGENT_API CodeReviewJob& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
46
48
51 inline const Aws::String& GetCodeReviewJobId() const { return m_codeReviewJobId; }
52 inline bool CodeReviewJobIdHasBeenSet() const { return m_codeReviewJobIdHasBeenSet; }
53 template <typename CodeReviewJobIdT = Aws::String>
54 void SetCodeReviewJobId(CodeReviewJobIdT&& value) {
55 m_codeReviewJobIdHasBeenSet = true;
56 m_codeReviewJobId = std::forward<CodeReviewJobIdT>(value);
57 }
58 template <typename CodeReviewJobIdT = Aws::String>
59 CodeReviewJob& WithCodeReviewJobId(CodeReviewJobIdT&& value) {
60 SetCodeReviewJobId(std::forward<CodeReviewJobIdT>(value));
61 return *this;
62 }
64
66
69 inline const Aws::String& GetCodeReviewId() const { return m_codeReviewId; }
70 inline bool CodeReviewIdHasBeenSet() const { return m_codeReviewIdHasBeenSet; }
71 template <typename CodeReviewIdT = Aws::String>
72 void SetCodeReviewId(CodeReviewIdT&& value) {
73 m_codeReviewIdHasBeenSet = true;
74 m_codeReviewId = std::forward<CodeReviewIdT>(value);
75 }
76 template <typename CodeReviewIdT = Aws::String>
77 CodeReviewJob& WithCodeReviewId(CodeReviewIdT&& value) {
78 SetCodeReviewId(std::forward<CodeReviewIdT>(value));
79 return *this;
80 }
82
84
87 inline const Aws::String& GetTitle() const { return m_title; }
88 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
89 template <typename TitleT = Aws::String>
90 void SetTitle(TitleT&& value) {
91 m_titleHasBeenSet = true;
92 m_title = std::forward<TitleT>(value);
93 }
94 template <typename TitleT = Aws::String>
95 CodeReviewJob& WithTitle(TitleT&& value) {
96 SetTitle(std::forward<TitleT>(value));
97 return *this;
98 }
100
102
105 inline const Aws::String& GetOverview() const { return m_overview; }
106 inline bool OverviewHasBeenSet() const { return m_overviewHasBeenSet; }
107 template <typename OverviewT = Aws::String>
108 void SetOverview(OverviewT&& value) {
109 m_overviewHasBeenSet = true;
110 m_overview = std::forward<OverviewT>(value);
111 }
112 template <typename OverviewT = Aws::String>
113 CodeReviewJob& WithOverview(OverviewT&& value) {
114 SetOverview(std::forward<OverviewT>(value));
115 return *this;
116 }
118
120
123 inline JobStatus GetStatus() const { return m_status; }
124 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
125 inline void SetStatus(JobStatus value) {
126 m_statusHasBeenSet = true;
127 m_status = value;
128 }
130 SetStatus(value);
131 return *this;
132 }
134
136
139 inline const Aws::Vector<DocumentInfo>& GetDocuments() const { return m_documents; }
140 inline bool DocumentsHasBeenSet() const { return m_documentsHasBeenSet; }
141 template <typename DocumentsT = Aws::Vector<DocumentInfo>>
142 void SetDocuments(DocumentsT&& value) {
143 m_documentsHasBeenSet = true;
144 m_documents = std::forward<DocumentsT>(value);
145 }
146 template <typename DocumentsT = Aws::Vector<DocumentInfo>>
147 CodeReviewJob& WithDocuments(DocumentsT&& value) {
148 SetDocuments(std::forward<DocumentsT>(value));
149 return *this;
150 }
151 template <typename DocumentsT = DocumentInfo>
152 CodeReviewJob& AddDocuments(DocumentsT&& value) {
153 m_documentsHasBeenSet = true;
154 m_documents.emplace_back(std::forward<DocumentsT>(value));
155 return *this;
156 }
158
160
163 inline const Aws::Vector<SourceCodeRepository>& GetSourceCode() const { return m_sourceCode; }
164 inline bool SourceCodeHasBeenSet() const { return m_sourceCodeHasBeenSet; }
165 template <typename SourceCodeT = Aws::Vector<SourceCodeRepository>>
166 void SetSourceCode(SourceCodeT&& value) {
167 m_sourceCodeHasBeenSet = true;
168 m_sourceCode = std::forward<SourceCodeT>(value);
169 }
170 template <typename SourceCodeT = Aws::Vector<SourceCodeRepository>>
171 CodeReviewJob& WithSourceCode(SourceCodeT&& value) {
172 SetSourceCode(std::forward<SourceCodeT>(value));
173 return *this;
174 }
175 template <typename SourceCodeT = SourceCodeRepository>
176 CodeReviewJob& AddSourceCode(SourceCodeT&& value) {
177 m_sourceCodeHasBeenSet = true;
178 m_sourceCode.emplace_back(std::forward<SourceCodeT>(value));
179 return *this;
180 }
182
184
187 inline const Aws::Vector<Step>& GetSteps() const { return m_steps; }
188 inline bool StepsHasBeenSet() const { return m_stepsHasBeenSet; }
189 template <typename StepsT = Aws::Vector<Step>>
190 void SetSteps(StepsT&& value) {
191 m_stepsHasBeenSet = true;
192 m_steps = std::forward<StepsT>(value);
193 }
194 template <typename StepsT = Aws::Vector<Step>>
195 CodeReviewJob& WithSteps(StepsT&& value) {
196 SetSteps(std::forward<StepsT>(value));
197 return *this;
198 }
199 template <typename StepsT = Step>
200 CodeReviewJob& AddSteps(StepsT&& value) {
201 m_stepsHasBeenSet = true;
202 m_steps.emplace_back(std::forward<StepsT>(value));
203 return *this;
204 }
206
208
211 inline const Aws::Vector<ExecutionContext>& GetExecutionContext() const { return m_executionContext; }
212 inline bool ExecutionContextHasBeenSet() const { return m_executionContextHasBeenSet; }
213 template <typename ExecutionContextT = Aws::Vector<ExecutionContext>>
214 void SetExecutionContext(ExecutionContextT&& value) {
215 m_executionContextHasBeenSet = true;
216 m_executionContext = std::forward<ExecutionContextT>(value);
217 }
218 template <typename ExecutionContextT = Aws::Vector<ExecutionContext>>
219 CodeReviewJob& WithExecutionContext(ExecutionContextT&& value) {
220 SetExecutionContext(std::forward<ExecutionContextT>(value));
221 return *this;
222 }
223 template <typename ExecutionContextT = ExecutionContext>
224 CodeReviewJob& AddExecutionContext(ExecutionContextT&& value) {
225 m_executionContextHasBeenSet = true;
226 m_executionContext.emplace_back(std::forward<ExecutionContextT>(value));
227 return *this;
228 }
230
232
235 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
236 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
237 template <typename ServiceRoleT = Aws::String>
238 void SetServiceRole(ServiceRoleT&& value) {
239 m_serviceRoleHasBeenSet = true;
240 m_serviceRole = std::forward<ServiceRoleT>(value);
241 }
242 template <typename ServiceRoleT = Aws::String>
243 CodeReviewJob& WithServiceRole(ServiceRoleT&& value) {
244 SetServiceRole(std::forward<ServiceRoleT>(value));
245 return *this;
246 }
248
250
253 inline const CloudWatchLog& GetLogConfig() const { return m_logConfig; }
254 inline bool LogConfigHasBeenSet() const { return m_logConfigHasBeenSet; }
255 template <typename LogConfigT = CloudWatchLog>
256 void SetLogConfig(LogConfigT&& value) {
257 m_logConfigHasBeenSet = true;
258 m_logConfig = std::forward<LogConfigT>(value);
259 }
260 template <typename LogConfigT = CloudWatchLog>
261 CodeReviewJob& WithLogConfig(LogConfigT&& value) {
262 SetLogConfig(std::forward<LogConfigT>(value));
263 return *this;
264 }
266
268
271 inline const ErrorInformation& GetErrorInformation() const { return m_errorInformation; }
272 inline bool ErrorInformationHasBeenSet() const { return m_errorInformationHasBeenSet; }
273 template <typename ErrorInformationT = ErrorInformation>
274 void SetErrorInformation(ErrorInformationT&& value) {
275 m_errorInformationHasBeenSet = true;
276 m_errorInformation = std::forward<ErrorInformationT>(value);
277 }
278 template <typename ErrorInformationT = ErrorInformation>
279 CodeReviewJob& WithErrorInformation(ErrorInformationT&& value) {
280 SetErrorInformation(std::forward<ErrorInformationT>(value));
281 return *this;
282 }
284
286
289 inline const Aws::Vector<IntegratedRepository>& GetIntegratedRepositories() const { return m_integratedRepositories; }
290 inline bool IntegratedRepositoriesHasBeenSet() const { return m_integratedRepositoriesHasBeenSet; }
291 template <typename IntegratedRepositoriesT = Aws::Vector<IntegratedRepository>>
292 void SetIntegratedRepositories(IntegratedRepositoriesT&& value) {
293 m_integratedRepositoriesHasBeenSet = true;
294 m_integratedRepositories = std::forward<IntegratedRepositoriesT>(value);
295 }
296 template <typename IntegratedRepositoriesT = Aws::Vector<IntegratedRepository>>
297 CodeReviewJob& WithIntegratedRepositories(IntegratedRepositoriesT&& value) {
298 SetIntegratedRepositories(std::forward<IntegratedRepositoriesT>(value));
299 return *this;
300 }
301 template <typename IntegratedRepositoriesT = IntegratedRepository>
302 CodeReviewJob& AddIntegratedRepositories(IntegratedRepositoriesT&& value) {
303 m_integratedRepositoriesHasBeenSet = true;
304 m_integratedRepositories.emplace_back(std::forward<IntegratedRepositoriesT>(value));
305 return *this;
306 }
308
310
313 inline CodeRemediationStrategy GetCodeRemediationStrategy() const { return m_codeRemediationStrategy; }
314 inline bool CodeRemediationStrategyHasBeenSet() const { return m_codeRemediationStrategyHasBeenSet; }
316 m_codeRemediationStrategyHasBeenSet = true;
317 m_codeRemediationStrategy = value;
318 }
321 return *this;
322 }
324
326
329 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
330 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
331 template <typename CreatedAtT = Aws::Utils::DateTime>
332 void SetCreatedAt(CreatedAtT&& value) {
333 m_createdAtHasBeenSet = true;
334 m_createdAt = std::forward<CreatedAtT>(value);
335 }
336 template <typename CreatedAtT = Aws::Utils::DateTime>
337 CodeReviewJob& WithCreatedAt(CreatedAtT&& value) {
338 SetCreatedAt(std::forward<CreatedAtT>(value));
339 return *this;
340 }
342
344
347 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
348 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
349 template <typename UpdatedAtT = Aws::Utils::DateTime>
350 void SetUpdatedAt(UpdatedAtT&& value) {
351 m_updatedAtHasBeenSet = true;
352 m_updatedAt = std::forward<UpdatedAtT>(value);
353 }
354 template <typename UpdatedAtT = Aws::Utils::DateTime>
355 CodeReviewJob& WithUpdatedAt(UpdatedAtT&& value) {
356 SetUpdatedAt(std::forward<UpdatedAtT>(value));
357 return *this;
358 }
360 private:
361 Aws::String m_codeReviewJobId;
362
363 Aws::String m_codeReviewId;
364
365 Aws::String m_title;
366
367 Aws::String m_overview;
368
370
371 Aws::Vector<DocumentInfo> m_documents;
372
374
375 Aws::Vector<Step> m_steps;
376
377 Aws::Vector<ExecutionContext> m_executionContext;
378
379 Aws::String m_serviceRole;
380
381 CloudWatchLog m_logConfig;
382
383 ErrorInformation m_errorInformation;
384
385 Aws::Vector<IntegratedRepository> m_integratedRepositories;
386
388
389 Aws::Utils::DateTime m_createdAt{};
390
391 Aws::Utils::DateTime m_updatedAt{};
392 bool m_codeReviewJobIdHasBeenSet = false;
393 bool m_codeReviewIdHasBeenSet = false;
394 bool m_titleHasBeenSet = false;
395 bool m_overviewHasBeenSet = false;
396 bool m_statusHasBeenSet = false;
397 bool m_documentsHasBeenSet = false;
398 bool m_sourceCodeHasBeenSet = false;
399 bool m_stepsHasBeenSet = false;
400 bool m_executionContextHasBeenSet = false;
401 bool m_serviceRoleHasBeenSet = false;
402 bool m_logConfigHasBeenSet = false;
403 bool m_errorInformationHasBeenSet = false;
404 bool m_integratedRepositoriesHasBeenSet = false;
405 bool m_codeRemediationStrategyHasBeenSet = false;
406 bool m_createdAtHasBeenSet = false;
407 bool m_updatedAtHasBeenSet = false;
408};
409
410} // namespace Model
411} // namespace SecurityAgent
412} // namespace Aws
CodeRemediationStrategy GetCodeRemediationStrategy() const
AWS_SECURITYAGENT_API CodeReviewJob & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetIntegratedRepositories(IntegratedRepositoriesT &&value)
void SetServiceRole(ServiceRoleT &&value)
CodeReviewJob & WithServiceRole(ServiceRoleT &&value)
AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
CodeReviewJob & WithDocuments(DocumentsT &&value)
const Aws::Vector< Step > & GetSteps() const
CodeReviewJob & WithTitle(TitleT &&value)
CodeReviewJob & WithCodeReviewJobId(CodeReviewJobIdT &&value)
CodeReviewJob & AddSteps(StepsT &&value)
AWS_SECURITYAGENT_API CodeReviewJob()=default
void SetCodeReviewJobId(CodeReviewJobIdT &&value)
const Aws::String & GetCodeReviewJobId() const
CodeReviewJob & WithUpdatedAt(UpdatedAtT &&value)
void SetCodeRemediationStrategy(CodeRemediationStrategy value)
CodeReviewJob & WithErrorInformation(ErrorInformationT &&value)
void SetCodeReviewId(CodeReviewIdT &&value)
CodeReviewJob & WithSteps(StepsT &&value)
CodeReviewJob & WithLogConfig(LogConfigT &&value)
CodeReviewJob & WithCreatedAt(CreatedAtT &&value)
const Aws::String & GetServiceRole() const
const ErrorInformation & GetErrorInformation() const
const Aws::Vector< SourceCodeRepository > & GetSourceCode() const
const Aws::Utils::DateTime & GetCreatedAt() const
CodeReviewJob & WithCodeRemediationStrategy(CodeRemediationStrategy value)
CodeReviewJob & AddIntegratedRepositories(IntegratedRepositoriesT &&value)
const Aws::String & GetOverview() const
void SetSourceCode(SourceCodeT &&value)
const Aws::Vector< IntegratedRepository > & GetIntegratedRepositories() const
const Aws::String & GetTitle() const
CodeReviewJob & WithStatus(JobStatus value)
const Aws::String & GetCodeReviewId() const
AWS_SECURITYAGENT_API CodeReviewJob(Aws::Utils::Json::JsonView jsonValue)
void SetErrorInformation(ErrorInformationT &&value)
CodeReviewJob & AddDocuments(DocumentsT &&value)
CodeReviewJob & WithOverview(OverviewT &&value)
CodeReviewJob & AddExecutionContext(ExecutionContextT &&value)
CodeReviewJob & WithCodeReviewId(CodeReviewIdT &&value)
CodeReviewJob & WithSourceCode(SourceCodeT &&value)
const Aws::Vector< ExecutionContext > & GetExecutionContext() const
const CloudWatchLog & GetLogConfig() const
CodeReviewJob & WithExecutionContext(ExecutionContextT &&value)
void SetExecutionContext(ExecutionContextT &&value)
CodeReviewJob & WithIntegratedRepositories(IntegratedRepositoriesT &&value)
const Aws::Vector< DocumentInfo > & GetDocuments() const
CodeReviewJob & AddSourceCode(SourceCodeT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() 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