AWS SDK for C++

AWS SDK for C++ Version 1.11.903

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/ReportDestination.h>
19#include <aws/securityagent/model/SourceCodeRepository.h>
20#include <aws/securityagent/model/Step.h>
21
22#include <utility>
23
24namespace Aws {
25namespace Utils {
26namespace Json {
27class JsonValue;
28class JsonView;
29} // namespace Json
30} // namespace Utils
31namespace SecurityAgent {
32namespace Model {
33
42 public:
43 AWS_SECURITYAGENT_API CodeReviewJob() = default;
44 AWS_SECURITYAGENT_API CodeReviewJob(Aws::Utils::Json::JsonView jsonValue);
45 AWS_SECURITYAGENT_API CodeReviewJob& operator=(Aws::Utils::Json::JsonView jsonValue);
46 AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
47
49
52 inline const Aws::String& GetCodeReviewJobId() const { return m_codeReviewJobId; }
53 inline bool CodeReviewJobIdHasBeenSet() const { return m_codeReviewJobIdHasBeenSet; }
54 template <typename CodeReviewJobIdT = Aws::String>
55 void SetCodeReviewJobId(CodeReviewJobIdT&& value) {
56 m_codeReviewJobIdHasBeenSet = true;
57 m_codeReviewJobId = std::forward<CodeReviewJobIdT>(value);
58 }
59 template <typename CodeReviewJobIdT = Aws::String>
60 CodeReviewJob& WithCodeReviewJobId(CodeReviewJobIdT&& value) {
61 SetCodeReviewJobId(std::forward<CodeReviewJobIdT>(value));
62 return *this;
63 }
65
67
70 inline const Aws::String& GetCodeReviewId() const { return m_codeReviewId; }
71 inline bool CodeReviewIdHasBeenSet() const { return m_codeReviewIdHasBeenSet; }
72 template <typename CodeReviewIdT = Aws::String>
73 void SetCodeReviewId(CodeReviewIdT&& value) {
74 m_codeReviewIdHasBeenSet = true;
75 m_codeReviewId = std::forward<CodeReviewIdT>(value);
76 }
77 template <typename CodeReviewIdT = Aws::String>
78 CodeReviewJob& WithCodeReviewId(CodeReviewIdT&& value) {
79 SetCodeReviewId(std::forward<CodeReviewIdT>(value));
80 return *this;
81 }
83
85
88 inline const Aws::String& GetTitle() const { return m_title; }
89 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
90 template <typename TitleT = Aws::String>
91 void SetTitle(TitleT&& value) {
92 m_titleHasBeenSet = true;
93 m_title = std::forward<TitleT>(value);
94 }
95 template <typename TitleT = Aws::String>
96 CodeReviewJob& WithTitle(TitleT&& value) {
97 SetTitle(std::forward<TitleT>(value));
98 return *this;
99 }
101
103
106 inline const Aws::String& GetOverview() const { return m_overview; }
107 inline bool OverviewHasBeenSet() const { return m_overviewHasBeenSet; }
108 template <typename OverviewT = Aws::String>
109 void SetOverview(OverviewT&& value) {
110 m_overviewHasBeenSet = true;
111 m_overview = std::forward<OverviewT>(value);
112 }
113 template <typename OverviewT = Aws::String>
114 CodeReviewJob& WithOverview(OverviewT&& value) {
115 SetOverview(std::forward<OverviewT>(value));
116 return *this;
117 }
119
121
124 inline JobStatus GetStatus() const { return m_status; }
125 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
126 inline void SetStatus(JobStatus value) {
127 m_statusHasBeenSet = true;
128 m_status = value;
129 }
131 SetStatus(value);
132 return *this;
133 }
135
137
140 inline const Aws::Vector<DocumentInfo>& GetDocuments() const { return m_documents; }
141 inline bool DocumentsHasBeenSet() const { return m_documentsHasBeenSet; }
142 template <typename DocumentsT = Aws::Vector<DocumentInfo>>
143 void SetDocuments(DocumentsT&& value) {
144 m_documentsHasBeenSet = true;
145 m_documents = std::forward<DocumentsT>(value);
146 }
147 template <typename DocumentsT = Aws::Vector<DocumentInfo>>
148 CodeReviewJob& WithDocuments(DocumentsT&& value) {
149 SetDocuments(std::forward<DocumentsT>(value));
150 return *this;
151 }
152 template <typename DocumentsT = DocumentInfo>
153 CodeReviewJob& AddDocuments(DocumentsT&& value) {
154 m_documentsHasBeenSet = true;
155 m_documents.emplace_back(std::forward<DocumentsT>(value));
156 return *this;
157 }
159
161
164 inline const Aws::Vector<SourceCodeRepository>& GetSourceCode() const { return m_sourceCode; }
165 inline bool SourceCodeHasBeenSet() const { return m_sourceCodeHasBeenSet; }
166 template <typename SourceCodeT = Aws::Vector<SourceCodeRepository>>
167 void SetSourceCode(SourceCodeT&& value) {
168 m_sourceCodeHasBeenSet = true;
169 m_sourceCode = std::forward<SourceCodeT>(value);
170 }
171 template <typename SourceCodeT = Aws::Vector<SourceCodeRepository>>
172 CodeReviewJob& WithSourceCode(SourceCodeT&& value) {
173 SetSourceCode(std::forward<SourceCodeT>(value));
174 return *this;
175 }
176 template <typename SourceCodeT = SourceCodeRepository>
177 CodeReviewJob& AddSourceCode(SourceCodeT&& value) {
178 m_sourceCodeHasBeenSet = true;
179 m_sourceCode.emplace_back(std::forward<SourceCodeT>(value));
180 return *this;
181 }
183
185
188 inline const Aws::Vector<Step>& GetSteps() const { return m_steps; }
189 inline bool StepsHasBeenSet() const { return m_stepsHasBeenSet; }
190 template <typename StepsT = Aws::Vector<Step>>
191 void SetSteps(StepsT&& value) {
192 m_stepsHasBeenSet = true;
193 m_steps = std::forward<StepsT>(value);
194 }
195 template <typename StepsT = Aws::Vector<Step>>
196 CodeReviewJob& WithSteps(StepsT&& value) {
197 SetSteps(std::forward<StepsT>(value));
198 return *this;
199 }
200 template <typename StepsT = Step>
201 CodeReviewJob& AddSteps(StepsT&& value) {
202 m_stepsHasBeenSet = true;
203 m_steps.emplace_back(std::forward<StepsT>(value));
204 return *this;
205 }
207
209
212 inline const Aws::Vector<ExecutionContext>& GetExecutionContext() const { return m_executionContext; }
213 inline bool ExecutionContextHasBeenSet() const { return m_executionContextHasBeenSet; }
214 template <typename ExecutionContextT = Aws::Vector<ExecutionContext>>
215 void SetExecutionContext(ExecutionContextT&& value) {
216 m_executionContextHasBeenSet = true;
217 m_executionContext = std::forward<ExecutionContextT>(value);
218 }
219 template <typename ExecutionContextT = Aws::Vector<ExecutionContext>>
220 CodeReviewJob& WithExecutionContext(ExecutionContextT&& value) {
221 SetExecutionContext(std::forward<ExecutionContextT>(value));
222 return *this;
223 }
224 template <typename ExecutionContextT = ExecutionContext>
225 CodeReviewJob& AddExecutionContext(ExecutionContextT&& value) {
226 m_executionContextHasBeenSet = true;
227 m_executionContext.emplace_back(std::forward<ExecutionContextT>(value));
228 return *this;
229 }
231
233
236 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
237 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
238 template <typename ServiceRoleT = Aws::String>
239 void SetServiceRole(ServiceRoleT&& value) {
240 m_serviceRoleHasBeenSet = true;
241 m_serviceRole = std::forward<ServiceRoleT>(value);
242 }
243 template <typename ServiceRoleT = Aws::String>
244 CodeReviewJob& WithServiceRole(ServiceRoleT&& value) {
245 SetServiceRole(std::forward<ServiceRoleT>(value));
246 return *this;
247 }
249
251
254 inline const CloudWatchLog& GetLogConfig() const { return m_logConfig; }
255 inline bool LogConfigHasBeenSet() const { return m_logConfigHasBeenSet; }
256 template <typename LogConfigT = CloudWatchLog>
257 void SetLogConfig(LogConfigT&& value) {
258 m_logConfigHasBeenSet = true;
259 m_logConfig = std::forward<LogConfigT>(value);
260 }
261 template <typename LogConfigT = CloudWatchLog>
262 CodeReviewJob& WithLogConfig(LogConfigT&& value) {
263 SetLogConfig(std::forward<LogConfigT>(value));
264 return *this;
265 }
267
269
272 inline const ErrorInformation& GetErrorInformation() const { return m_errorInformation; }
273 inline bool ErrorInformationHasBeenSet() const { return m_errorInformationHasBeenSet; }
274 template <typename ErrorInformationT = ErrorInformation>
275 void SetErrorInformation(ErrorInformationT&& value) {
276 m_errorInformationHasBeenSet = true;
277 m_errorInformation = std::forward<ErrorInformationT>(value);
278 }
279 template <typename ErrorInformationT = ErrorInformation>
280 CodeReviewJob& WithErrorInformation(ErrorInformationT&& value) {
281 SetErrorInformation(std::forward<ErrorInformationT>(value));
282 return *this;
283 }
285
287
290 inline const Aws::Vector<IntegratedRepository>& GetIntegratedRepositories() const { return m_integratedRepositories; }
291 inline bool IntegratedRepositoriesHasBeenSet() const { return m_integratedRepositoriesHasBeenSet; }
292 template <typename IntegratedRepositoriesT = Aws::Vector<IntegratedRepository>>
293 void SetIntegratedRepositories(IntegratedRepositoriesT&& value) {
294 m_integratedRepositoriesHasBeenSet = true;
295 m_integratedRepositories = std::forward<IntegratedRepositoriesT>(value);
296 }
297 template <typename IntegratedRepositoriesT = Aws::Vector<IntegratedRepository>>
298 CodeReviewJob& WithIntegratedRepositories(IntegratedRepositoriesT&& value) {
299 SetIntegratedRepositories(std::forward<IntegratedRepositoriesT>(value));
300 return *this;
301 }
302 template <typename IntegratedRepositoriesT = IntegratedRepository>
303 CodeReviewJob& AddIntegratedRepositories(IntegratedRepositoriesT&& value) {
304 m_integratedRepositoriesHasBeenSet = true;
305 m_integratedRepositories.emplace_back(std::forward<IntegratedRepositoriesT>(value));
306 return *this;
307 }
309
311
314 inline CodeRemediationStrategy GetCodeRemediationStrategy() const { return m_codeRemediationStrategy; }
315 inline bool CodeRemediationStrategyHasBeenSet() const { return m_codeRemediationStrategyHasBeenSet; }
317 m_codeRemediationStrategyHasBeenSet = true;
318 m_codeRemediationStrategy = value;
319 }
322 return *this;
323 }
325
327
332 inline double GetMaxTaskHours() const { return m_maxTaskHours; }
333 inline bool MaxTaskHoursHasBeenSet() const { return m_maxTaskHoursHasBeenSet; }
334 inline void SetMaxTaskHours(double value) {
335 m_maxTaskHoursHasBeenSet = true;
336 m_maxTaskHours = value;
337 }
338 inline CodeReviewJob& WithMaxTaskHours(double value) {
339 SetMaxTaskHours(value);
340 return *this;
341 }
343
345
349 inline const ReportDestination& GetReportDestination() const { return m_reportDestination; }
350 inline bool ReportDestinationHasBeenSet() const { return m_reportDestinationHasBeenSet; }
351 template <typename ReportDestinationT = ReportDestination>
352 void SetReportDestination(ReportDestinationT&& value) {
353 m_reportDestinationHasBeenSet = true;
354 m_reportDestination = std::forward<ReportDestinationT>(value);
355 }
356 template <typename ReportDestinationT = ReportDestination>
357 CodeReviewJob& WithReportDestination(ReportDestinationT&& value) {
358 SetReportDestination(std::forward<ReportDestinationT>(value));
359 return *this;
360 }
362
364
367 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
368 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
369 template <typename CreatedAtT = Aws::Utils::DateTime>
370 void SetCreatedAt(CreatedAtT&& value) {
371 m_createdAtHasBeenSet = true;
372 m_createdAt = std::forward<CreatedAtT>(value);
373 }
374 template <typename CreatedAtT = Aws::Utils::DateTime>
375 CodeReviewJob& WithCreatedAt(CreatedAtT&& value) {
376 SetCreatedAt(std::forward<CreatedAtT>(value));
377 return *this;
378 }
380
382
385 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
386 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
387 template <typename UpdatedAtT = Aws::Utils::DateTime>
388 void SetUpdatedAt(UpdatedAtT&& value) {
389 m_updatedAtHasBeenSet = true;
390 m_updatedAt = std::forward<UpdatedAtT>(value);
391 }
392 template <typename UpdatedAtT = Aws::Utils::DateTime>
393 CodeReviewJob& WithUpdatedAt(UpdatedAtT&& value) {
394 SetUpdatedAt(std::forward<UpdatedAtT>(value));
395 return *this;
396 }
398 private:
399 Aws::String m_codeReviewJobId;
400
401 Aws::String m_codeReviewId;
402
403 Aws::String m_title;
404
405 Aws::String m_overview;
406
408
409 Aws::Vector<DocumentInfo> m_documents;
410
412
413 Aws::Vector<Step> m_steps;
414
415 Aws::Vector<ExecutionContext> m_executionContext;
416
417 Aws::String m_serviceRole;
418
419 CloudWatchLog m_logConfig;
420
421 ErrorInformation m_errorInformation;
422
423 Aws::Vector<IntegratedRepository> m_integratedRepositories;
424
426
427 double m_maxTaskHours{0.0};
428
429 ReportDestination m_reportDestination;
430
431 Aws::Utils::DateTime m_createdAt{};
432
433 Aws::Utils::DateTime m_updatedAt{};
434 bool m_codeReviewJobIdHasBeenSet = false;
435 bool m_codeReviewIdHasBeenSet = false;
436 bool m_titleHasBeenSet = false;
437 bool m_overviewHasBeenSet = false;
438 bool m_statusHasBeenSet = false;
439 bool m_documentsHasBeenSet = false;
440 bool m_sourceCodeHasBeenSet = false;
441 bool m_stepsHasBeenSet = false;
442 bool m_executionContextHasBeenSet = false;
443 bool m_serviceRoleHasBeenSet = false;
444 bool m_logConfigHasBeenSet = false;
445 bool m_errorInformationHasBeenSet = false;
446 bool m_integratedRepositoriesHasBeenSet = false;
447 bool m_codeRemediationStrategyHasBeenSet = false;
448 bool m_maxTaskHoursHasBeenSet = false;
449 bool m_reportDestinationHasBeenSet = false;
450 bool m_createdAtHasBeenSet = false;
451 bool m_updatedAtHasBeenSet = false;
452};
453
454} // namespace Model
455} // namespace SecurityAgent
456} // namespace Aws
CodeRemediationStrategy GetCodeRemediationStrategy() const
AWS_SECURITYAGENT_API CodeReviewJob & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetIntegratedRepositories(IntegratedRepositoriesT &&value)
CodeReviewJob & WithMaxTaskHours(double 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
CodeReviewJob & WithReportDestination(ReportDestinationT &&value)
void SetReportDestination(ReportDestinationT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
const ReportDestination & GetReportDestination() 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