AWS SDK for C++

AWS SDK for C++ Version 1.11.924

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/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 CreatePentestRequest() = 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 "CreatePentest"; }
43
44 AWS_SECURITYAGENT_API Aws::String SerializePayload() const override;
45
47
50 inline const Aws::String& GetTitle() const { return m_title; }
51 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
52 template <typename TitleT = Aws::String>
53 void SetTitle(TitleT&& value) {
54 m_titleHasBeenSet = true;
55 m_title = std::forward<TitleT>(value);
56 }
57 template <typename TitleT = Aws::String>
59 SetTitle(std::forward<TitleT>(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 CreatePentestRequest& WithAgentSpaceId(AgentSpaceIdT&& value) {
77 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
78 return *this;
79 }
81
83
87 inline const Assets& GetAssets() const { return m_assets; }
88 inline bool AssetsHasBeenSet() const { return m_assetsHasBeenSet; }
89 template <typename AssetsT = Assets>
90 void SetAssets(AssetsT&& value) {
91 m_assetsHasBeenSet = true;
92 m_assets = std::forward<AssetsT>(value);
93 }
94 template <typename AssetsT = Assets>
95 CreatePentestRequest& WithAssets(AssetsT&& value) {
96 SetAssets(std::forward<AssetsT>(value));
97 return *this;
98 }
100
102
105 inline const Aws::Vector<RiskType>& GetExcludeRiskTypes() const { return m_excludeRiskTypes; }
106 inline bool ExcludeRiskTypesHasBeenSet() const { return m_excludeRiskTypesHasBeenSet; }
107 template <typename ExcludeRiskTypesT = Aws::Vector<RiskType>>
108 void SetExcludeRiskTypes(ExcludeRiskTypesT&& value) {
109 m_excludeRiskTypesHasBeenSet = true;
110 m_excludeRiskTypes = std::forward<ExcludeRiskTypesT>(value);
111 }
112 template <typename ExcludeRiskTypesT = Aws::Vector<RiskType>>
113 CreatePentestRequest& WithExcludeRiskTypes(ExcludeRiskTypesT&& value) {
114 SetExcludeRiskTypes(std::forward<ExcludeRiskTypesT>(value));
115 return *this;
116 }
118 m_excludeRiskTypesHasBeenSet = true;
119 m_excludeRiskTypes.push_back(value);
120 return *this;
121 }
123
125
128 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
129 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
130 template <typename ServiceRoleT = Aws::String>
131 void SetServiceRole(ServiceRoleT&& value) {
132 m_serviceRoleHasBeenSet = true;
133 m_serviceRole = std::forward<ServiceRoleT>(value);
134 }
135 template <typename ServiceRoleT = Aws::String>
136 CreatePentestRequest& WithServiceRole(ServiceRoleT&& value) {
137 SetServiceRole(std::forward<ServiceRoleT>(value));
138 return *this;
139 }
141
143
146 inline const CloudWatchLog& GetLogConfig() const { return m_logConfig; }
147 inline bool LogConfigHasBeenSet() const { return m_logConfigHasBeenSet; }
148 template <typename LogConfigT = CloudWatchLog>
149 void SetLogConfig(LogConfigT&& value) {
150 m_logConfigHasBeenSet = true;
151 m_logConfig = std::forward<LogConfigT>(value);
152 }
153 template <typename LogConfigT = CloudWatchLog>
154 CreatePentestRequest& WithLogConfig(LogConfigT&& value) {
155 SetLogConfig(std::forward<LogConfigT>(value));
156 return *this;
157 }
159
161
164 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
165 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
166 template <typename VpcConfigT = VpcConfig>
167 void SetVpcConfig(VpcConfigT&& value) {
168 m_vpcConfigHasBeenSet = true;
169 m_vpcConfig = std::forward<VpcConfigT>(value);
170 }
171 template <typename VpcConfigT = VpcConfig>
172 CreatePentestRequest& WithVpcConfig(VpcConfigT&& value) {
173 SetVpcConfig(std::forward<VpcConfigT>(value));
174 return *this;
175 }
177
179
183 inline const NetworkTrafficConfig& GetNetworkTrafficConfig() const { return m_networkTrafficConfig; }
184 inline bool NetworkTrafficConfigHasBeenSet() const { return m_networkTrafficConfigHasBeenSet; }
185 template <typename NetworkTrafficConfigT = NetworkTrafficConfig>
186 void SetNetworkTrafficConfig(NetworkTrafficConfigT&& value) {
187 m_networkTrafficConfigHasBeenSet = true;
188 m_networkTrafficConfig = std::forward<NetworkTrafficConfigT>(value);
189 }
190 template <typename NetworkTrafficConfigT = NetworkTrafficConfig>
191 CreatePentestRequest& WithNetworkTrafficConfig(NetworkTrafficConfigT&& value) {
192 SetNetworkTrafficConfig(std::forward<NetworkTrafficConfigT>(value));
193 return *this;
194 }
196
198
202 inline CodeRemediationStrategy GetCodeRemediationStrategy() const { return m_codeRemediationStrategy; }
203 inline bool CodeRemediationStrategyHasBeenSet() const { return m_codeRemediationStrategyHasBeenSet; }
205 m_codeRemediationStrategyHasBeenSet = true;
206 m_codeRemediationStrategy = value;
207 }
213
215
219 inline const Aws::Vector<SkillType>& GetDisableManagedSkills() const { return m_disableManagedSkills; }
220 inline bool DisableManagedSkillsHasBeenSet() const { return m_disableManagedSkillsHasBeenSet; }
221 template <typename DisableManagedSkillsT = Aws::Vector<SkillType>>
222 void SetDisableManagedSkills(DisableManagedSkillsT&& value) {
223 m_disableManagedSkillsHasBeenSet = true;
224 m_disableManagedSkills = std::forward<DisableManagedSkillsT>(value);
225 }
226 template <typename DisableManagedSkillsT = Aws::Vector<SkillType>>
227 CreatePentestRequest& WithDisableManagedSkills(DisableManagedSkillsT&& value) {
228 SetDisableManagedSkills(std::forward<DisableManagedSkillsT>(value));
229 return *this;
230 }
232 m_disableManagedSkillsHasBeenSet = true;
233 m_disableManagedSkills.push_back(value);
234 return *this;
235 }
237
239
244 inline double GetMaxTaskHours() const { return m_maxTaskHours; }
245 inline bool MaxTaskHoursHasBeenSet() const { return m_maxTaskHoursHasBeenSet; }
246 inline void SetMaxTaskHours(double value) {
247 m_maxTaskHoursHasBeenSet = true;
248 m_maxTaskHours = value;
249 }
251 SetMaxTaskHours(value);
252 return *this;
253 }
255
257
261 inline const ReportDestination& GetReportDestination() const { return m_reportDestination; }
262 inline bool ReportDestinationHasBeenSet() const { return m_reportDestinationHasBeenSet; }
263 template <typename ReportDestinationT = ReportDestination>
264 void SetReportDestination(ReportDestinationT&& value) {
265 m_reportDestinationHasBeenSet = true;
266 m_reportDestination = std::forward<ReportDestinationT>(value);
267 }
268 template <typename ReportDestinationT = ReportDestination>
269 CreatePentestRequest& WithReportDestination(ReportDestinationT&& value) {
270 SetReportDestination(std::forward<ReportDestinationT>(value));
271 return *this;
272 }
274
276
279 inline const ReportFilters& GetReportFilters() const { return m_reportFilters; }
280 inline bool ReportFiltersHasBeenSet() const { return m_reportFiltersHasBeenSet; }
281 template <typename ReportFiltersT = ReportFilters>
282 void SetReportFilters(ReportFiltersT&& value) {
283 m_reportFiltersHasBeenSet = true;
284 m_reportFilters = std::forward<ReportFiltersT>(value);
285 }
286 template <typename ReportFiltersT = ReportFilters>
287 CreatePentestRequest& WithReportFilters(ReportFiltersT&& value) {
288 SetReportFilters(std::forward<ReportFiltersT>(value));
289 return *this;
290 }
292
294
297 inline const CiCdConfiguration& GetCicdConfiguration() const { return m_cicdConfiguration; }
298 inline bool CicdConfigurationHasBeenSet() const { return m_cicdConfigurationHasBeenSet; }
299 template <typename CicdConfigurationT = CiCdConfiguration>
300 void SetCicdConfiguration(CicdConfigurationT&& value) {
301 m_cicdConfigurationHasBeenSet = true;
302 m_cicdConfiguration = std::forward<CicdConfigurationT>(value);
303 }
304 template <typename CicdConfigurationT = CiCdConfiguration>
305 CreatePentestRequest& WithCicdConfiguration(CicdConfigurationT&& value) {
306 SetCicdConfiguration(std::forward<CicdConfigurationT>(value));
307 return *this;
308 }
310
312
313 inline const TestScope& GetTestScope() const { return m_testScope; }
314 inline bool TestScopeHasBeenSet() const { return m_testScopeHasBeenSet; }
315 template <typename TestScopeT = TestScope>
316 void SetTestScope(TestScopeT&& value) {
317 m_testScopeHasBeenSet = true;
318 m_testScope = std::forward<TestScopeT>(value);
319 }
320 template <typename TestScopeT = TestScope>
321 CreatePentestRequest& WithTestScope(TestScopeT&& value) {
322 SetTestScope(std::forward<TestScopeT>(value));
323 return *this;
324 }
326 private:
327 Aws::String m_title;
328
329 Aws::String m_agentSpaceId;
330
331 Assets m_assets;
332
333 Aws::Vector<RiskType> m_excludeRiskTypes;
334
335 Aws::String m_serviceRole;
336
337 CloudWatchLog m_logConfig;
338
339 VpcConfig m_vpcConfig;
340
341 NetworkTrafficConfig m_networkTrafficConfig;
342
344
345 Aws::Vector<SkillType> m_disableManagedSkills;
346
347 double m_maxTaskHours{0.0};
348
349 ReportDestination m_reportDestination;
350
351 ReportFilters m_reportFilters;
352
353 CiCdConfiguration m_cicdConfiguration;
354
355 TestScope m_testScope;
356 bool m_titleHasBeenSet = false;
357 bool m_agentSpaceIdHasBeenSet = false;
358 bool m_assetsHasBeenSet = false;
359 bool m_excludeRiskTypesHasBeenSet = false;
360 bool m_serviceRoleHasBeenSet = false;
361 bool m_logConfigHasBeenSet = false;
362 bool m_vpcConfigHasBeenSet = false;
363 bool m_networkTrafficConfigHasBeenSet = false;
364 bool m_codeRemediationStrategyHasBeenSet = false;
365 bool m_disableManagedSkillsHasBeenSet = false;
366 bool m_maxTaskHoursHasBeenSet = false;
367 bool m_reportDestinationHasBeenSet = false;
368 bool m_reportFiltersHasBeenSet = false;
369 bool m_cicdConfigurationHasBeenSet = false;
370 bool m_testScopeHasBeenSet = false;
371};
372
373} // namespace Model
374} // namespace SecurityAgent
375} // 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 & 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