AWS SDK for C++

AWS SDK for C++ Version 1.11.935

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/CleanUpStrategy.h>
14#include <aws/securityagent/model/CloudWatchLog.h>
15#include <aws/securityagent/model/CodeRemediationStrategy.h>
16#include <aws/securityagent/model/NetworkTrafficConfig.h>
17#include <aws/securityagent/model/ReportDestination.h>
18#include <aws/securityagent/model/ReportFilters.h>
19#include <aws/securityagent/model/RiskType.h>
20#include <aws/securityagent/model/SkillType.h>
21#include <aws/securityagent/model/TestScope.h>
22#include <aws/securityagent/model/VpcConfig.h>
23
24#include <utility>
25
26namespace Aws {
27namespace SecurityAgent {
28namespace Model {
29
36 public:
37 AWS_SECURITYAGENT_API UpdatePentestRequest() = default;
38
39 // Service request name is the Operation name which will send this request out,
40 // each operation should has unique request name, so that we can get operation's name from this request.
41 // Note: this is not true for response, multiple operations may have the same response name,
42 // so we can not get operation's name from response.
43 inline virtual const char* GetServiceRequestName() const override { return "UpdatePentest"; }
44
45 AWS_SECURITYAGENT_API Aws::String SerializePayload() const override;
46
48
51 inline const Aws::String& GetPentestId() const { return m_pentestId; }
52 inline bool PentestIdHasBeenSet() const { return m_pentestIdHasBeenSet; }
53 template <typename PentestIdT = Aws::String>
54 void SetPentestId(PentestIdT&& value) {
55 m_pentestIdHasBeenSet = true;
56 m_pentestId = std::forward<PentestIdT>(value);
57 }
58 template <typename PentestIdT = Aws::String>
59 UpdatePentestRequest& WithPentestId(PentestIdT&& value) {
60 SetPentestId(std::forward<PentestIdT>(value));
61 return *this;
62 }
64
66
69 inline const Aws::String& GetAgentSpaceId() const { return m_agentSpaceId; }
70 inline bool AgentSpaceIdHasBeenSet() const { return m_agentSpaceIdHasBeenSet; }
71 template <typename AgentSpaceIdT = Aws::String>
72 void SetAgentSpaceId(AgentSpaceIdT&& value) {
73 m_agentSpaceIdHasBeenSet = true;
74 m_agentSpaceId = std::forward<AgentSpaceIdT>(value);
75 }
76 template <typename AgentSpaceIdT = Aws::String>
77 UpdatePentestRequest& WithAgentSpaceId(AgentSpaceIdT&& value) {
78 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
79 return *this;
80 }
82
84
87 inline const Aws::String& GetTitle() const { return m_title; }
88 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
89 template <typename TitleT = Aws::String>
90 void SetTitle(TitleT&& value) {
91 m_titleHasBeenSet = true;
92 m_title = std::forward<TitleT>(value);
93 }
94 template <typename TitleT = Aws::String>
96 SetTitle(std::forward<TitleT>(value));
97 return *this;
98 }
100
102
105 inline const Assets& GetAssets() const { return m_assets; }
106 inline bool AssetsHasBeenSet() const { return m_assetsHasBeenSet; }
107 template <typename AssetsT = Assets>
108 void SetAssets(AssetsT&& value) {
109 m_assetsHasBeenSet = true;
110 m_assets = std::forward<AssetsT>(value);
111 }
112 template <typename AssetsT = Assets>
114 SetAssets(std::forward<AssetsT>(value));
115 return *this;
116 }
118
120
123 inline const Aws::Vector<RiskType>& GetExcludeRiskTypes() const { return m_excludeRiskTypes; }
124 inline bool ExcludeRiskTypesHasBeenSet() const { return m_excludeRiskTypesHasBeenSet; }
125 template <typename ExcludeRiskTypesT = Aws::Vector<RiskType>>
126 void SetExcludeRiskTypes(ExcludeRiskTypesT&& value) {
127 m_excludeRiskTypesHasBeenSet = true;
128 m_excludeRiskTypes = std::forward<ExcludeRiskTypesT>(value);
129 }
130 template <typename ExcludeRiskTypesT = Aws::Vector<RiskType>>
131 UpdatePentestRequest& WithExcludeRiskTypes(ExcludeRiskTypesT&& value) {
132 SetExcludeRiskTypes(std::forward<ExcludeRiskTypesT>(value));
133 return *this;
134 }
136 m_excludeRiskTypesHasBeenSet = true;
137 m_excludeRiskTypes.push_back(value);
138 return *this;
139 }
141
143
146 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
147 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
148 template <typename ServiceRoleT = Aws::String>
149 void SetServiceRole(ServiceRoleT&& value) {
150 m_serviceRoleHasBeenSet = true;
151 m_serviceRole = std::forward<ServiceRoleT>(value);
152 }
153 template <typename ServiceRoleT = Aws::String>
154 UpdatePentestRequest& WithServiceRole(ServiceRoleT&& value) {
155 SetServiceRole(std::forward<ServiceRoleT>(value));
156 return *this;
157 }
159
161
164 inline const CloudWatchLog& GetLogConfig() const { return m_logConfig; }
165 inline bool LogConfigHasBeenSet() const { return m_logConfigHasBeenSet; }
166 template <typename LogConfigT = CloudWatchLog>
167 void SetLogConfig(LogConfigT&& value) {
168 m_logConfigHasBeenSet = true;
169 m_logConfig = std::forward<LogConfigT>(value);
170 }
171 template <typename LogConfigT = CloudWatchLog>
172 UpdatePentestRequest& WithLogConfig(LogConfigT&& value) {
173 SetLogConfig(std::forward<LogConfigT>(value));
174 return *this;
175 }
177
179
182 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
183 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
184 template <typename VpcConfigT = VpcConfig>
185 void SetVpcConfig(VpcConfigT&& value) {
186 m_vpcConfigHasBeenSet = true;
187 m_vpcConfig = std::forward<VpcConfigT>(value);
188 }
189 template <typename VpcConfigT = VpcConfig>
190 UpdatePentestRequest& WithVpcConfig(VpcConfigT&& value) {
191 SetVpcConfig(std::forward<VpcConfigT>(value));
192 return *this;
193 }
195
197
200 inline const NetworkTrafficConfig& GetNetworkTrafficConfig() const { return m_networkTrafficConfig; }
201 inline bool NetworkTrafficConfigHasBeenSet() const { return m_networkTrafficConfigHasBeenSet; }
202 template <typename NetworkTrafficConfigT = NetworkTrafficConfig>
203 void SetNetworkTrafficConfig(NetworkTrafficConfigT&& value) {
204 m_networkTrafficConfigHasBeenSet = true;
205 m_networkTrafficConfig = std::forward<NetworkTrafficConfigT>(value);
206 }
207 template <typename NetworkTrafficConfigT = NetworkTrafficConfig>
208 UpdatePentestRequest& WithNetworkTrafficConfig(NetworkTrafficConfigT&& value) {
209 SetNetworkTrafficConfig(std::forward<NetworkTrafficConfigT>(value));
210 return *this;
211 }
213
215
218 inline CodeRemediationStrategy GetCodeRemediationStrategy() const { return m_codeRemediationStrategy; }
219 inline bool CodeRemediationStrategyHasBeenSet() const { return m_codeRemediationStrategyHasBeenSet; }
221 m_codeRemediationStrategyHasBeenSet = true;
222 m_codeRemediationStrategy = value;
223 }
229
231
235 inline CleanUpStrategy GetCleanUpStrategy() const { return m_cleanUpStrategy; }
236 inline bool CleanUpStrategyHasBeenSet() const { return m_cleanUpStrategyHasBeenSet; }
238 m_cleanUpStrategyHasBeenSet = true;
239 m_cleanUpStrategy = value;
240 }
242 SetCleanUpStrategy(value);
243 return *this;
244 }
246
248
252 inline const Aws::Vector<SkillType>& GetDisableManagedSkills() const { return m_disableManagedSkills; }
253 inline bool DisableManagedSkillsHasBeenSet() const { return m_disableManagedSkillsHasBeenSet; }
254 template <typename DisableManagedSkillsT = Aws::Vector<SkillType>>
255 void SetDisableManagedSkills(DisableManagedSkillsT&& value) {
256 m_disableManagedSkillsHasBeenSet = true;
257 m_disableManagedSkills = std::forward<DisableManagedSkillsT>(value);
258 }
259 template <typename DisableManagedSkillsT = Aws::Vector<SkillType>>
260 UpdatePentestRequest& WithDisableManagedSkills(DisableManagedSkillsT&& value) {
261 SetDisableManagedSkills(std::forward<DisableManagedSkillsT>(value));
262 return *this;
263 }
265 m_disableManagedSkillsHasBeenSet = true;
266 m_disableManagedSkills.push_back(value);
267 return *this;
268 }
270
272
276 inline double GetMaxTaskHours() const { return m_maxTaskHours; }
277 inline bool MaxTaskHoursHasBeenSet() const { return m_maxTaskHoursHasBeenSet; }
278 inline void SetMaxTaskHours(double value) {
279 m_maxTaskHoursHasBeenSet = true;
280 m_maxTaskHours = value;
281 }
283 SetMaxTaskHours(value);
284 return *this;
285 }
287
289
293 inline const ReportDestination& GetReportDestination() const { return m_reportDestination; }
294 inline bool ReportDestinationHasBeenSet() const { return m_reportDestinationHasBeenSet; }
295 template <typename ReportDestinationT = ReportDestination>
296 void SetReportDestination(ReportDestinationT&& value) {
297 m_reportDestinationHasBeenSet = true;
298 m_reportDestination = std::forward<ReportDestinationT>(value);
299 }
300 template <typename ReportDestinationT = ReportDestination>
301 UpdatePentestRequest& WithReportDestination(ReportDestinationT&& value) {
302 SetReportDestination(std::forward<ReportDestinationT>(value));
303 return *this;
304 }
306
308
311 inline const ReportFilters& GetReportFilters() const { return m_reportFilters; }
312 inline bool ReportFiltersHasBeenSet() const { return m_reportFiltersHasBeenSet; }
313 template <typename ReportFiltersT = ReportFilters>
314 void SetReportFilters(ReportFiltersT&& value) {
315 m_reportFiltersHasBeenSet = true;
316 m_reportFilters = std::forward<ReportFiltersT>(value);
317 }
318 template <typename ReportFiltersT = ReportFilters>
319 UpdatePentestRequest& WithReportFilters(ReportFiltersT&& value) {
320 SetReportFilters(std::forward<ReportFiltersT>(value));
321 return *this;
322 }
324
326
329 inline const CiCdConfiguration& GetCicdConfiguration() const { return m_cicdConfiguration; }
330 inline bool CicdConfigurationHasBeenSet() const { return m_cicdConfigurationHasBeenSet; }
331 template <typename CicdConfigurationT = CiCdConfiguration>
332 void SetCicdConfiguration(CicdConfigurationT&& value) {
333 m_cicdConfigurationHasBeenSet = true;
334 m_cicdConfiguration = std::forward<CicdConfigurationT>(value);
335 }
336 template <typename CicdConfigurationT = CiCdConfiguration>
337 UpdatePentestRequest& WithCicdConfiguration(CicdConfigurationT&& value) {
338 SetCicdConfiguration(std::forward<CicdConfigurationT>(value));
339 return *this;
340 }
342
344
345 inline const TestScope& GetTestScope() const { return m_testScope; }
346 inline bool TestScopeHasBeenSet() const { return m_testScopeHasBeenSet; }
347 template <typename TestScopeT = TestScope>
348 void SetTestScope(TestScopeT&& value) {
349 m_testScopeHasBeenSet = true;
350 m_testScope = std::forward<TestScopeT>(value);
351 }
352 template <typename TestScopeT = TestScope>
353 UpdatePentestRequest& WithTestScope(TestScopeT&& value) {
354 SetTestScope(std::forward<TestScopeT>(value));
355 return *this;
356 }
358 private:
359 Aws::String m_pentestId;
360
361 Aws::String m_agentSpaceId;
362
363 Aws::String m_title;
364
365 Assets m_assets;
366
367 Aws::Vector<RiskType> m_excludeRiskTypes;
368
369 Aws::String m_serviceRole;
370
371 CloudWatchLog m_logConfig;
372
373 VpcConfig m_vpcConfig;
374
375 NetworkTrafficConfig m_networkTrafficConfig;
376
378
379 CleanUpStrategy m_cleanUpStrategy{CleanUpStrategy::NOT_SET};
380
381 Aws::Vector<SkillType> m_disableManagedSkills;
382
383 double m_maxTaskHours{0.0};
384
385 ReportDestination m_reportDestination;
386
387 ReportFilters m_reportFilters;
388
389 CiCdConfiguration m_cicdConfiguration;
390
391 TestScope m_testScope;
392 bool m_pentestIdHasBeenSet = false;
393 bool m_agentSpaceIdHasBeenSet = false;
394 bool m_titleHasBeenSet = false;
395 bool m_assetsHasBeenSet = false;
396 bool m_excludeRiskTypesHasBeenSet = false;
397 bool m_serviceRoleHasBeenSet = false;
398 bool m_logConfigHasBeenSet = false;
399 bool m_vpcConfigHasBeenSet = false;
400 bool m_networkTrafficConfigHasBeenSet = false;
401 bool m_codeRemediationStrategyHasBeenSet = false;
402 bool m_cleanUpStrategyHasBeenSet = false;
403 bool m_disableManagedSkillsHasBeenSet = false;
404 bool m_maxTaskHoursHasBeenSet = false;
405 bool m_reportDestinationHasBeenSet = false;
406 bool m_reportFiltersHasBeenSet = false;
407 bool m_cicdConfigurationHasBeenSet = false;
408 bool m_testScopeHasBeenSet = false;
409};
410
411} // namespace Model
412} // namespace SecurityAgent
413} // 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)
UpdatePentestRequest & WithCleanUpStrategy(CleanUpStrategy 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