AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
CreatePentestRequest.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 CreatePentestRequest() = 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 "CreatePentest"; }
44
45 AWS_SECURITYAGENT_API Aws::String SerializePayload() const override;
46
48
51 inline const Aws::String& GetTitle() const { return m_title; }
52 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
53 template <typename TitleT = Aws::String>
54 void SetTitle(TitleT&& value) {
55 m_titleHasBeenSet = true;
56 m_title = std::forward<TitleT>(value);
57 }
58 template <typename TitleT = Aws::String>
60 SetTitle(std::forward<TitleT>(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 CreatePentestRequest& WithAgentSpaceId(AgentSpaceIdT&& value) {
78 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
79 return *this;
80 }
82
84
88 inline const Assets& GetAssets() const { return m_assets; }
89 inline bool AssetsHasBeenSet() const { return m_assetsHasBeenSet; }
90 template <typename AssetsT = Assets>
91 void SetAssets(AssetsT&& value) {
92 m_assetsHasBeenSet = true;
93 m_assets = std::forward<AssetsT>(value);
94 }
95 template <typename AssetsT = Assets>
96 CreatePentestRequest& WithAssets(AssetsT&& value) {
97 SetAssets(std::forward<AssetsT>(value));
98 return *this;
99 }
101
103
106 inline const Aws::Vector<RiskType>& GetExcludeRiskTypes() const { return m_excludeRiskTypes; }
107 inline bool ExcludeRiskTypesHasBeenSet() const { return m_excludeRiskTypesHasBeenSet; }
108 template <typename ExcludeRiskTypesT = Aws::Vector<RiskType>>
109 void SetExcludeRiskTypes(ExcludeRiskTypesT&& value) {
110 m_excludeRiskTypesHasBeenSet = true;
111 m_excludeRiskTypes = std::forward<ExcludeRiskTypesT>(value);
112 }
113 template <typename ExcludeRiskTypesT = Aws::Vector<RiskType>>
114 CreatePentestRequest& WithExcludeRiskTypes(ExcludeRiskTypesT&& value) {
115 SetExcludeRiskTypes(std::forward<ExcludeRiskTypesT>(value));
116 return *this;
117 }
119 m_excludeRiskTypesHasBeenSet = true;
120 m_excludeRiskTypes.push_back(value);
121 return *this;
122 }
124
126
129 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
130 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
131 template <typename ServiceRoleT = Aws::String>
132 void SetServiceRole(ServiceRoleT&& value) {
133 m_serviceRoleHasBeenSet = true;
134 m_serviceRole = std::forward<ServiceRoleT>(value);
135 }
136 template <typename ServiceRoleT = Aws::String>
137 CreatePentestRequest& WithServiceRole(ServiceRoleT&& value) {
138 SetServiceRole(std::forward<ServiceRoleT>(value));
139 return *this;
140 }
142
144
147 inline const CloudWatchLog& GetLogConfig() const { return m_logConfig; }
148 inline bool LogConfigHasBeenSet() const { return m_logConfigHasBeenSet; }
149 template <typename LogConfigT = CloudWatchLog>
150 void SetLogConfig(LogConfigT&& value) {
151 m_logConfigHasBeenSet = true;
152 m_logConfig = std::forward<LogConfigT>(value);
153 }
154 template <typename LogConfigT = CloudWatchLog>
155 CreatePentestRequest& WithLogConfig(LogConfigT&& value) {
156 SetLogConfig(std::forward<LogConfigT>(value));
157 return *this;
158 }
160
162
165 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
166 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
167 template <typename VpcConfigT = VpcConfig>
168 void SetVpcConfig(VpcConfigT&& value) {
169 m_vpcConfigHasBeenSet = true;
170 m_vpcConfig = std::forward<VpcConfigT>(value);
171 }
172 template <typename VpcConfigT = VpcConfig>
173 CreatePentestRequest& WithVpcConfig(VpcConfigT&& value) {
174 SetVpcConfig(std::forward<VpcConfigT>(value));
175 return *this;
176 }
178
180
184 inline const NetworkTrafficConfig& GetNetworkTrafficConfig() const { return m_networkTrafficConfig; }
185 inline bool NetworkTrafficConfigHasBeenSet() const { return m_networkTrafficConfigHasBeenSet; }
186 template <typename NetworkTrafficConfigT = NetworkTrafficConfig>
187 void SetNetworkTrafficConfig(NetworkTrafficConfigT&& value) {
188 m_networkTrafficConfigHasBeenSet = true;
189 m_networkTrafficConfig = std::forward<NetworkTrafficConfigT>(value);
190 }
191 template <typename NetworkTrafficConfigT = NetworkTrafficConfig>
192 CreatePentestRequest& WithNetworkTrafficConfig(NetworkTrafficConfigT&& value) {
193 SetNetworkTrafficConfig(std::forward<NetworkTrafficConfigT>(value));
194 return *this;
195 }
197
199
203 inline CodeRemediationStrategy GetCodeRemediationStrategy() const { return m_codeRemediationStrategy; }
204 inline bool CodeRemediationStrategyHasBeenSet() const { return m_codeRemediationStrategyHasBeenSet; }
206 m_codeRemediationStrategyHasBeenSet = true;
207 m_codeRemediationStrategy = value;
208 }
214
216
220 inline CleanUpStrategy GetCleanUpStrategy() const { return m_cleanUpStrategy; }
221 inline bool CleanUpStrategyHasBeenSet() const { return m_cleanUpStrategyHasBeenSet; }
223 m_cleanUpStrategyHasBeenSet = true;
224 m_cleanUpStrategy = value;
225 }
227 SetCleanUpStrategy(value);
228 return *this;
229 }
231
233
237 inline const Aws::Vector<SkillType>& GetDisableManagedSkills() const { return m_disableManagedSkills; }
238 inline bool DisableManagedSkillsHasBeenSet() const { return m_disableManagedSkillsHasBeenSet; }
239 template <typename DisableManagedSkillsT = Aws::Vector<SkillType>>
240 void SetDisableManagedSkills(DisableManagedSkillsT&& value) {
241 m_disableManagedSkillsHasBeenSet = true;
242 m_disableManagedSkills = std::forward<DisableManagedSkillsT>(value);
243 }
244 template <typename DisableManagedSkillsT = Aws::Vector<SkillType>>
245 CreatePentestRequest& WithDisableManagedSkills(DisableManagedSkillsT&& value) {
246 SetDisableManagedSkills(std::forward<DisableManagedSkillsT>(value));
247 return *this;
248 }
250 m_disableManagedSkillsHasBeenSet = true;
251 m_disableManagedSkills.push_back(value);
252 return *this;
253 }
255
257
262 inline double GetMaxTaskHours() const { return m_maxTaskHours; }
263 inline bool MaxTaskHoursHasBeenSet() const { return m_maxTaskHoursHasBeenSet; }
264 inline void SetMaxTaskHours(double value) {
265 m_maxTaskHoursHasBeenSet = true;
266 m_maxTaskHours = value;
267 }
269 SetMaxTaskHours(value);
270 return *this;
271 }
273
275
279 inline const ReportDestination& GetReportDestination() const { return m_reportDestination; }
280 inline bool ReportDestinationHasBeenSet() const { return m_reportDestinationHasBeenSet; }
281 template <typename ReportDestinationT = ReportDestination>
282 void SetReportDestination(ReportDestinationT&& value) {
283 m_reportDestinationHasBeenSet = true;
284 m_reportDestination = std::forward<ReportDestinationT>(value);
285 }
286 template <typename ReportDestinationT = ReportDestination>
287 CreatePentestRequest& WithReportDestination(ReportDestinationT&& value) {
288 SetReportDestination(std::forward<ReportDestinationT>(value));
289 return *this;
290 }
292
294
297 inline const ReportFilters& GetReportFilters() const { return m_reportFilters; }
298 inline bool ReportFiltersHasBeenSet() const { return m_reportFiltersHasBeenSet; }
299 template <typename ReportFiltersT = ReportFilters>
300 void SetReportFilters(ReportFiltersT&& value) {
301 m_reportFiltersHasBeenSet = true;
302 m_reportFilters = std::forward<ReportFiltersT>(value);
303 }
304 template <typename ReportFiltersT = ReportFilters>
305 CreatePentestRequest& WithReportFilters(ReportFiltersT&& value) {
306 SetReportFilters(std::forward<ReportFiltersT>(value));
307 return *this;
308 }
310
312
315 inline const CiCdConfiguration& GetCicdConfiguration() const { return m_cicdConfiguration; }
316 inline bool CicdConfigurationHasBeenSet() const { return m_cicdConfigurationHasBeenSet; }
317 template <typename CicdConfigurationT = CiCdConfiguration>
318 void SetCicdConfiguration(CicdConfigurationT&& value) {
319 m_cicdConfigurationHasBeenSet = true;
320 m_cicdConfiguration = std::forward<CicdConfigurationT>(value);
321 }
322 template <typename CicdConfigurationT = CiCdConfiguration>
323 CreatePentestRequest& WithCicdConfiguration(CicdConfigurationT&& value) {
324 SetCicdConfiguration(std::forward<CicdConfigurationT>(value));
325 return *this;
326 }
328
330
331 inline const TestScope& GetTestScope() const { return m_testScope; }
332 inline bool TestScopeHasBeenSet() const { return m_testScopeHasBeenSet; }
333 template <typename TestScopeT = TestScope>
334 void SetTestScope(TestScopeT&& value) {
335 m_testScopeHasBeenSet = true;
336 m_testScope = std::forward<TestScopeT>(value);
337 }
338 template <typename TestScopeT = TestScope>
339 CreatePentestRequest& WithTestScope(TestScopeT&& value) {
340 SetTestScope(std::forward<TestScopeT>(value));
341 return *this;
342 }
344 private:
345 Aws::String m_title;
346
347 Aws::String m_agentSpaceId;
348
349 Assets m_assets;
350
351 Aws::Vector<RiskType> m_excludeRiskTypes;
352
353 Aws::String m_serviceRole;
354
355 CloudWatchLog m_logConfig;
356
357 VpcConfig m_vpcConfig;
358
359 NetworkTrafficConfig m_networkTrafficConfig;
360
362
363 CleanUpStrategy m_cleanUpStrategy{CleanUpStrategy::NOT_SET};
364
365 Aws::Vector<SkillType> m_disableManagedSkills;
366
367 double m_maxTaskHours{0.0};
368
369 ReportDestination m_reportDestination;
370
371 ReportFilters m_reportFilters;
372
373 CiCdConfiguration m_cicdConfiguration;
374
375 TestScope m_testScope;
376 bool m_titleHasBeenSet = false;
377 bool m_agentSpaceIdHasBeenSet = false;
378 bool m_assetsHasBeenSet = false;
379 bool m_excludeRiskTypesHasBeenSet = false;
380 bool m_serviceRoleHasBeenSet = false;
381 bool m_logConfigHasBeenSet = false;
382 bool m_vpcConfigHasBeenSet = false;
383 bool m_networkTrafficConfigHasBeenSet = false;
384 bool m_codeRemediationStrategyHasBeenSet = false;
385 bool m_cleanUpStrategyHasBeenSet = false;
386 bool m_disableManagedSkillsHasBeenSet = false;
387 bool m_maxTaskHoursHasBeenSet = false;
388 bool m_reportDestinationHasBeenSet = false;
389 bool m_reportFiltersHasBeenSet = false;
390 bool m_cicdConfigurationHasBeenSet = false;
391 bool m_testScopeHasBeenSet = false;
392};
393
394} // namespace Model
395} // namespace SecurityAgent
396} // namespace Aws
const ReportDestination & GetReportDestination() const
void SetNetworkTrafficConfig(NetworkTrafficConfigT &&value)
CreatePentestRequest & WithTitle(TitleT &&value)
CodeRemediationStrategy GetCodeRemediationStrategy() const
CreatePentestRequest & WithMaxTaskHours(double value)
CreatePentestRequest & WithVpcConfig(VpcConfigT &&value)
CreatePentestRequest & WithAgentSpaceId(AgentSpaceIdT &&value)
void SetCicdConfiguration(CicdConfigurationT &&value)
const NetworkTrafficConfig & GetNetworkTrafficConfig() const
CreatePentestRequest & WithDisableManagedSkills(DisableManagedSkillsT &&value)
void SetCodeRemediationStrategy(CodeRemediationStrategy value)
const CiCdConfiguration & GetCicdConfiguration() const
CreatePentestRequest & WithCleanUpStrategy(CleanUpStrategy value)
CreatePentestRequest & WithExcludeRiskTypes(ExcludeRiskTypesT &&value)
void SetReportDestination(ReportDestinationT &&value)
const Aws::Vector< SkillType > & GetDisableManagedSkills() const
AWS_SECURITYAGENT_API CreatePentestRequest()=default
const Aws::Vector< RiskType > & GetExcludeRiskTypes() const
CreatePentestRequest & WithReportFilters(ReportFiltersT &&value)
CreatePentestRequest & AddDisableManagedSkills(SkillType value)
CreatePentestRequest & WithCicdConfiguration(CicdConfigurationT &&value)
AWS_SECURITYAGENT_API Aws::String SerializePayload() const override
CreatePentestRequest & AddExcludeRiskTypes(RiskType value)
CreatePentestRequest & WithReportDestination(ReportDestinationT &&value)
CreatePentestRequest & WithTestScope(TestScopeT &&value)
virtual const char * GetServiceRequestName() const override
CreatePentestRequest & WithServiceRole(ServiceRoleT &&value)
void SetDisableManagedSkills(DisableManagedSkillsT &&value)
CreatePentestRequest & WithLogConfig(LogConfigT &&value)
CreatePentestRequest & WithAssets(AssetsT &&value)
CreatePentestRequest & WithCodeRemediationStrategy(CodeRemediationStrategy value)
CreatePentestRequest & WithNetworkTrafficConfig(NetworkTrafficConfigT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector