AWS SDK for C++

AWS SDK for C++ Version 1.11.845

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/ValidationMode.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace SecurityAgent {
28namespace Model {
35 public:
36 AWS_SECURITYAGENT_API CreateCodeReviewResult() = default;
39
41
44 inline const Aws::String& GetCodeReviewId() const { return m_codeReviewId; }
45 template <typename CodeReviewIdT = Aws::String>
46 void SetCodeReviewId(CodeReviewIdT&& value) {
47 m_codeReviewIdHasBeenSet = true;
48 m_codeReviewId = std::forward<CodeReviewIdT>(value);
49 }
50 template <typename CodeReviewIdT = Aws::String>
51 CreateCodeReviewResult& WithCodeReviewId(CodeReviewIdT&& value) {
52 SetCodeReviewId(std::forward<CodeReviewIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetTitle() const { return m_title; }
62 template <typename TitleT = Aws::String>
63 void SetTitle(TitleT&& value) {
64 m_titleHasBeenSet = true;
65 m_title = std::forward<TitleT>(value);
66 }
67 template <typename TitleT = Aws::String>
69 SetTitle(std::forward<TitleT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
79 template <typename CreatedAtT = Aws::Utils::DateTime>
80 void SetCreatedAt(CreatedAtT&& value) {
81 m_createdAtHasBeenSet = true;
82 m_createdAt = std::forward<CreatedAtT>(value);
83 }
84 template <typename CreatedAtT = Aws::Utils::DateTime>
86 SetCreatedAt(std::forward<CreatedAtT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
96 template <typename UpdatedAtT = Aws::Utils::DateTime>
97 void SetUpdatedAt(UpdatedAtT&& value) {
98 m_updatedAtHasBeenSet = true;
99 m_updatedAt = std::forward<UpdatedAtT>(value);
100 }
101 template <typename UpdatedAtT = Aws::Utils::DateTime>
103 SetUpdatedAt(std::forward<UpdatedAtT>(value));
104 return *this;
105 }
107
109
112 inline const Assets& GetAssets() const { return m_assets; }
113 template <typename AssetsT = Assets>
114 void SetAssets(AssetsT&& value) {
115 m_assetsHasBeenSet = true;
116 m_assets = std::forward<AssetsT>(value);
117 }
118 template <typename AssetsT = Assets>
120 SetAssets(std::forward<AssetsT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
130 template <typename ServiceRoleT = Aws::String>
131 void SetServiceRole(ServiceRoleT&& value) {
132 m_serviceRoleHasBeenSet = true;
133 m_serviceRole = std::forward<ServiceRoleT>(value);
134 }
135 template <typename ServiceRoleT = Aws::String>
137 SetServiceRole(std::forward<ServiceRoleT>(value));
138 return *this;
139 }
141
143
146 inline const CloudWatchLog& GetLogConfig() const { return m_logConfig; }
147 template <typename LogConfigT = CloudWatchLog>
148 void SetLogConfig(LogConfigT&& value) {
149 m_logConfigHasBeenSet = true;
150 m_logConfig = std::forward<LogConfigT>(value);
151 }
152 template <typename LogConfigT = CloudWatchLog>
154 SetLogConfig(std::forward<LogConfigT>(value));
155 return *this;
156 }
158
160
163 inline const Aws::String& GetAgentSpaceId() const { return m_agentSpaceId; }
164 template <typename AgentSpaceIdT = Aws::String>
165 void SetAgentSpaceId(AgentSpaceIdT&& value) {
166 m_agentSpaceIdHasBeenSet = true;
167 m_agentSpaceId = std::forward<AgentSpaceIdT>(value);
168 }
169 template <typename AgentSpaceIdT = Aws::String>
170 CreateCodeReviewResult& WithAgentSpaceId(AgentSpaceIdT&& value) {
171 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
172 return *this;
173 }
175
177
180 inline CodeRemediationStrategy GetCodeRemediationStrategy() const { return m_codeRemediationStrategy; }
182 m_codeRemediationStrategyHasBeenSet = true;
183 m_codeRemediationStrategy = value;
184 }
187 return *this;
188 }
190
192
195 inline ValidationMode GetValidationMode() const { return m_validationMode; }
197 m_validationModeHasBeenSet = true;
198 m_validationMode = value;
199 }
201 SetValidationMode(value);
202 return *this;
203 }
205
207
208 inline const Aws::String& GetRequestId() const { return m_requestId; }
209 template <typename RequestIdT = Aws::String>
210 void SetRequestId(RequestIdT&& value) {
211 m_requestIdHasBeenSet = true;
212 m_requestId = std::forward<RequestIdT>(value);
213 }
214 template <typename RequestIdT = Aws::String>
216 SetRequestId(std::forward<RequestIdT>(value));
217 return *this;
218 }
220 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
221
222 private:
223 Aws::String m_codeReviewId;
224
225 Aws::String m_title;
226
227 Aws::Utils::DateTime m_createdAt{};
228
229 Aws::Utils::DateTime m_updatedAt{};
230
231 Assets m_assets;
232
233 Aws::String m_serviceRole;
234
235 CloudWatchLog m_logConfig;
236
237 Aws::String m_agentSpaceId;
238
240
241 ValidationMode m_validationMode{ValidationMode::NOT_SET};
242
243 Aws::String m_requestId;
244 Aws::Http::HttpResponseCode m_HttpResponseCode;
245 bool m_codeReviewIdHasBeenSet = false;
246 bool m_titleHasBeenSet = false;
247 bool m_createdAtHasBeenSet = false;
248 bool m_updatedAtHasBeenSet = false;
249 bool m_assetsHasBeenSet = false;
250 bool m_serviceRoleHasBeenSet = false;
251 bool m_logConfigHasBeenSet = false;
252 bool m_agentSpaceIdHasBeenSet = false;
253 bool m_codeRemediationStrategyHasBeenSet = false;
254 bool m_validationModeHasBeenSet = false;
255 bool m_requestIdHasBeenSet = false;
256};
257
258} // namespace Model
259} // namespace SecurityAgent
260} // 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 & WithCodeRemediationStrategy(CodeRemediationStrategy 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)
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