AWS SDK for C++

AWS SDK for C++ Version 1.11.846

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
186 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
187 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
188 template <typename CreatedAtT = Aws::Utils::DateTime>
189 void SetCreatedAt(CreatedAtT&& value) {
190 m_createdAtHasBeenSet = true;
191 m_createdAt = std::forward<CreatedAtT>(value);
192 }
193 template <typename CreatedAtT = Aws::Utils::DateTime>
194 CodeReview& WithCreatedAt(CreatedAtT&& value) {
195 SetCreatedAt(std::forward<CreatedAtT>(value));
196 return *this;
197 }
199
201
204 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
205 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
206 template <typename UpdatedAtT = Aws::Utils::DateTime>
207 void SetUpdatedAt(UpdatedAtT&& value) {
208 m_updatedAtHasBeenSet = true;
209 m_updatedAt = std::forward<UpdatedAtT>(value);
210 }
211 template <typename UpdatedAtT = Aws::Utils::DateTime>
212 CodeReview& WithUpdatedAt(UpdatedAtT&& value) {
213 SetUpdatedAt(std::forward<UpdatedAtT>(value));
214 return *this;
215 }
217 private:
218 Aws::String m_codeReviewId;
219
220 Aws::String m_agentSpaceId;
221
222 Aws::String m_title;
223
224 Assets m_assets;
225
226 Aws::String m_serviceRole;
227
228 CloudWatchLog m_logConfig;
229
231
232 ValidationMode m_validationMode{ValidationMode::NOT_SET};
233
234 Aws::Utils::DateTime m_createdAt{};
235
236 Aws::Utils::DateTime m_updatedAt{};
237 bool m_codeReviewIdHasBeenSet = false;
238 bool m_agentSpaceIdHasBeenSet = false;
239 bool m_titleHasBeenSet = false;
240 bool m_assetsHasBeenSet = false;
241 bool m_serviceRoleHasBeenSet = false;
242 bool m_logConfigHasBeenSet = false;
243 bool m_codeRemediationStrategyHasBeenSet = false;
244 bool m_validationModeHasBeenSet = false;
245 bool m_createdAtHasBeenSet = false;
246 bool m_updatedAtHasBeenSet = false;
247};
248
249} // namespace Model
250} // namespace SecurityAgent
251} // namespace Aws
CodeReview & WithAssets(AssetsT &&value)
Definition CodeReview.h:107
CodeReview & WithValidationMode(ValidationMode value)
Definition CodeReview.h:176
CodeReview & WithLogConfig(LogConfigT &&value)
Definition CodeReview.h:143
CodeReview & WithUpdatedAt(UpdatedAtT &&value)
Definition CodeReview.h:212
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:194
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:189
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:204
CodeReview & WithAgentSpaceId(AgentSpaceIdT &&value)
Definition CodeReview.h:71
const Aws::Utils::DateTime & GetCreatedAt() const
Definition CodeReview.h:186
CodeReview & WithServiceRole(ServiceRoleT &&value)
Definition CodeReview.h:125
void SetUpdatedAt(UpdatedAtT &&value)
Definition CodeReview.h:207
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