AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
CodeReview.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/securityagent/SecurityAgent_EXPORTS.h>
10#include <aws/securityagent/model/Assets.h>
11#include <aws/securityagent/model/CloudWatchLog.h>
12#include <aws/securityagent/model/CodeRemediationStrategy.h>
13#include <aws/securityagent/model/ReportDestination.h>
14#include <aws/securityagent/model/ReportFilters.h>
15#include <aws/securityagent/model/ValidationMode.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace SecurityAgent {
27namespace Model {
28
37 public:
38 AWS_SECURITYAGENT_API CodeReview() = default;
39 AWS_SECURITYAGENT_API CodeReview(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SECURITYAGENT_API CodeReview& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
47 inline const Aws::String& GetCodeReviewId() const { return m_codeReviewId; }
48 inline bool CodeReviewIdHasBeenSet() const { return m_codeReviewIdHasBeenSet; }
49 template <typename CodeReviewIdT = Aws::String>
50 void SetCodeReviewId(CodeReviewIdT&& value) {
51 m_codeReviewIdHasBeenSet = true;
52 m_codeReviewId = std::forward<CodeReviewIdT>(value);
53 }
54 template <typename CodeReviewIdT = Aws::String>
55 CodeReview& WithCodeReviewId(CodeReviewIdT&& value) {
56 SetCodeReviewId(std::forward<CodeReviewIdT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetAgentSpaceId() const { return m_agentSpaceId; }
66 inline bool AgentSpaceIdHasBeenSet() const { return m_agentSpaceIdHasBeenSet; }
67 template <typename AgentSpaceIdT = Aws::String>
68 void SetAgentSpaceId(AgentSpaceIdT&& value) {
69 m_agentSpaceIdHasBeenSet = true;
70 m_agentSpaceId = std::forward<AgentSpaceIdT>(value);
71 }
72 template <typename AgentSpaceIdT = Aws::String>
73 CodeReview& WithAgentSpaceId(AgentSpaceIdT&& value) {
74 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::String& GetTitle() const { return m_title; }
84 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
85 template <typename TitleT = Aws::String>
86 void SetTitle(TitleT&& value) {
87 m_titleHasBeenSet = true;
88 m_title = std::forward<TitleT>(value);
89 }
90 template <typename TitleT = Aws::String>
91 CodeReview& WithTitle(TitleT&& value) {
92 SetTitle(std::forward<TitleT>(value));
93 return *this;
94 }
96
98
101 inline const Assets& GetAssets() const { return m_assets; }
102 inline bool AssetsHasBeenSet() const { return m_assetsHasBeenSet; }
103 template <typename AssetsT = Assets>
104 void SetAssets(AssetsT&& value) {
105 m_assetsHasBeenSet = true;
106 m_assets = std::forward<AssetsT>(value);
107 }
108 template <typename AssetsT = Assets>
109 CodeReview& WithAssets(AssetsT&& value) {
110 SetAssets(std::forward<AssetsT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
120 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
121 template <typename ServiceRoleT = Aws::String>
122 void SetServiceRole(ServiceRoleT&& value) {
123 m_serviceRoleHasBeenSet = true;
124 m_serviceRole = std::forward<ServiceRoleT>(value);
125 }
126 template <typename ServiceRoleT = Aws::String>
127 CodeReview& WithServiceRole(ServiceRoleT&& value) {
128 SetServiceRole(std::forward<ServiceRoleT>(value));
129 return *this;
130 }
132
134
137 inline const CloudWatchLog& GetLogConfig() const { return m_logConfig; }
138 inline bool LogConfigHasBeenSet() const { return m_logConfigHasBeenSet; }
139 template <typename LogConfigT = CloudWatchLog>
140 void SetLogConfig(LogConfigT&& value) {
141 m_logConfigHasBeenSet = true;
142 m_logConfig = std::forward<LogConfigT>(value);
143 }
144 template <typename LogConfigT = CloudWatchLog>
145 CodeReview& WithLogConfig(LogConfigT&& value) {
146 SetLogConfig(std::forward<LogConfigT>(value));
147 return *this;
148 }
150
152
155 inline CodeRemediationStrategy GetCodeRemediationStrategy() const { return m_codeRemediationStrategy; }
156 inline bool CodeRemediationStrategyHasBeenSet() const { return m_codeRemediationStrategyHasBeenSet; }
158 m_codeRemediationStrategyHasBeenSet = true;
159 m_codeRemediationStrategy = value;
160 }
166
168
172 inline ValidationMode GetValidationMode() const { return m_validationMode; }
173 inline bool ValidationModeHasBeenSet() const { return m_validationModeHasBeenSet; }
175 m_validationModeHasBeenSet = true;
176 m_validationMode = value;
177 }
179 SetValidationMode(value);
180 return *this;
181 }
183
185
190 inline double GetMaxTaskHours() const { return m_maxTaskHours; }
191 inline bool MaxTaskHoursHasBeenSet() const { return m_maxTaskHoursHasBeenSet; }
192 inline void SetMaxTaskHours(double value) {
193 m_maxTaskHoursHasBeenSet = true;
194 m_maxTaskHours = value;
195 }
196 inline CodeReview& WithMaxTaskHours(double value) {
197 SetMaxTaskHours(value);
198 return *this;
199 }
201
203
207 inline const ReportDestination& GetReportDestination() const { return m_reportDestination; }
208 inline bool ReportDestinationHasBeenSet() const { return m_reportDestinationHasBeenSet; }
209 template <typename ReportDestinationT = ReportDestination>
210 void SetReportDestination(ReportDestinationT&& value) {
211 m_reportDestinationHasBeenSet = true;
212 m_reportDestination = std::forward<ReportDestinationT>(value);
213 }
214 template <typename ReportDestinationT = ReportDestination>
215 CodeReview& WithReportDestination(ReportDestinationT&& value) {
216 SetReportDestination(std::forward<ReportDestinationT>(value));
217 return *this;
218 }
220
222
225 inline const ReportFilters& GetReportFilters() const { return m_reportFilters; }
226 inline bool ReportFiltersHasBeenSet() const { return m_reportFiltersHasBeenSet; }
227 template <typename ReportFiltersT = ReportFilters>
228 void SetReportFilters(ReportFiltersT&& value) {
229 m_reportFiltersHasBeenSet = true;
230 m_reportFilters = std::forward<ReportFiltersT>(value);
231 }
232 template <typename ReportFiltersT = ReportFilters>
233 CodeReview& WithReportFilters(ReportFiltersT&& value) {
234 SetReportFilters(std::forward<ReportFiltersT>(value));
235 return *this;
236 }
238
240
243 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
244 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
245 template <typename CreatedAtT = Aws::Utils::DateTime>
246 void SetCreatedAt(CreatedAtT&& value) {
247 m_createdAtHasBeenSet = true;
248 m_createdAt = std::forward<CreatedAtT>(value);
249 }
250 template <typename CreatedAtT = Aws::Utils::DateTime>
251 CodeReview& WithCreatedAt(CreatedAtT&& value) {
252 SetCreatedAt(std::forward<CreatedAtT>(value));
253 return *this;
254 }
256
258
261 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
262 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
263 template <typename UpdatedAtT = Aws::Utils::DateTime>
264 void SetUpdatedAt(UpdatedAtT&& value) {
265 m_updatedAtHasBeenSet = true;
266 m_updatedAt = std::forward<UpdatedAtT>(value);
267 }
268 template <typename UpdatedAtT = Aws::Utils::DateTime>
269 CodeReview& WithUpdatedAt(UpdatedAtT&& value) {
270 SetUpdatedAt(std::forward<UpdatedAtT>(value));
271 return *this;
272 }
274 private:
275 Aws::String m_codeReviewId;
276
277 Aws::String m_agentSpaceId;
278
279 Aws::String m_title;
280
281 Assets m_assets;
282
283 Aws::String m_serviceRole;
284
285 CloudWatchLog m_logConfig;
286
288
289 ValidationMode m_validationMode{ValidationMode::NOT_SET};
290
291 double m_maxTaskHours{0.0};
292
293 ReportDestination m_reportDestination;
294
295 ReportFilters m_reportFilters;
296
297 Aws::Utils::DateTime m_createdAt{};
298
299 Aws::Utils::DateTime m_updatedAt{};
300 bool m_codeReviewIdHasBeenSet = false;
301 bool m_agentSpaceIdHasBeenSet = false;
302 bool m_titleHasBeenSet = false;
303 bool m_assetsHasBeenSet = false;
304 bool m_serviceRoleHasBeenSet = false;
305 bool m_logConfigHasBeenSet = false;
306 bool m_codeRemediationStrategyHasBeenSet = false;
307 bool m_validationModeHasBeenSet = false;
308 bool m_maxTaskHoursHasBeenSet = false;
309 bool m_reportDestinationHasBeenSet = false;
310 bool m_reportFiltersHasBeenSet = false;
311 bool m_createdAtHasBeenSet = false;
312 bool m_updatedAtHasBeenSet = false;
313};
314
315} // namespace Model
316} // namespace SecurityAgent
317} // namespace Aws
CodeReview & WithAssets(AssetsT &&value)
Definition CodeReview.h:109
CodeReview & WithMaxTaskHours(double value)
Definition CodeReview.h:196
CodeReview & WithValidationMode(ValidationMode value)
Definition CodeReview.h:178
const ReportFilters & GetReportFilters() const
Definition CodeReview.h:225
CodeReview & WithLogConfig(LogConfigT &&value)
Definition CodeReview.h:145
const ReportDestination & GetReportDestination() const
Definition CodeReview.h:207
CodeReview & WithUpdatedAt(UpdatedAtT &&value)
Definition CodeReview.h:269
CodeRemediationStrategy GetCodeRemediationStrategy() const
Definition CodeReview.h:155
AWS_SECURITYAGENT_API CodeReview & operator=(Aws::Utils::Json::JsonView jsonValue)
CodeReview & WithCodeReviewId(CodeReviewIdT &&value)
Definition CodeReview.h:55
void SetLogConfig(LogConfigT &&value)
Definition CodeReview.h:140
void SetReportDestination(ReportDestinationT &&value)
Definition CodeReview.h:210
const Aws::String & GetCodeReviewId() const
Definition CodeReview.h:47
AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
const CloudWatchLog & GetLogConfig() const
Definition CodeReview.h:137
CodeReview & WithCreatedAt(CreatedAtT &&value)
Definition CodeReview.h:251
const Aws::String & GetAgentSpaceId() const
Definition CodeReview.h:65
void SetCodeRemediationStrategy(CodeRemediationStrategy value)
Definition CodeReview.h:157
AWS_SECURITYAGENT_API CodeReview(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYAGENT_API CodeReview()=default
void SetCreatedAt(CreatedAtT &&value)
Definition CodeReview.h:246
const Aws::String & GetTitle() const
Definition CodeReview.h:83
const Aws::String & GetServiceRole() const
Definition CodeReview.h:119
ValidationMode GetValidationMode() const
Definition CodeReview.h:172
CodeReview & WithReportDestination(ReportDestinationT &&value)
Definition CodeReview.h:215
CodeReview & WithReportFilters(ReportFiltersT &&value)
Definition CodeReview.h:233
void SetAgentSpaceId(AgentSpaceIdT &&value)
Definition CodeReview.h:68
CodeReview & WithCodeRemediationStrategy(CodeRemediationStrategy value)
Definition CodeReview.h:161
void SetCodeReviewId(CodeReviewIdT &&value)
Definition CodeReview.h:50
const Assets & GetAssets() const
Definition CodeReview.h:101
CodeReview & WithTitle(TitleT &&value)
Definition CodeReview.h:91
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition CodeReview.h:261
void SetReportFilters(ReportFiltersT &&value)
Definition CodeReview.h:228
CodeReview & WithAgentSpaceId(AgentSpaceIdT &&value)
Definition CodeReview.h:73
const Aws::Utils::DateTime & GetCreatedAt() const
Definition CodeReview.h:243
CodeReview & WithServiceRole(ServiceRoleT &&value)
Definition CodeReview.h:127
void SetUpdatedAt(UpdatedAtT &&value)
Definition CodeReview.h:264
void SetValidationMode(ValidationMode value)
Definition CodeReview.h:174
void SetServiceRole(ServiceRoleT &&value)
Definition CodeReview.h:122
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue