AWS SDK for C++

AWS SDK for C++ Version 1.11.904

Loading...
Searching...
No Matches
CreateCodeReviewResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/securityagent/SecurityAgent_EXPORTS.h>
11#include <aws/securityagent/model/Assets.h>
12#include <aws/securityagent/model/CloudWatchLog.h>
13#include <aws/securityagent/model/CodeRemediationStrategy.h>
14#include <aws/securityagent/model/ReportDestination.h>
15#include <aws/securityagent/model/ReportFilters.h>
16#include <aws/securityagent/model/ValidationMode.h>
17
18#include <utility>
19
20namespace Aws {
21template <typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils {
25namespace Json {
26class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace SecurityAgent {
30namespace Model {
37 public:
38 AWS_SECURITYAGENT_API CreateCodeReviewResult() = default;
41
43
46 inline const Aws::String& GetCodeReviewId() const { return m_codeReviewId; }
47 template <typename CodeReviewIdT = Aws::String>
48 void SetCodeReviewId(CodeReviewIdT&& value) {
49 m_codeReviewIdHasBeenSet = true;
50 m_codeReviewId = std::forward<CodeReviewIdT>(value);
51 }
52 template <typename CodeReviewIdT = Aws::String>
53 CreateCodeReviewResult& WithCodeReviewId(CodeReviewIdT&& value) {
54 SetCodeReviewId(std::forward<CodeReviewIdT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetTitle() const { return m_title; }
64 template <typename TitleT = Aws::String>
65 void SetTitle(TitleT&& value) {
66 m_titleHasBeenSet = true;
67 m_title = std::forward<TitleT>(value);
68 }
69 template <typename TitleT = Aws::String>
71 SetTitle(std::forward<TitleT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
81 template <typename CreatedAtT = Aws::Utils::DateTime>
82 void SetCreatedAt(CreatedAtT&& value) {
83 m_createdAtHasBeenSet = true;
84 m_createdAt = std::forward<CreatedAtT>(value);
85 }
86 template <typename CreatedAtT = Aws::Utils::DateTime>
88 SetCreatedAt(std::forward<CreatedAtT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
98 template <typename UpdatedAtT = Aws::Utils::DateTime>
99 void SetUpdatedAt(UpdatedAtT&& value) {
100 m_updatedAtHasBeenSet = true;
101 m_updatedAt = std::forward<UpdatedAtT>(value);
102 }
103 template <typename UpdatedAtT = Aws::Utils::DateTime>
105 SetUpdatedAt(std::forward<UpdatedAtT>(value));
106 return *this;
107 }
109
111
114 inline const Assets& GetAssets() const { return m_assets; }
115 template <typename AssetsT = Assets>
116 void SetAssets(AssetsT&& value) {
117 m_assetsHasBeenSet = true;
118 m_assets = std::forward<AssetsT>(value);
119 }
120 template <typename AssetsT = Assets>
122 SetAssets(std::forward<AssetsT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
132 template <typename ServiceRoleT = Aws::String>
133 void SetServiceRole(ServiceRoleT&& value) {
134 m_serviceRoleHasBeenSet = true;
135 m_serviceRole = std::forward<ServiceRoleT>(value);
136 }
137 template <typename ServiceRoleT = Aws::String>
139 SetServiceRole(std::forward<ServiceRoleT>(value));
140 return *this;
141 }
143
145
148 inline const CloudWatchLog& GetLogConfig() const { return m_logConfig; }
149 template <typename LogConfigT = CloudWatchLog>
150 void SetLogConfig(LogConfigT&& value) {
151 m_logConfigHasBeenSet = true;
152 m_logConfig = std::forward<LogConfigT>(value);
153 }
154 template <typename LogConfigT = CloudWatchLog>
156 SetLogConfig(std::forward<LogConfigT>(value));
157 return *this;
158 }
160
162
165 inline const Aws::String& GetAgentSpaceId() const { return m_agentSpaceId; }
166 template <typename AgentSpaceIdT = Aws::String>
167 void SetAgentSpaceId(AgentSpaceIdT&& value) {
168 m_agentSpaceIdHasBeenSet = true;
169 m_agentSpaceId = std::forward<AgentSpaceIdT>(value);
170 }
171 template <typename AgentSpaceIdT = Aws::String>
172 CreateCodeReviewResult& WithAgentSpaceId(AgentSpaceIdT&& value) {
173 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
174 return *this;
175 }
177
179
182 inline CodeRemediationStrategy GetCodeRemediationStrategy() const { return m_codeRemediationStrategy; }
184 m_codeRemediationStrategyHasBeenSet = true;
185 m_codeRemediationStrategy = value;
186 }
189 return *this;
190 }
192
194
197 inline ValidationMode GetValidationMode() const { return m_validationMode; }
199 m_validationModeHasBeenSet = true;
200 m_validationMode = value;
201 }
203 SetValidationMode(value);
204 return *this;
205 }
207
209
213 inline double GetMaxTaskHours() const { return m_maxTaskHours; }
214 inline void SetMaxTaskHours(double value) {
215 m_maxTaskHoursHasBeenSet = true;
216 m_maxTaskHours = value;
217 }
219 SetMaxTaskHours(value);
220 return *this;
221 }
223
225
229 inline const ReportDestination& GetReportDestination() const { return m_reportDestination; }
230 template <typename ReportDestinationT = ReportDestination>
231 void SetReportDestination(ReportDestinationT&& value) {
232 m_reportDestinationHasBeenSet = true;
233 m_reportDestination = std::forward<ReportDestinationT>(value);
234 }
235 template <typename ReportDestinationT = ReportDestination>
236 CreateCodeReviewResult& WithReportDestination(ReportDestinationT&& value) {
237 SetReportDestination(std::forward<ReportDestinationT>(value));
238 return *this;
239 }
241
243
246 inline const ReportFilters& GetReportFilters() const { return m_reportFilters; }
247 template <typename ReportFiltersT = ReportFilters>
248 void SetReportFilters(ReportFiltersT&& value) {
249 m_reportFiltersHasBeenSet = true;
250 m_reportFilters = std::forward<ReportFiltersT>(value);
251 }
252 template <typename ReportFiltersT = ReportFilters>
253 CreateCodeReviewResult& WithReportFilters(ReportFiltersT&& value) {
254 SetReportFilters(std::forward<ReportFiltersT>(value));
255 return *this;
256 }
258
260
261 inline const Aws::String& GetRequestId() const { return m_requestId; }
262 template <typename RequestIdT = Aws::String>
263 void SetRequestId(RequestIdT&& value) {
264 m_requestIdHasBeenSet = true;
265 m_requestId = std::forward<RequestIdT>(value);
266 }
267 template <typename RequestIdT = Aws::String>
269 SetRequestId(std::forward<RequestIdT>(value));
270 return *this;
271 }
273 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
274
275 private:
276 Aws::String m_codeReviewId;
277
278 Aws::String m_title;
279
280 Aws::Utils::DateTime m_createdAt{};
281
282 Aws::Utils::DateTime m_updatedAt{};
283
284 Assets m_assets;
285
286 Aws::String m_serviceRole;
287
288 CloudWatchLog m_logConfig;
289
290 Aws::String m_agentSpaceId;
291
293
294 ValidationMode m_validationMode{ValidationMode::NOT_SET};
295
296 double m_maxTaskHours{0.0};
297
298 ReportDestination m_reportDestination;
299
300 ReportFilters m_reportFilters;
301
302 Aws::String m_requestId;
303 Aws::Http::HttpResponseCode m_HttpResponseCode;
304 bool m_codeReviewIdHasBeenSet = false;
305 bool m_titleHasBeenSet = false;
306 bool m_createdAtHasBeenSet = false;
307 bool m_updatedAtHasBeenSet = false;
308 bool m_assetsHasBeenSet = false;
309 bool m_serviceRoleHasBeenSet = false;
310 bool m_logConfigHasBeenSet = false;
311 bool m_agentSpaceIdHasBeenSet = false;
312 bool m_codeRemediationStrategyHasBeenSet = false;
313 bool m_validationModeHasBeenSet = false;
314 bool m_maxTaskHoursHasBeenSet = false;
315 bool m_reportDestinationHasBeenSet = false;
316 bool m_reportFiltersHasBeenSet = false;
317 bool m_requestIdHasBeenSet = false;
318};
319
320} // namespace Model
321} // namespace SecurityAgent
322} // namespace Aws
CreateCodeReviewResult & WithCodeReviewId(CodeReviewIdT &&value)
CreateCodeReviewResult & WithCreatedAt(CreatedAtT &&value)
CreateCodeReviewResult & WithAssets(AssetsT &&value)
AWS_SECURITYAGENT_API CreateCodeReviewResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateCodeReviewResult & WithLogConfig(LogConfigT &&value)
AWS_SECURITYAGENT_API CreateCodeReviewResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateCodeReviewResult & WithServiceRole(ServiceRoleT &&value)
CreateCodeReviewResult & WithReportDestination(ReportDestinationT &&value)
CreateCodeReviewResult & WithCodeRemediationStrategy(CodeRemediationStrategy value)
CreateCodeReviewResult & WithReportFilters(ReportFiltersT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
CreateCodeReviewResult & WithRequestId(RequestIdT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
AWS_SECURITYAGENT_API CreateCodeReviewResult()=default
CreateCodeReviewResult & WithValidationMode(ValidationMode value)
CreateCodeReviewResult & WithMaxTaskHours(double value)
void SetCodeRemediationStrategy(CodeRemediationStrategy value)
CreateCodeReviewResult & WithAgentSpaceId(AgentSpaceIdT &&value)
CreateCodeReviewResult & WithTitle(TitleT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
CreateCodeReviewResult & WithUpdatedAt(UpdatedAtT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue