AWS SDK for C++

AWS SDK for C++ Version 1.11.820

Loading...
Searching...
No Matches
CodeReviewJobTask.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/Category.h>
12#include <aws/securityagent/model/LogLocation.h>
13#include <aws/securityagent/model/RiskType.h>
14#include <aws/securityagent/model/TaskExecutionStatus.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace SecurityAgent {
26namespace Model {
27
36 public:
37 AWS_SECURITYAGENT_API CodeReviewJobTask() = default;
38 AWS_SECURITYAGENT_API CodeReviewJobTask(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SECURITYAGENT_API CodeReviewJobTask& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline const Aws::String& GetTaskId() const { return m_taskId; }
47 inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; }
48 template <typename TaskIdT = Aws::String>
49 void SetTaskId(TaskIdT&& value) {
50 m_taskIdHasBeenSet = true;
51 m_taskId = std::forward<TaskIdT>(value);
52 }
53 template <typename TaskIdT = Aws::String>
54 CodeReviewJobTask& WithTaskId(TaskIdT&& value) {
55 SetTaskId(std::forward<TaskIdT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetCodeReviewId() const { return m_codeReviewId; }
65 inline bool CodeReviewIdHasBeenSet() const { return m_codeReviewIdHasBeenSet; }
66 template <typename CodeReviewIdT = Aws::String>
67 void SetCodeReviewId(CodeReviewIdT&& value) {
68 m_codeReviewIdHasBeenSet = true;
69 m_codeReviewId = std::forward<CodeReviewIdT>(value);
70 }
71 template <typename CodeReviewIdT = Aws::String>
72 CodeReviewJobTask& WithCodeReviewId(CodeReviewIdT&& value) {
73 SetCodeReviewId(std::forward<CodeReviewIdT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::String& GetCodeReviewJobId() const { return m_codeReviewJobId; }
83 inline bool CodeReviewJobIdHasBeenSet() const { return m_codeReviewJobIdHasBeenSet; }
84 template <typename CodeReviewJobIdT = Aws::String>
85 void SetCodeReviewJobId(CodeReviewJobIdT&& value) {
86 m_codeReviewJobIdHasBeenSet = true;
87 m_codeReviewJobId = std::forward<CodeReviewJobIdT>(value);
88 }
89 template <typename CodeReviewJobIdT = Aws::String>
90 CodeReviewJobTask& WithCodeReviewJobId(CodeReviewJobIdT&& value) {
91 SetCodeReviewJobId(std::forward<CodeReviewJobIdT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::String& GetAgentSpaceId() const { return m_agentSpaceId; }
101 inline bool AgentSpaceIdHasBeenSet() const { return m_agentSpaceIdHasBeenSet; }
102 template <typename AgentSpaceIdT = Aws::String>
103 void SetAgentSpaceId(AgentSpaceIdT&& value) {
104 m_agentSpaceIdHasBeenSet = true;
105 m_agentSpaceId = std::forward<AgentSpaceIdT>(value);
106 }
107 template <typename AgentSpaceIdT = Aws::String>
108 CodeReviewJobTask& WithAgentSpaceId(AgentSpaceIdT&& value) {
109 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::String& GetTitle() const { return m_title; }
119 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
120 template <typename TitleT = Aws::String>
121 void SetTitle(TitleT&& value) {
122 m_titleHasBeenSet = true;
123 m_title = std::forward<TitleT>(value);
124 }
125 template <typename TitleT = Aws::String>
126 CodeReviewJobTask& WithTitle(TitleT&& value) {
127 SetTitle(std::forward<TitleT>(value));
128 return *this;
129 }
131
133
136 inline const Aws::String& GetDescription() const { return m_description; }
137 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
138 template <typename DescriptionT = Aws::String>
139 void SetDescription(DescriptionT&& value) {
140 m_descriptionHasBeenSet = true;
141 m_description = std::forward<DescriptionT>(value);
142 }
143 template <typename DescriptionT = Aws::String>
144 CodeReviewJobTask& WithDescription(DescriptionT&& value) {
145 SetDescription(std::forward<DescriptionT>(value));
146 return *this;
147 }
149
151
154 inline const Aws::Vector<Category>& GetCategories() const { return m_categories; }
155 inline bool CategoriesHasBeenSet() const { return m_categoriesHasBeenSet; }
156 template <typename CategoriesT = Aws::Vector<Category>>
157 void SetCategories(CategoriesT&& value) {
158 m_categoriesHasBeenSet = true;
159 m_categories = std::forward<CategoriesT>(value);
160 }
161 template <typename CategoriesT = Aws::Vector<Category>>
162 CodeReviewJobTask& WithCategories(CategoriesT&& value) {
163 SetCategories(std::forward<CategoriesT>(value));
164 return *this;
165 }
166 template <typename CategoriesT = Category>
167 CodeReviewJobTask& AddCategories(CategoriesT&& value) {
168 m_categoriesHasBeenSet = true;
169 m_categories.emplace_back(std::forward<CategoriesT>(value));
170 return *this;
171 }
173
175
178 inline RiskType GetRiskType() const { return m_riskType; }
179 inline bool RiskTypeHasBeenSet() const { return m_riskTypeHasBeenSet; }
180 inline void SetRiskType(RiskType value) {
181 m_riskTypeHasBeenSet = true;
182 m_riskType = value;
183 }
185 SetRiskType(value);
186 return *this;
187 }
189
191
194 inline TaskExecutionStatus GetExecutionStatus() const { return m_executionStatus; }
195 inline bool ExecutionStatusHasBeenSet() const { return m_executionStatusHasBeenSet; }
197 m_executionStatusHasBeenSet = true;
198 m_executionStatus = value;
199 }
201 SetExecutionStatus(value);
202 return *this;
203 }
205
207
210 inline const LogLocation& GetLogsLocation() const { return m_logsLocation; }
211 inline bool LogsLocationHasBeenSet() const { return m_logsLocationHasBeenSet; }
212 template <typename LogsLocationT = LogLocation>
213 void SetLogsLocation(LogsLocationT&& value) {
214 m_logsLocationHasBeenSet = true;
215 m_logsLocation = std::forward<LogsLocationT>(value);
216 }
217 template <typename LogsLocationT = LogLocation>
218 CodeReviewJobTask& WithLogsLocation(LogsLocationT&& value) {
219 SetLogsLocation(std::forward<LogsLocationT>(value));
220 return *this;
221 }
223
225
228 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
229 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
230 template <typename CreatedAtT = Aws::Utils::DateTime>
231 void SetCreatedAt(CreatedAtT&& value) {
232 m_createdAtHasBeenSet = true;
233 m_createdAt = std::forward<CreatedAtT>(value);
234 }
235 template <typename CreatedAtT = Aws::Utils::DateTime>
236 CodeReviewJobTask& WithCreatedAt(CreatedAtT&& value) {
237 SetCreatedAt(std::forward<CreatedAtT>(value));
238 return *this;
239 }
241
243
246 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
247 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
248 template <typename UpdatedAtT = Aws::Utils::DateTime>
249 void SetUpdatedAt(UpdatedAtT&& value) {
250 m_updatedAtHasBeenSet = true;
251 m_updatedAt = std::forward<UpdatedAtT>(value);
252 }
253 template <typename UpdatedAtT = Aws::Utils::DateTime>
254 CodeReviewJobTask& WithUpdatedAt(UpdatedAtT&& value) {
255 SetUpdatedAt(std::forward<UpdatedAtT>(value));
256 return *this;
257 }
259 private:
260 Aws::String m_taskId;
261
262 Aws::String m_codeReviewId;
263
264 Aws::String m_codeReviewJobId;
265
266 Aws::String m_agentSpaceId;
267
268 Aws::String m_title;
269
270 Aws::String m_description;
271
272 Aws::Vector<Category> m_categories;
273
274 RiskType m_riskType{RiskType::NOT_SET};
275
277
278 LogLocation m_logsLocation;
279
280 Aws::Utils::DateTime m_createdAt{};
281
282 Aws::Utils::DateTime m_updatedAt{};
283 bool m_taskIdHasBeenSet = false;
284 bool m_codeReviewIdHasBeenSet = false;
285 bool m_codeReviewJobIdHasBeenSet = false;
286 bool m_agentSpaceIdHasBeenSet = false;
287 bool m_titleHasBeenSet = false;
288 bool m_descriptionHasBeenSet = false;
289 bool m_categoriesHasBeenSet = false;
290 bool m_riskTypeHasBeenSet = false;
291 bool m_executionStatusHasBeenSet = false;
292 bool m_logsLocationHasBeenSet = false;
293 bool m_createdAtHasBeenSet = false;
294 bool m_updatedAtHasBeenSet = false;
295};
296
297} // namespace Model
298} // namespace SecurityAgent
299} // namespace Aws
const Aws::Vector< Category > & GetCategories() const
CodeReviewJobTask & WithUpdatedAt(UpdatedAtT &&value)
AWS_SECURITYAGENT_API CodeReviewJobTask & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetExecutionStatus(TaskExecutionStatus value)
CodeReviewJobTask & WithCodeReviewId(CodeReviewIdT &&value)
CodeReviewJobTask & WithDescription(DescriptionT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
CodeReviewJobTask & WithTitle(TitleT &&value)
AWS_SECURITYAGENT_API CodeReviewJobTask(Aws::Utils::Json::JsonView jsonValue)
CodeReviewJobTask & WithTaskId(TaskIdT &&value)
CodeReviewJobTask & WithRiskType(RiskType value)
AWS_SECURITYAGENT_API CodeReviewJobTask()=default
const Aws::Utils::DateTime & GetCreatedAt() const
CodeReviewJobTask & AddCategories(CategoriesT &&value)
CodeReviewJobTask & WithAgentSpaceId(AgentSpaceIdT &&value)
AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
CodeReviewJobTask & WithCreatedAt(CreatedAtT &&value)
CodeReviewJobTask & WithLogsLocation(LogsLocationT &&value)
CodeReviewJobTask & WithExecutionStatus(TaskExecutionStatus value)
CodeReviewJobTask & WithCodeReviewJobId(CodeReviewJobIdT &&value)
CodeReviewJobTask & WithCategories(CategoriesT &&value)
void SetCodeReviewJobId(CodeReviewJobIdT &&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