AWS SDK for C++

AWS SDK for C++ Version 1.11.921

Loading...
Searching...
No Matches
UpdatePentestRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/securityagent/SecurityAgentRequest.h>
10#include <aws/securityagent/SecurityAgent_EXPORTS.h>
11#include <aws/securityagent/model/Assets.h>
12#include <aws/securityagent/model/CiCdConfiguration.h>
13#include <aws/securityagent/model/CloudWatchLog.h>
14#include <aws/securityagent/model/CodeRemediationStrategy.h>
15#include <aws/securityagent/model/NetworkTrafficConfig.h>
16#include <aws/securityagent/model/ReportDestination.h>
17#include <aws/securityagent/model/ReportFilters.h>
18#include <aws/securityagent/model/RiskType.h>
19#include <aws/securityagent/model/SkillType.h>
20#include <aws/securityagent/model/TestScope.h>
21#include <aws/securityagent/model/VpcConfig.h>
22
23#include <utility>
24
25namespace Aws {
26namespace SecurityAgent {
27namespace Model {
28
35 public:
36 AWS_SECURITYAGENT_API UpdatePentestRequest() = default;
37
38 // Service request name is the Operation name which will send this request out,
39 // each operation should has unique request name, so that we can get operation's name from this request.
40 // Note: this is not true for response, multiple operations may have the same response name,
41 // so we can not get operation's name from response.
42 inline virtual const char* GetServiceRequestName() const override { return "UpdatePentest"; }
43
44 AWS_SECURITYAGENT_API Aws::String SerializePayload() const override;
45
47
50 inline const Aws::String& GetPentestId() const { return m_pentestId; }
51 inline bool PentestIdHasBeenSet() const { return m_pentestIdHasBeenSet; }
52 template <typename PentestIdT = Aws::String>
53 void SetPentestId(PentestIdT&& value) {
54 m_pentestIdHasBeenSet = true;
55 m_pentestId = std::forward<PentestIdT>(value);
56 }
57 template <typename PentestIdT = Aws::String>
58 UpdatePentestRequest& WithPentestId(PentestIdT&& value) {
59 SetPentestId(std::forward<PentestIdT>(value));
60 return *this;
61 }
63
65
68 inline const Aws::String& GetAgentSpaceId() const { return m_agentSpaceId; }
69 inline bool AgentSpaceIdHasBeenSet() const { return m_agentSpaceIdHasBeenSet; }
70 template <typename AgentSpaceIdT = Aws::String>
71 void SetAgentSpaceId(AgentSpaceIdT&& value) {
72 m_agentSpaceIdHasBeenSet = true;
73 m_agentSpaceId = std::forward<AgentSpaceIdT>(value);
74 }
75 template <typename AgentSpaceIdT = Aws::String>
76 UpdatePentestRequest& WithAgentSpaceId(AgentSpaceIdT&& value) {
77 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
78 return *this;
79 }
81
83
86 inline const Aws::String& GetTitle() const { return m_title; }
87 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
88 template <typename TitleT = Aws::String>
89 void SetTitle(TitleT&& value) {
90 m_titleHasBeenSet = true;
91 m_title = std::forward<TitleT>(value);
92 }
93 template <typename TitleT = Aws::String>
95 SetTitle(std::forward<TitleT>(value));
96 return *this;
97 }
99
101
104 inline const Assets& GetAssets() const { return m_assets; }
105 inline bool AssetsHasBeenSet() const { return m_assetsHasBeenSet; }
106 template <typename AssetsT = Assets>
107 void SetAssets(AssetsT&& value) {
108 m_assetsHasBeenSet = true;
109 m_assets = std::forward<AssetsT>(value);
110 }
111 template <typename AssetsT = Assets>
113 SetAssets(std::forward<AssetsT>(value));
114 return *this;
115 }
117
119
122 inline const Aws::Vector<RiskType>& GetExcludeRiskTypes() const { return m_excludeRiskTypes; }
123 inline bool ExcludeRiskTypesHasBeenSet() const { return m_excludeRiskTypesHasBeenSet; }
124 template <typename ExcludeRiskTypesT = Aws::Vector<RiskType>>
125 void SetExcludeRiskTypes(ExcludeRiskTypesT&& value) {
126 m_excludeRiskTypesHasBeenSet = true;
127 m_excludeRiskTypes = std::forward<ExcludeRiskTypesT>(value);
128 }
129 template <typename ExcludeRiskTypesT = Aws::Vector<RiskType>>
130 UpdatePentestRequest& WithExcludeRiskTypes(ExcludeRiskTypesT&& value) {
131 SetExcludeRiskTypes(std::forward<ExcludeRiskTypesT>(value));
132 return *this;
133 }
135 m_excludeRiskTypesHasBeenSet = true;
136 m_excludeRiskTypes.push_back(value);
137 return *this;
138 }
140
142
145 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
146 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
147 template <typename ServiceRoleT = Aws::String>
148 void SetServiceRole(ServiceRoleT&& value) {
149 m_serviceRoleHasBeenSet = true;
150 m_serviceRole = std::forward<ServiceRoleT>(value);
151 }
152 template <typename ServiceRoleT = Aws::String>
153 UpdatePentestRequest& WithServiceRole(ServiceRoleT&& value) {
154 SetServiceRole(std::forward<ServiceRoleT>(value));
155 return *this;
156 }
158
160
163 inline const CloudWatchLog& GetLogConfig() const { return m_logConfig; }
164 inline bool LogConfigHasBeenSet() const { return m_logConfigHasBeenSet; }
165 template <typename LogConfigT = CloudWatchLog>
166 void SetLogConfig(LogConfigT&& value) {
167 m_logConfigHasBeenSet = true;
168 m_logConfig = std::forward<LogConfigT>(value);
169 }
170 template <typename LogConfigT = CloudWatchLog>
171 UpdatePentestRequest& WithLogConfig(LogConfigT&& value) {
172 SetLogConfig(std::forward<LogConfigT>(value));
173 return *this;
174 }
176
178
181 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
182 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
183 template <typename VpcConfigT = VpcConfig>
184 void SetVpcConfig(VpcConfigT&& value) {
185 m_vpcConfigHasBeenSet = true;
186 m_vpcConfig = std::forward<VpcConfigT>(value);
187 }
188 template <typename VpcConfigT = VpcConfig>
189 UpdatePentestRequest& WithVpcConfig(VpcConfigT&& value) {
190 SetVpcConfig(std::forward<VpcConfigT>(value));
191 return *this;
192 }
194
196
199 inline const NetworkTrafficConfig& GetNetworkTrafficConfig() const { return m_networkTrafficConfig; }
200 inline bool NetworkTrafficConfigHasBeenSet() const { return m_networkTrafficConfigHasBeenSet; }
201 template <typename NetworkTrafficConfigT = NetworkTrafficConfig>
202 void SetNetworkTrafficConfig(NetworkTrafficConfigT&& value) {
203 m_networkTrafficConfigHasBeenSet = true;
204 m_networkTrafficConfig = std::forward<NetworkTrafficConfigT>(value);
205 }
206 template <typename NetworkTrafficConfigT = NetworkTrafficConfig>
207 UpdatePentestRequest& WithNetworkTrafficConfig(NetworkTrafficConfigT&& value) {
208 SetNetworkTrafficConfig(std::forward<NetworkTrafficConfigT>(value));
209 return *this;
210 }
212
214
217 inline CodeRemediationStrategy GetCodeRemediationStrategy() const { return m_codeRemediationStrategy; }
218 inline bool CodeRemediationStrategyHasBeenSet() const { return m_codeRemediationStrategyHasBeenSet; }
220 m_codeRemediationStrategyHasBeenSet = true;
221 m_codeRemediationStrategy = value;
222 }
225 return *this;
226 }
228
230
234 inline const Aws::Vector<SkillType>& GetDisableManagedSkills() const { return m_disableManagedSkills; }
235 inline bool DisableManagedSkillsHasBeenSet() const { return m_disableManagedSkillsHasBeenSet; }
236 template <typename DisableManagedSkillsT = Aws::Vector<SkillType>>
237 void SetDisableManagedSkills(DisableManagedSkillsT&& value) {
238 m_disableManagedSkillsHasBeenSet = true;
239 m_disableManagedSkills = std::forward<DisableManagedSkillsT>(value);
240 }
241 template <typename DisableManagedSkillsT = Aws::Vector<SkillType>>
242 UpdatePentestRequest& WithDisableManagedSkills(DisableManagedSkillsT&& value) {
243 SetDisableManagedSkills(std::forward<DisableManagedSkillsT>(value));
244 return *this;
245 }
247 m_disableManagedSkillsHasBeenSet = true;
248 m_disableManagedSkills.push_back(value);
249 return *this;
250 }
252
254
258 inline double GetMaxTaskHours() const { return m_maxTaskHours; }
259 inline bool MaxTaskHoursHasBeenSet() const { return m_maxTaskHoursHasBeenSet; }
260 inline void SetMaxTaskHours(double value) {
261 m_maxTaskHoursHasBeenSet = true;
262 m_maxTaskHours = value;
263 }
265 SetMaxTaskHours(value);
266 return *this;
267 }
269
271
275 inline const ReportDestination& GetReportDestination() const { return m_reportDestination; }
276 inline bool ReportDestinationHasBeenSet() const { return m_reportDestinationHasBeenSet; }
277 template <typename ReportDestinationT = ReportDestination>
278 void SetReportDestination(ReportDestinationT&& value) {
279 m_reportDestinationHasBeenSet = true;
280 m_reportDestination = std::forward<ReportDestinationT>(value);
281 }
282 template <typename ReportDestinationT = ReportDestination>
283 UpdatePentestRequest& WithReportDestination(ReportDestinationT&& value) {
284 SetReportDestination(std::forward<ReportDestinationT>(value));
285 return *this;
286 }
288
290
293 inline const ReportFilters& GetReportFilters() const { return m_reportFilters; }
294 inline bool ReportFiltersHasBeenSet() const { return m_reportFiltersHasBeenSet; }
295 template <typename ReportFiltersT = ReportFilters>
296 void SetReportFilters(ReportFiltersT&& value) {
297 m_reportFiltersHasBeenSet = true;
298 m_reportFilters = std::forward<ReportFiltersT>(value);
299 }
300 template <typename ReportFiltersT = ReportFilters>
301 UpdatePentestRequest& WithReportFilters(ReportFiltersT&& value) {
302 SetReportFilters(std::forward<ReportFiltersT>(value));
303 return *this;
304 }
306
308
311 inline const CiCdConfiguration& GetCicdConfiguration() const { return m_cicdConfiguration; }
312 inline bool CicdConfigurationHasBeenSet() const { return m_cicdConfigurationHasBeenSet; }
313 template <typename CicdConfigurationT = CiCdConfiguration>
314 void SetCicdConfiguration(CicdConfigurationT&& value) {
315 m_cicdConfigurationHasBeenSet = true;
316 m_cicdConfiguration = std::forward<CicdConfigurationT>(value);
317 }
318 template <typename CicdConfigurationT = CiCdConfiguration>
319 UpdatePentestRequest& WithCicdConfiguration(CicdConfigurationT&& value) {
320 SetCicdConfiguration(std::forward<CicdConfigurationT>(value));
321 return *this;
322 }
324
326
327 inline const TestScope& GetTestScope() const { return m_testScope; }
328 inline bool TestScopeHasBeenSet() const { return m_testScopeHasBeenSet; }
329 template <typename TestScopeT = TestScope>
330 void SetTestScope(TestScopeT&& value) {
331 m_testScopeHasBeenSet = true;
332 m_testScope = std::forward<TestScopeT>(value);
333 }
334 template <typename TestScopeT = TestScope>
335 UpdatePentestRequest& WithTestScope(TestScopeT&& value) {
336 SetTestScope(std::forward<TestScopeT>(value));
337 return *this;
338 }
340 private:
341 Aws::String m_pentestId;
342
343 Aws::String m_agentSpaceId;
344
345 Aws::String m_title;
346
347 Assets m_assets;
348
349 Aws::Vector<RiskType> m_excludeRiskTypes;
350
351 Aws::String m_serviceRole;
352
353 CloudWatchLog m_logConfig;
354
355 VpcConfig m_vpcConfig;
356
357 NetworkTrafficConfig m_networkTrafficConfig;
358
360
361 Aws::Vector<SkillType> m_disableManagedSkills;
362
363 double m_maxTaskHours{0.0};
364
365 ReportDestination m_reportDestination;
366
367 ReportFilters m_reportFilters;
368
369 CiCdConfiguration m_cicdConfiguration;
370
371 TestScope m_testScope;
372 bool m_pentestIdHasBeenSet = false;
373 bool m_agentSpaceIdHasBeenSet = false;
374 bool m_titleHasBeenSet = false;
375 bool m_assetsHasBeenSet = false;
376 bool m_excludeRiskTypesHasBeenSet = false;
377 bool m_serviceRoleHasBeenSet = false;
378 bool m_logConfigHasBeenSet = false;
379 bool m_vpcConfigHasBeenSet = false;
380 bool m_networkTrafficConfigHasBeenSet = false;
381 bool m_codeRemediationStrategyHasBeenSet = false;
382 bool m_disableManagedSkillsHasBeenSet = false;
383 bool m_maxTaskHoursHasBeenSet = false;
384 bool m_reportDestinationHasBeenSet = false;
385 bool m_reportFiltersHasBeenSet = false;
386 bool m_cicdConfigurationHasBeenSet = false;
387 bool m_testScopeHasBeenSet = false;
388};
389
390} // namespace Model
391} // namespace SecurityAgent
392} // namespace Aws
UpdatePentestRequest & WithServiceRole(ServiceRoleT &&value)
const NetworkTrafficConfig & GetNetworkTrafficConfig() const
void SetNetworkTrafficConfig(NetworkTrafficConfigT &&value)
UpdatePentestRequest & WithTitle(TitleT &&value)
UpdatePentestRequest & WithReportFilters(ReportFiltersT &&value)
AWS_SECURITYAGENT_API UpdatePentestRequest()=default
CodeRemediationStrategy GetCodeRemediationStrategy() const
void SetCicdConfiguration(CicdConfigurationT &&value)
UpdatePentestRequest & WithCicdConfiguration(CicdConfigurationT &&value)
UpdatePentestRequest & WithAgentSpaceId(AgentSpaceIdT &&value)
UpdatePentestRequest & WithVpcConfig(VpcConfigT &&value)
AWS_SECURITYAGENT_API Aws::String SerializePayload() const override
UpdatePentestRequest & WithReportDestination(ReportDestinationT &&value)
UpdatePentestRequest & WithNetworkTrafficConfig(NetworkTrafficConfigT &&value)
UpdatePentestRequest & WithCodeRemediationStrategy(CodeRemediationStrategy value)
UpdatePentestRequest & WithMaxTaskHours(double value)
const CiCdConfiguration & GetCicdConfiguration() const
UpdatePentestRequest & AddDisableManagedSkills(SkillType value)
const Aws::Vector< RiskType > & GetExcludeRiskTypes() const
void SetCodeRemediationStrategy(CodeRemediationStrategy value)
UpdatePentestRequest & WithAssets(AssetsT &&value)
UpdatePentestRequest & WithTestScope(TestScopeT &&value)
UpdatePentestRequest & WithLogConfig(LogConfigT &&value)
UpdatePentestRequest & WithExcludeRiskTypes(ExcludeRiskTypesT &&value)
UpdatePentestRequest & AddExcludeRiskTypes(RiskType value)
void SetDisableManagedSkills(DisableManagedSkillsT &&value)
const Aws::Vector< SkillType > & GetDisableManagedSkills() const
UpdatePentestRequest & WithDisableManagedSkills(DisableManagedSkillsT &&value)
UpdatePentestRequest & WithPentestId(PentestIdT &&value)
const ReportDestination & GetReportDestination() const
void SetReportDestination(ReportDestinationT &&value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector