AWS SDK for C++

AWS SDK for C++ Version 1.11.903

Loading...
Searching...
No Matches
UpdateCodeReviewRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securityagent/SecurityAgentRequest.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 SecurityAgent {
21namespace Model {
22
29 public:
30 AWS_SECURITYAGENT_API UpdateCodeReviewRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "UpdateCodeReview"; }
37
38 AWS_SECURITYAGENT_API Aws::String SerializePayload() const override;
39
41
44 inline const Aws::String& GetCodeReviewId() const { return m_codeReviewId; }
45 inline bool CodeReviewIdHasBeenSet() const { return m_codeReviewIdHasBeenSet; }
46 template <typename CodeReviewIdT = Aws::String>
47 void SetCodeReviewId(CodeReviewIdT&& value) {
48 m_codeReviewIdHasBeenSet = true;
49 m_codeReviewId = std::forward<CodeReviewIdT>(value);
50 }
51 template <typename CodeReviewIdT = Aws::String>
52 UpdateCodeReviewRequest& WithCodeReviewId(CodeReviewIdT&& value) {
53 SetCodeReviewId(std::forward<CodeReviewIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetAgentSpaceId() const { return m_agentSpaceId; }
63 inline bool AgentSpaceIdHasBeenSet() const { return m_agentSpaceIdHasBeenSet; }
64 template <typename AgentSpaceIdT = Aws::String>
65 void SetAgentSpaceId(AgentSpaceIdT&& value) {
66 m_agentSpaceIdHasBeenSet = true;
67 m_agentSpaceId = std::forward<AgentSpaceIdT>(value);
68 }
69 template <typename AgentSpaceIdT = Aws::String>
70 UpdateCodeReviewRequest& WithAgentSpaceId(AgentSpaceIdT&& value) {
71 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetTitle() const { return m_title; }
81 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
82 template <typename TitleT = Aws::String>
83 void SetTitle(TitleT&& value) {
84 m_titleHasBeenSet = true;
85 m_title = std::forward<TitleT>(value);
86 }
87 template <typename TitleT = Aws::String>
89 SetTitle(std::forward<TitleT>(value));
90 return *this;
91 }
93
95
98 inline const Assets& GetAssets() const { return m_assets; }
99 inline bool AssetsHasBeenSet() const { return m_assetsHasBeenSet; }
100 template <typename AssetsT = Assets>
101 void SetAssets(AssetsT&& value) {
102 m_assetsHasBeenSet = true;
103 m_assets = std::forward<AssetsT>(value);
104 }
105 template <typename AssetsT = Assets>
107 SetAssets(std::forward<AssetsT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
117 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
118 template <typename ServiceRoleT = Aws::String>
119 void SetServiceRole(ServiceRoleT&& value) {
120 m_serviceRoleHasBeenSet = true;
121 m_serviceRole = std::forward<ServiceRoleT>(value);
122 }
123 template <typename ServiceRoleT = Aws::String>
125 SetServiceRole(std::forward<ServiceRoleT>(value));
126 return *this;
127 }
129
131
134 inline const CloudWatchLog& GetLogConfig() const { return m_logConfig; }
135 inline bool LogConfigHasBeenSet() const { return m_logConfigHasBeenSet; }
136 template <typename LogConfigT = CloudWatchLog>
137 void SetLogConfig(LogConfigT&& value) {
138 m_logConfigHasBeenSet = true;
139 m_logConfig = std::forward<LogConfigT>(value);
140 }
141 template <typename LogConfigT = CloudWatchLog>
143 SetLogConfig(std::forward<LogConfigT>(value));
144 return *this;
145 }
147
149
152 inline CodeRemediationStrategy GetCodeRemediationStrategy() const { return m_codeRemediationStrategy; }
153 inline bool CodeRemediationStrategyHasBeenSet() const { return m_codeRemediationStrategyHasBeenSet; }
155 m_codeRemediationStrategyHasBeenSet = true;
156 m_codeRemediationStrategy = value;
157 }
160 return *this;
161 }
163
165
169 inline ValidationMode GetValidationMode() const { return m_validationMode; }
170 inline bool ValidationModeHasBeenSet() const { return m_validationModeHasBeenSet; }
172 m_validationModeHasBeenSet = true;
173 m_validationMode = value;
174 }
176 SetValidationMode(value);
177 return *this;
178 }
180
182
186 inline double GetMaxTaskHours() const { return m_maxTaskHours; }
187 inline bool MaxTaskHoursHasBeenSet() const { return m_maxTaskHoursHasBeenSet; }
188 inline void SetMaxTaskHours(double value) {
189 m_maxTaskHoursHasBeenSet = true;
190 m_maxTaskHours = value;
191 }
193 SetMaxTaskHours(value);
194 return *this;
195 }
197
199
203 inline const ReportDestination& GetReportDestination() const { return m_reportDestination; }
204 inline bool ReportDestinationHasBeenSet() const { return m_reportDestinationHasBeenSet; }
205 template <typename ReportDestinationT = ReportDestination>
206 void SetReportDestination(ReportDestinationT&& value) {
207 m_reportDestinationHasBeenSet = true;
208 m_reportDestination = std::forward<ReportDestinationT>(value);
209 }
210 template <typename ReportDestinationT = ReportDestination>
211 UpdateCodeReviewRequest& WithReportDestination(ReportDestinationT&& value) {
212 SetReportDestination(std::forward<ReportDestinationT>(value));
213 return *this;
214 }
216
218
221 inline const ReportFilters& GetReportFilters() const { return m_reportFilters; }
222 inline bool ReportFiltersHasBeenSet() const { return m_reportFiltersHasBeenSet; }
223 template <typename ReportFiltersT = ReportFilters>
224 void SetReportFilters(ReportFiltersT&& value) {
225 m_reportFiltersHasBeenSet = true;
226 m_reportFilters = std::forward<ReportFiltersT>(value);
227 }
228 template <typename ReportFiltersT = ReportFilters>
230 SetReportFilters(std::forward<ReportFiltersT>(value));
231 return *this;
232 }
234 private:
235 Aws::String m_codeReviewId;
236
237 Aws::String m_agentSpaceId;
238
239 Aws::String m_title;
240
241 Assets m_assets;
242
243 Aws::String m_serviceRole;
244
245 CloudWatchLog m_logConfig;
246
248
249 ValidationMode m_validationMode{ValidationMode::NOT_SET};
250
251 double m_maxTaskHours{0.0};
252
253 ReportDestination m_reportDestination;
254
255 ReportFilters m_reportFilters;
256 bool m_codeReviewIdHasBeenSet = false;
257 bool m_agentSpaceIdHasBeenSet = false;
258 bool m_titleHasBeenSet = false;
259 bool m_assetsHasBeenSet = false;
260 bool m_serviceRoleHasBeenSet = false;
261 bool m_logConfigHasBeenSet = false;
262 bool m_codeRemediationStrategyHasBeenSet = false;
263 bool m_validationModeHasBeenSet = false;
264 bool m_maxTaskHoursHasBeenSet = false;
265 bool m_reportDestinationHasBeenSet = false;
266 bool m_reportFiltersHasBeenSet = false;
267};
268
269} // namespace Model
270} // namespace SecurityAgent
271} // namespace Aws
AWS_SECURITYAGENT_API UpdateCodeReviewRequest()=default
UpdateCodeReviewRequest & WithLogConfig(LogConfigT &&value)
void SetCodeRemediationStrategy(CodeRemediationStrategy value)
UpdateCodeReviewRequest & WithServiceRole(ServiceRoleT &&value)
UpdateCodeReviewRequest & WithTitle(TitleT &&value)
UpdateCodeReviewRequest & WithCodeReviewId(CodeReviewIdT &&value)
UpdateCodeReviewRequest & WithAgentSpaceId(AgentSpaceIdT &&value)
UpdateCodeReviewRequest & WithMaxTaskHours(double value)
UpdateCodeReviewRequest & WithReportDestination(ReportDestinationT &&value)
UpdateCodeReviewRequest & WithReportFilters(ReportFiltersT &&value)
UpdateCodeReviewRequest & WithAssets(AssetsT &&value)
UpdateCodeReviewRequest & WithCodeRemediationStrategy(CodeRemediationStrategy value)
AWS_SECURITYAGENT_API Aws::String SerializePayload() const override
UpdateCodeReviewRequest & WithValidationMode(ValidationMode value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String