AWS SDK for C++

AWS SDK for C++ Version 1.11.881

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/ValidationMode.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SecurityAgent {
25namespace Model {
26
35 public:
36 AWS_SECURITYAGENT_API CodeReview() = default;
37 AWS_SECURITYAGENT_API CodeReview(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SECURITYAGENT_API CodeReview& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetCodeReviewId() const { return m_codeReviewId; }
46 inline bool CodeReviewIdHasBeenSet() const { return m_codeReviewIdHasBeenSet; }
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 CodeReview& WithCodeReviewId(CodeReviewIdT&& value) {
54 SetCodeReviewId(std::forward<CodeReviewIdT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetAgentSpaceId() const { return m_agentSpaceId; }
64 inline bool AgentSpaceIdHasBeenSet() const { return m_agentSpaceIdHasBeenSet; }
65 template <typename AgentSpaceIdT = Aws::String>
66 void SetAgentSpaceId(AgentSpaceIdT&& value) {
67 m_agentSpaceIdHasBeenSet = true;
68 m_agentSpaceId = std::forward<AgentSpaceIdT>(value);
69 }
70 template <typename AgentSpaceIdT = Aws::String>
71 CodeReview& WithAgentSpaceId(AgentSpaceIdT&& value) {
72 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetTitle() const { return m_title; }
82 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
83 template <typename TitleT = Aws::String>
84 void SetTitle(TitleT&& value) {
85 m_titleHasBeenSet = true;
86 m_title = std::forward<TitleT>(value);
87 }
88 template <typename TitleT = Aws::String>
89 CodeReview& WithTitle(TitleT&& value) {
90 SetTitle(std::forward<TitleT>(value));
91 return *this;
92 }
94
96
99 inline const Assets& GetAssets() const { return m_assets; }
100 inline bool AssetsHasBeenSet() const { return m_assetsHasBeenSet; }
101 template <typename AssetsT = Assets>
102 void SetAssets(AssetsT&& value) {
103 m_assetsHasBeenSet = true;
104 m_assets = std::forward<AssetsT>(value);
105 }
106 template <typename AssetsT = Assets>
107 CodeReview& WithAssets(AssetsT&& value) {
108 SetAssets(std::forward<AssetsT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
118 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
119 template <typename ServiceRoleT = Aws::String>
120 void SetServiceRole(ServiceRoleT&& value) {
121 m_serviceRoleHasBeenSet = true;
122 m_serviceRole = std::forward<ServiceRoleT>(value);
123 }
124 template <typename ServiceRoleT = Aws::String>
125 CodeReview& WithServiceRole(ServiceRoleT&& value) {
126 SetServiceRole(std::forward<ServiceRoleT>(value));
127 return *this;
128 }
130
132
135 inline const CloudWatchLog& GetLogConfig() const { return m_logConfig; }
136 inline bool LogConfigHasBeenSet() const { return m_logConfigHasBeenSet; }
137 template <typename LogConfigT = CloudWatchLog>
138 void SetLogConfig(LogConfigT&& value) {
139 m_logConfigHasBeenSet = true;
140 m_logConfig = std::forward<LogConfigT>(value);
141 }
142 template <typename LogConfigT = CloudWatchLog>
143 CodeReview& WithLogConfig(LogConfigT&& value) {
144 SetLogConfig(std::forward<LogConfigT>(value));
145 return *this;
146 }
148
150
153 inline CodeRemediationStrategy GetCodeRemediationStrategy() const { return m_codeRemediationStrategy; }
154 inline bool CodeRemediationStrategyHasBeenSet() const { return m_codeRemediationStrategyHasBeenSet; }
156 m_codeRemediationStrategyHasBeenSet = true;
157 m_codeRemediationStrategy = value;
158 }
161 return *this;
162 }
164
166
170 inline ValidationMode GetValidationMode() const { return m_validationMode; }
171 inline bool ValidationModeHasBeenSet() const { return m_validationModeHasBeenSet; }
173 m_validationModeHasBeenSet = true;
174 m_validationMode = value;
175 }
177 SetValidationMode(value);
178 return *this;
179 }
181
183
188 inline double GetMaxTaskHours() const { return m_maxTaskHours; }
189 inline bool MaxTaskHoursHasBeenSet() const { return m_maxTaskHoursHasBeenSet; }
190 inline void SetMaxTaskHours(double value) {
191 m_maxTaskHoursHasBeenSet = true;
192 m_maxTaskHours = value;
193 }
194 inline CodeReview& WithMaxTaskHours(double value) {
195 SetMaxTaskHours(value);
196 return *this;
197 }
199
201
204 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
205 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
206 template <typename CreatedAtT = Aws::Utils::DateTime>
207 void SetCreatedAt(CreatedAtT&& value) {
208 m_createdAtHasBeenSet = true;
209 m_createdAt = std::forward<CreatedAtT>(value);
210 }
211 template <typename CreatedAtT = Aws::Utils::DateTime>
212 CodeReview& WithCreatedAt(CreatedAtT&& value) {
213 SetCreatedAt(std::forward<CreatedAtT>(value));
214 return *this;
215 }
217
219
222 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
223 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
224 template <typename UpdatedAtT = Aws::Utils::DateTime>
225 void SetUpdatedAt(UpdatedAtT&& value) {
226 m_updatedAtHasBeenSet = true;
227 m_updatedAt = std::forward<UpdatedAtT>(value);
228 }
229 template <typename UpdatedAtT = Aws::Utils::DateTime>
230 CodeReview& WithUpdatedAt(UpdatedAtT&& value) {
231 SetUpdatedAt(std::forward<UpdatedAtT>(value));
232 return *this;
233 }
235 private:
236 Aws::String m_codeReviewId;
237
238 Aws::String m_agentSpaceId;
239
240 Aws::String m_title;
241
242 Assets m_assets;
243
244 Aws::String m_serviceRole;
245
246 CloudWatchLog m_logConfig;
247
249
250 ValidationMode m_validationMode{ValidationMode::NOT_SET};
251
252 double m_maxTaskHours{0.0};
253
254 Aws::Utils::DateTime m_createdAt{};
255
256 Aws::Utils::DateTime m_updatedAt{};
257 bool m_codeReviewIdHasBeenSet = false;
258 bool m_agentSpaceIdHasBeenSet = false;
259 bool m_titleHasBeenSet = false;
260 bool m_assetsHasBeenSet = false;
261 bool m_serviceRoleHasBeenSet = false;
262 bool m_logConfigHasBeenSet = false;
263 bool m_codeRemediationStrategyHasBeenSet = false;
264 bool m_validationModeHasBeenSet = false;
265 bool m_maxTaskHoursHasBeenSet = false;
266 bool m_createdAtHasBeenSet = false;
267 bool m_updatedAtHasBeenSet = false;
268};
269
270} // namespace Model
271} // namespace SecurityAgent
272} // namespace Aws
CodeReview & WithAssets(AssetsT &&value)
Definition CodeReview.h:107
CodeReview & WithMaxTaskHours(double value)
Definition CodeReview.h:194
CodeReview & WithValidationMode(ValidationMode value)
Definition CodeReview.h:176
CodeReview & WithLogConfig(LogConfigT &&value)
Definition CodeReview.h:143
CodeReview & WithUpdatedAt(UpdatedAtT &&value)
Definition CodeReview.h:230
CodeRemediationStrategy GetCodeRemediationStrategy() const
Definition CodeReview.h:153
AWS_SECURITYAGENT_API CodeReview & operator=(Aws::Utils::Json::JsonView jsonValue)
CodeReview & WithCodeReviewId(CodeReviewIdT &&value)
Definition CodeReview.h:53
void SetLogConfig(LogConfigT &&value)
Definition CodeReview.h:138
const Aws::String & GetCodeReviewId() const
Definition CodeReview.h:45
AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
const CloudWatchLog & GetLogConfig() const
Definition CodeReview.h:135
CodeReview & WithCreatedAt(CreatedAtT &&value)
Definition CodeReview.h:212
const Aws::String & GetAgentSpaceId() const
Definition CodeReview.h:63
void SetCodeRemediationStrategy(CodeRemediationStrategy value)
Definition CodeReview.h:155
AWS_SECURITYAGENT_API CodeReview(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYAGENT_API CodeReview()=default
void SetCreatedAt(CreatedAtT &&value)
Definition CodeReview.h:207
const Aws::String & GetTitle() const
Definition CodeReview.h:81
const Aws::String & GetServiceRole() const
Definition CodeReview.h:117
ValidationMode GetValidationMode() const
Definition CodeReview.h:170
void SetAgentSpaceId(AgentSpaceIdT &&value)
Definition CodeReview.h:66
CodeReview & WithCodeRemediationStrategy(CodeRemediationStrategy value)
Definition CodeReview.h:159
void SetCodeReviewId(CodeReviewIdT &&value)
Definition CodeReview.h:48
const Assets & GetAssets() const
Definition CodeReview.h:99
CodeReview & WithTitle(TitleT &&value)
Definition CodeReview.h:89
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition CodeReview.h:222
CodeReview & WithAgentSpaceId(AgentSpaceIdT &&value)
Definition CodeReview.h:71
const Aws::Utils::DateTime & GetCreatedAt() const
Definition CodeReview.h:204
CodeReview & WithServiceRole(ServiceRoleT &&value)
Definition CodeReview.h:125
void SetUpdatedAt(UpdatedAtT &&value)
Definition CodeReview.h:225
void SetValidationMode(ValidationMode value)
Definition CodeReview.h:172
void SetServiceRole(ServiceRoleT &&value)
Definition CodeReview.h:120
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue