AWS SDK for C++

AWS SDK for C++ Version 1.11.903

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/VpcConfig.h>
21
22#include <utility>
23
24namespace Aws {
25namespace SecurityAgent {
26namespace Model {
27
34 public:
35 AWS_SECURITYAGENT_API UpdatePentestRequest() = default;
36
37 // Service request name is the Operation name which will send this request out,
38 // each operation should has unique request name, so that we can get operation's name from this request.
39 // Note: this is not true for response, multiple operations may have the same response name,
40 // so we can not get operation's name from response.
41 inline virtual const char* GetServiceRequestName() const override { return "UpdatePentest"; }
42
43 AWS_SECURITYAGENT_API Aws::String SerializePayload() const override;
44
46
49 inline const Aws::String& GetPentestId() const { return m_pentestId; }
50 inline bool PentestIdHasBeenSet() const { return m_pentestIdHasBeenSet; }
51 template <typename PentestIdT = Aws::String>
52 void SetPentestId(PentestIdT&& value) {
53 m_pentestIdHasBeenSet = true;
54 m_pentestId = std::forward<PentestIdT>(value);
55 }
56 template <typename PentestIdT = Aws::String>
57 UpdatePentestRequest& WithPentestId(PentestIdT&& value) {
58 SetPentestId(std::forward<PentestIdT>(value));
59 return *this;
60 }
62
64
67 inline const Aws::String& GetAgentSpaceId() const { return m_agentSpaceId; }
68 inline bool AgentSpaceIdHasBeenSet() const { return m_agentSpaceIdHasBeenSet; }
69 template <typename AgentSpaceIdT = Aws::String>
70 void SetAgentSpaceId(AgentSpaceIdT&& value) {
71 m_agentSpaceIdHasBeenSet = true;
72 m_agentSpaceId = std::forward<AgentSpaceIdT>(value);
73 }
74 template <typename AgentSpaceIdT = Aws::String>
75 UpdatePentestRequest& WithAgentSpaceId(AgentSpaceIdT&& value) {
76 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::String& GetTitle() const { return m_title; }
86 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
87 template <typename TitleT = Aws::String>
88 void SetTitle(TitleT&& value) {
89 m_titleHasBeenSet = true;
90 m_title = std::forward<TitleT>(value);
91 }
92 template <typename TitleT = Aws::String>
94 SetTitle(std::forward<TitleT>(value));
95 return *this;
96 }
98
100
103 inline const Assets& GetAssets() const { return m_assets; }
104 inline bool AssetsHasBeenSet() const { return m_assetsHasBeenSet; }
105 template <typename AssetsT = Assets>
106 void SetAssets(AssetsT&& value) {
107 m_assetsHasBeenSet = true;
108 m_assets = std::forward<AssetsT>(value);
109 }
110 template <typename AssetsT = Assets>
112 SetAssets(std::forward<AssetsT>(value));
113 return *this;
114 }
116
118
121 inline const Aws::Vector<RiskType>& GetExcludeRiskTypes() const { return m_excludeRiskTypes; }
122 inline bool ExcludeRiskTypesHasBeenSet() const { return m_excludeRiskTypesHasBeenSet; }
123 template <typename ExcludeRiskTypesT = Aws::Vector<RiskType>>
124 void SetExcludeRiskTypes(ExcludeRiskTypesT&& value) {
125 m_excludeRiskTypesHasBeenSet = true;
126 m_excludeRiskTypes = std::forward<ExcludeRiskTypesT>(value);
127 }
128 template <typename ExcludeRiskTypesT = Aws::Vector<RiskType>>
129 UpdatePentestRequest& WithExcludeRiskTypes(ExcludeRiskTypesT&& value) {
130 SetExcludeRiskTypes(std::forward<ExcludeRiskTypesT>(value));
131 return *this;
132 }
134 m_excludeRiskTypesHasBeenSet = true;
135 m_excludeRiskTypes.push_back(value);
136 return *this;
137 }
139
141
144 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
145 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
146 template <typename ServiceRoleT = Aws::String>
147 void SetServiceRole(ServiceRoleT&& value) {
148 m_serviceRoleHasBeenSet = true;
149 m_serviceRole = std::forward<ServiceRoleT>(value);
150 }
151 template <typename ServiceRoleT = Aws::String>
152 UpdatePentestRequest& WithServiceRole(ServiceRoleT&& value) {
153 SetServiceRole(std::forward<ServiceRoleT>(value));
154 return *this;
155 }
157
159
162 inline const CloudWatchLog& GetLogConfig() const { return m_logConfig; }
163 inline bool LogConfigHasBeenSet() const { return m_logConfigHasBeenSet; }
164 template <typename LogConfigT = CloudWatchLog>
165 void SetLogConfig(LogConfigT&& value) {
166 m_logConfigHasBeenSet = true;
167 m_logConfig = std::forward<LogConfigT>(value);
168 }
169 template <typename LogConfigT = CloudWatchLog>
170 UpdatePentestRequest& WithLogConfig(LogConfigT&& value) {
171 SetLogConfig(std::forward<LogConfigT>(value));
172 return *this;
173 }
175
177
180 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
181 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
182 template <typename VpcConfigT = VpcConfig>
183 void SetVpcConfig(VpcConfigT&& value) {
184 m_vpcConfigHasBeenSet = true;
185 m_vpcConfig = std::forward<VpcConfigT>(value);
186 }
187 template <typename VpcConfigT = VpcConfig>
188 UpdatePentestRequest& WithVpcConfig(VpcConfigT&& value) {
189 SetVpcConfig(std::forward<VpcConfigT>(value));
190 return *this;
191 }
193
195
198 inline const NetworkTrafficConfig& GetNetworkTrafficConfig() const { return m_networkTrafficConfig; }
199 inline bool NetworkTrafficConfigHasBeenSet() const { return m_networkTrafficConfigHasBeenSet; }
200 template <typename NetworkTrafficConfigT = NetworkTrafficConfig>
201 void SetNetworkTrafficConfig(NetworkTrafficConfigT&& value) {
202 m_networkTrafficConfigHasBeenSet = true;
203 m_networkTrafficConfig = std::forward<NetworkTrafficConfigT>(value);
204 }
205 template <typename NetworkTrafficConfigT = NetworkTrafficConfig>
206 UpdatePentestRequest& WithNetworkTrafficConfig(NetworkTrafficConfigT&& value) {
207 SetNetworkTrafficConfig(std::forward<NetworkTrafficConfigT>(value));
208 return *this;
209 }
211
213
216 inline CodeRemediationStrategy GetCodeRemediationStrategy() const { return m_codeRemediationStrategy; }
217 inline bool CodeRemediationStrategyHasBeenSet() const { return m_codeRemediationStrategyHasBeenSet; }
219 m_codeRemediationStrategyHasBeenSet = true;
220 m_codeRemediationStrategy = value;
221 }
224 return *this;
225 }
227
229
233 inline const Aws::Vector<SkillType>& GetDisableManagedSkills() const { return m_disableManagedSkills; }
234 inline bool DisableManagedSkillsHasBeenSet() const { return m_disableManagedSkillsHasBeenSet; }
235 template <typename DisableManagedSkillsT = Aws::Vector<SkillType>>
236 void SetDisableManagedSkills(DisableManagedSkillsT&& value) {
237 m_disableManagedSkillsHasBeenSet = true;
238 m_disableManagedSkills = std::forward<DisableManagedSkillsT>(value);
239 }
240 template <typename DisableManagedSkillsT = Aws::Vector<SkillType>>
241 UpdatePentestRequest& WithDisableManagedSkills(DisableManagedSkillsT&& value) {
242 SetDisableManagedSkills(std::forward<DisableManagedSkillsT>(value));
243 return *this;
244 }
246 m_disableManagedSkillsHasBeenSet = true;
247 m_disableManagedSkills.push_back(value);
248 return *this;
249 }
251
253
257 inline double GetMaxTaskHours() const { return m_maxTaskHours; }
258 inline bool MaxTaskHoursHasBeenSet() const { return m_maxTaskHoursHasBeenSet; }
259 inline void SetMaxTaskHours(double value) {
260 m_maxTaskHoursHasBeenSet = true;
261 m_maxTaskHours = value;
262 }
264 SetMaxTaskHours(value);
265 return *this;
266 }
268
270
274 inline const ReportDestination& GetReportDestination() const { return m_reportDestination; }
275 inline bool ReportDestinationHasBeenSet() const { return m_reportDestinationHasBeenSet; }
276 template <typename ReportDestinationT = ReportDestination>
277 void SetReportDestination(ReportDestinationT&& value) {
278 m_reportDestinationHasBeenSet = true;
279 m_reportDestination = std::forward<ReportDestinationT>(value);
280 }
281 template <typename ReportDestinationT = ReportDestination>
282 UpdatePentestRequest& WithReportDestination(ReportDestinationT&& value) {
283 SetReportDestination(std::forward<ReportDestinationT>(value));
284 return *this;
285 }
287
289
292 inline const ReportFilters& GetReportFilters() const { return m_reportFilters; }
293 inline bool ReportFiltersHasBeenSet() const { return m_reportFiltersHasBeenSet; }
294 template <typename ReportFiltersT = ReportFilters>
295 void SetReportFilters(ReportFiltersT&& value) {
296 m_reportFiltersHasBeenSet = true;
297 m_reportFilters = std::forward<ReportFiltersT>(value);
298 }
299 template <typename ReportFiltersT = ReportFilters>
300 UpdatePentestRequest& WithReportFilters(ReportFiltersT&& value) {
301 SetReportFilters(std::forward<ReportFiltersT>(value));
302 return *this;
303 }
305
307
310 inline const CiCdConfiguration& GetCicdConfiguration() const { return m_cicdConfiguration; }
311 inline bool CicdConfigurationHasBeenSet() const { return m_cicdConfigurationHasBeenSet; }
312 template <typename CicdConfigurationT = CiCdConfiguration>
313 void SetCicdConfiguration(CicdConfigurationT&& value) {
314 m_cicdConfigurationHasBeenSet = true;
315 m_cicdConfiguration = std::forward<CicdConfigurationT>(value);
316 }
317 template <typename CicdConfigurationT = CiCdConfiguration>
318 UpdatePentestRequest& WithCicdConfiguration(CicdConfigurationT&& value) {
319 SetCicdConfiguration(std::forward<CicdConfigurationT>(value));
320 return *this;
321 }
323 private:
324 Aws::String m_pentestId;
325
326 Aws::String m_agentSpaceId;
327
328 Aws::String m_title;
329
330 Assets m_assets;
331
332 Aws::Vector<RiskType> m_excludeRiskTypes;
333
334 Aws::String m_serviceRole;
335
336 CloudWatchLog m_logConfig;
337
338 VpcConfig m_vpcConfig;
339
340 NetworkTrafficConfig m_networkTrafficConfig;
341
343
344 Aws::Vector<SkillType> m_disableManagedSkills;
345
346 double m_maxTaskHours{0.0};
347
348 ReportDestination m_reportDestination;
349
350 ReportFilters m_reportFilters;
351
352 CiCdConfiguration m_cicdConfiguration;
353 bool m_pentestIdHasBeenSet = false;
354 bool m_agentSpaceIdHasBeenSet = false;
355 bool m_titleHasBeenSet = false;
356 bool m_assetsHasBeenSet = false;
357 bool m_excludeRiskTypesHasBeenSet = false;
358 bool m_serviceRoleHasBeenSet = false;
359 bool m_logConfigHasBeenSet = false;
360 bool m_vpcConfigHasBeenSet = false;
361 bool m_networkTrafficConfigHasBeenSet = false;
362 bool m_codeRemediationStrategyHasBeenSet = false;
363 bool m_disableManagedSkillsHasBeenSet = false;
364 bool m_maxTaskHoursHasBeenSet = false;
365 bool m_reportDestinationHasBeenSet = false;
366 bool m_reportFiltersHasBeenSet = false;
367 bool m_cicdConfigurationHasBeenSet = false;
368};
369
370} // namespace Model
371} // namespace SecurityAgent
372} // 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 & 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