AWS SDK for C++

AWS SDK for C++ Version 1.11.902

Loading...
Searching...
No Matches
CreateCodeReviewRequest.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 CreateCodeReviewRequest() = 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 "CreateCodeReview"; }
37
38 AWS_SECURITYAGENT_API Aws::String SerializePayload() const override;
39
41
44 inline const Aws::String& GetTitle() const { return m_title; }
45 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
46 template <typename TitleT = Aws::String>
47 void SetTitle(TitleT&& value) {
48 m_titleHasBeenSet = true;
49 m_title = std::forward<TitleT>(value);
50 }
51 template <typename TitleT = Aws::String>
53 SetTitle(std::forward<TitleT>(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 CreateCodeReviewRequest& WithAgentSpaceId(AgentSpaceIdT&& value) {
71 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
72 return *this;
73 }
75
77
81 inline const Assets& GetAssets() const { return m_assets; }
82 inline bool AssetsHasBeenSet() const { return m_assetsHasBeenSet; }
83 template <typename AssetsT = Assets>
84 void SetAssets(AssetsT&& value) {
85 m_assetsHasBeenSet = true;
86 m_assets = std::forward<AssetsT>(value);
87 }
88 template <typename AssetsT = Assets>
90 SetAssets(std::forward<AssetsT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
100 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
101 template <typename ServiceRoleT = Aws::String>
102 void SetServiceRole(ServiceRoleT&& value) {
103 m_serviceRoleHasBeenSet = true;
104 m_serviceRole = std::forward<ServiceRoleT>(value);
105 }
106 template <typename ServiceRoleT = Aws::String>
108 SetServiceRole(std::forward<ServiceRoleT>(value));
109 return *this;
110 }
112
114
117 inline const CloudWatchLog& GetLogConfig() const { return m_logConfig; }
118 inline bool LogConfigHasBeenSet() const { return m_logConfigHasBeenSet; }
119 template <typename LogConfigT = CloudWatchLog>
120 void SetLogConfig(LogConfigT&& value) {
121 m_logConfigHasBeenSet = true;
122 m_logConfig = std::forward<LogConfigT>(value);
123 }
124 template <typename LogConfigT = CloudWatchLog>
126 SetLogConfig(std::forward<LogConfigT>(value));
127 return *this;
128 }
130
132
136 inline CodeRemediationStrategy GetCodeRemediationStrategy() const { return m_codeRemediationStrategy; }
137 inline bool CodeRemediationStrategyHasBeenSet() const { return m_codeRemediationStrategyHasBeenSet; }
139 m_codeRemediationStrategyHasBeenSet = true;
140 m_codeRemediationStrategy = value;
141 }
144 return *this;
145 }
147
149
153 inline ValidationMode GetValidationMode() const { return m_validationMode; }
154 inline bool ValidationModeHasBeenSet() const { return m_validationModeHasBeenSet; }
156 m_validationModeHasBeenSet = true;
157 m_validationMode = value;
158 }
160 SetValidationMode(value);
161 return *this;
162 }
164
166
171 inline double GetMaxTaskHours() const { return m_maxTaskHours; }
172 inline bool MaxTaskHoursHasBeenSet() const { return m_maxTaskHoursHasBeenSet; }
173 inline void SetMaxTaskHours(double value) {
174 m_maxTaskHoursHasBeenSet = true;
175 m_maxTaskHours = value;
176 }
178 SetMaxTaskHours(value);
179 return *this;
180 }
182
184
188 inline const ReportDestination& GetReportDestination() const { return m_reportDestination; }
189 inline bool ReportDestinationHasBeenSet() const { return m_reportDestinationHasBeenSet; }
190 template <typename ReportDestinationT = ReportDestination>
191 void SetReportDestination(ReportDestinationT&& value) {
192 m_reportDestinationHasBeenSet = true;
193 m_reportDestination = std::forward<ReportDestinationT>(value);
194 }
195 template <typename ReportDestinationT = ReportDestination>
196 CreateCodeReviewRequest& WithReportDestination(ReportDestinationT&& value) {
197 SetReportDestination(std::forward<ReportDestinationT>(value));
198 return *this;
199 }
201
203
206 inline const ReportFilters& GetReportFilters() const { return m_reportFilters; }
207 inline bool ReportFiltersHasBeenSet() const { return m_reportFiltersHasBeenSet; }
208 template <typename ReportFiltersT = ReportFilters>
209 void SetReportFilters(ReportFiltersT&& value) {
210 m_reportFiltersHasBeenSet = true;
211 m_reportFilters = std::forward<ReportFiltersT>(value);
212 }
213 template <typename ReportFiltersT = ReportFilters>
215 SetReportFilters(std::forward<ReportFiltersT>(value));
216 return *this;
217 }
219 private:
220 Aws::String m_title;
221
222 Aws::String m_agentSpaceId;
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 double m_maxTaskHours{0.0};
235
236 ReportDestination m_reportDestination;
237
238 ReportFilters m_reportFilters;
239 bool m_titleHasBeenSet = false;
240 bool m_agentSpaceIdHasBeenSet = false;
241 bool m_assetsHasBeenSet = false;
242 bool m_serviceRoleHasBeenSet = false;
243 bool m_logConfigHasBeenSet = false;
244 bool m_codeRemediationStrategyHasBeenSet = false;
245 bool m_validationModeHasBeenSet = false;
246 bool m_maxTaskHoursHasBeenSet = false;
247 bool m_reportDestinationHasBeenSet = false;
248 bool m_reportFiltersHasBeenSet = false;
249};
250
251} // namespace Model
252} // namespace SecurityAgent
253} // namespace Aws
CreateCodeReviewRequest & WithCodeRemediationStrategy(CodeRemediationStrategy value)
CreateCodeReviewRequest & WithReportDestination(ReportDestinationT &&value)
CreateCodeReviewRequest & WithServiceRole(ServiceRoleT &&value)
CreateCodeReviewRequest & WithAssets(AssetsT &&value)
void SetCodeRemediationStrategy(CodeRemediationStrategy value)
AWS_SECURITYAGENT_API CreateCodeReviewRequest()=default
CreateCodeReviewRequest & WithReportFilters(ReportFiltersT &&value)
CreateCodeReviewRequest & WithLogConfig(LogConfigT &&value)
virtual const char * GetServiceRequestName() const override
CreateCodeReviewRequest & WithTitle(TitleT &&value)
AWS_SECURITYAGENT_API Aws::String SerializePayload() const override
CreateCodeReviewRequest & WithMaxTaskHours(double value)
CreateCodeReviewRequest & WithValidationMode(ValidationMode value)
CreateCodeReviewRequest & WithAgentSpaceId(AgentSpaceIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String