AWS SDK for C++

AWS SDK for C++ Version 1.11.901

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/CloudWatchLog.h>
13#include <aws/securityagent/model/CodeRemediationStrategy.h>
14#include <aws/securityagent/model/NetworkTrafficConfig.h>
15#include <aws/securityagent/model/ReportDestination.h>
16#include <aws/securityagent/model/ReportFilters.h>
17#include <aws/securityagent/model/RiskType.h>
18#include <aws/securityagent/model/SkillType.h>
19#include <aws/securityagent/model/VpcConfig.h>
20
21#include <utility>
22
23namespace Aws {
24namespace SecurityAgent {
25namespace Model {
26
33 public:
34 AWS_SECURITYAGENT_API CreatePentestRequest() = default;
35
36 // Service request name is the Operation name which will send this request out,
37 // each operation should has unique request name, so that we can get operation's name from this request.
38 // Note: this is not true for response, multiple operations may have the same response name,
39 // so we can not get operation's name from response.
40 inline virtual const char* GetServiceRequestName() const override { return "CreatePentest"; }
41
42 AWS_SECURITYAGENT_API Aws::String SerializePayload() const override;
43
45
48 inline const Aws::String& GetTitle() const { return m_title; }
49 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
50 template <typename TitleT = Aws::String>
51 void SetTitle(TitleT&& value) {
52 m_titleHasBeenSet = true;
53 m_title = std::forward<TitleT>(value);
54 }
55 template <typename TitleT = Aws::String>
57 SetTitle(std::forward<TitleT>(value));
58 return *this;
59 }
61
63
66 inline const Aws::String& GetAgentSpaceId() const { return m_agentSpaceId; }
67 inline bool AgentSpaceIdHasBeenSet() const { return m_agentSpaceIdHasBeenSet; }
68 template <typename AgentSpaceIdT = Aws::String>
69 void SetAgentSpaceId(AgentSpaceIdT&& value) {
70 m_agentSpaceIdHasBeenSet = true;
71 m_agentSpaceId = std::forward<AgentSpaceIdT>(value);
72 }
73 template <typename AgentSpaceIdT = Aws::String>
74 CreatePentestRequest& WithAgentSpaceId(AgentSpaceIdT&& value) {
75 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
76 return *this;
77 }
79
81
85 inline const Assets& GetAssets() const { return m_assets; }
86 inline bool AssetsHasBeenSet() const { return m_assetsHasBeenSet; }
87 template <typename AssetsT = Assets>
88 void SetAssets(AssetsT&& value) {
89 m_assetsHasBeenSet = true;
90 m_assets = std::forward<AssetsT>(value);
91 }
92 template <typename AssetsT = Assets>
93 CreatePentestRequest& WithAssets(AssetsT&& value) {
94 SetAssets(std::forward<AssetsT>(value));
95 return *this;
96 }
98
100
103 inline const Aws::Vector<RiskType>& GetExcludeRiskTypes() const { return m_excludeRiskTypes; }
104 inline bool ExcludeRiskTypesHasBeenSet() const { return m_excludeRiskTypesHasBeenSet; }
105 template <typename ExcludeRiskTypesT = Aws::Vector<RiskType>>
106 void SetExcludeRiskTypes(ExcludeRiskTypesT&& value) {
107 m_excludeRiskTypesHasBeenSet = true;
108 m_excludeRiskTypes = std::forward<ExcludeRiskTypesT>(value);
109 }
110 template <typename ExcludeRiskTypesT = Aws::Vector<RiskType>>
111 CreatePentestRequest& WithExcludeRiskTypes(ExcludeRiskTypesT&& value) {
112 SetExcludeRiskTypes(std::forward<ExcludeRiskTypesT>(value));
113 return *this;
114 }
116 m_excludeRiskTypesHasBeenSet = true;
117 m_excludeRiskTypes.push_back(value);
118 return *this;
119 }
121
123
126 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
127 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
128 template <typename ServiceRoleT = Aws::String>
129 void SetServiceRole(ServiceRoleT&& value) {
130 m_serviceRoleHasBeenSet = true;
131 m_serviceRole = std::forward<ServiceRoleT>(value);
132 }
133 template <typename ServiceRoleT = Aws::String>
134 CreatePentestRequest& WithServiceRole(ServiceRoleT&& value) {
135 SetServiceRole(std::forward<ServiceRoleT>(value));
136 return *this;
137 }
139
141
144 inline const CloudWatchLog& GetLogConfig() const { return m_logConfig; }
145 inline bool LogConfigHasBeenSet() const { return m_logConfigHasBeenSet; }
146 template <typename LogConfigT = CloudWatchLog>
147 void SetLogConfig(LogConfigT&& value) {
148 m_logConfigHasBeenSet = true;
149 m_logConfig = std::forward<LogConfigT>(value);
150 }
151 template <typename LogConfigT = CloudWatchLog>
152 CreatePentestRequest& WithLogConfig(LogConfigT&& value) {
153 SetLogConfig(std::forward<LogConfigT>(value));
154 return *this;
155 }
157
159
162 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
163 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
164 template <typename VpcConfigT = VpcConfig>
165 void SetVpcConfig(VpcConfigT&& value) {
166 m_vpcConfigHasBeenSet = true;
167 m_vpcConfig = std::forward<VpcConfigT>(value);
168 }
169 template <typename VpcConfigT = VpcConfig>
170 CreatePentestRequest& WithVpcConfig(VpcConfigT&& value) {
171 SetVpcConfig(std::forward<VpcConfigT>(value));
172 return *this;
173 }
175
177
181 inline const NetworkTrafficConfig& GetNetworkTrafficConfig() const { return m_networkTrafficConfig; }
182 inline bool NetworkTrafficConfigHasBeenSet() const { return m_networkTrafficConfigHasBeenSet; }
183 template <typename NetworkTrafficConfigT = NetworkTrafficConfig>
184 void SetNetworkTrafficConfig(NetworkTrafficConfigT&& value) {
185 m_networkTrafficConfigHasBeenSet = true;
186 m_networkTrafficConfig = std::forward<NetworkTrafficConfigT>(value);
187 }
188 template <typename NetworkTrafficConfigT = NetworkTrafficConfig>
189 CreatePentestRequest& WithNetworkTrafficConfig(NetworkTrafficConfigT&& value) {
190 SetNetworkTrafficConfig(std::forward<NetworkTrafficConfigT>(value));
191 return *this;
192 }
194
196
200 inline CodeRemediationStrategy GetCodeRemediationStrategy() const { return m_codeRemediationStrategy; }
201 inline bool CodeRemediationStrategyHasBeenSet() const { return m_codeRemediationStrategyHasBeenSet; }
203 m_codeRemediationStrategyHasBeenSet = true;
204 m_codeRemediationStrategy = value;
205 }
208 return *this;
209 }
211
213
217 inline const Aws::Vector<SkillType>& GetDisableManagedSkills() const { return m_disableManagedSkills; }
218 inline bool DisableManagedSkillsHasBeenSet() const { return m_disableManagedSkillsHasBeenSet; }
219 template <typename DisableManagedSkillsT = Aws::Vector<SkillType>>
220 void SetDisableManagedSkills(DisableManagedSkillsT&& value) {
221 m_disableManagedSkillsHasBeenSet = true;
222 m_disableManagedSkills = std::forward<DisableManagedSkillsT>(value);
223 }
224 template <typename DisableManagedSkillsT = Aws::Vector<SkillType>>
225 CreatePentestRequest& WithDisableManagedSkills(DisableManagedSkillsT&& value) {
226 SetDisableManagedSkills(std::forward<DisableManagedSkillsT>(value));
227 return *this;
228 }
230 m_disableManagedSkillsHasBeenSet = true;
231 m_disableManagedSkills.push_back(value);
232 return *this;
233 }
235
237
242 inline double GetMaxTaskHours() const { return m_maxTaskHours; }
243 inline bool MaxTaskHoursHasBeenSet() const { return m_maxTaskHoursHasBeenSet; }
244 inline void SetMaxTaskHours(double value) {
245 m_maxTaskHoursHasBeenSet = true;
246 m_maxTaskHours = value;
247 }
249 SetMaxTaskHours(value);
250 return *this;
251 }
253
255
259 inline const ReportDestination& GetReportDestination() const { return m_reportDestination; }
260 inline bool ReportDestinationHasBeenSet() const { return m_reportDestinationHasBeenSet; }
261 template <typename ReportDestinationT = ReportDestination>
262 void SetReportDestination(ReportDestinationT&& value) {
263 m_reportDestinationHasBeenSet = true;
264 m_reportDestination = std::forward<ReportDestinationT>(value);
265 }
266 template <typename ReportDestinationT = ReportDestination>
267 CreatePentestRequest& WithReportDestination(ReportDestinationT&& value) {
268 SetReportDestination(std::forward<ReportDestinationT>(value));
269 return *this;
270 }
272
274
277 inline const ReportFilters& GetReportFilters() const { return m_reportFilters; }
278 inline bool ReportFiltersHasBeenSet() const { return m_reportFiltersHasBeenSet; }
279 template <typename ReportFiltersT = ReportFilters>
280 void SetReportFilters(ReportFiltersT&& value) {
281 m_reportFiltersHasBeenSet = true;
282 m_reportFilters = std::forward<ReportFiltersT>(value);
283 }
284 template <typename ReportFiltersT = ReportFilters>
285 CreatePentestRequest& WithReportFilters(ReportFiltersT&& value) {
286 SetReportFilters(std::forward<ReportFiltersT>(value));
287 return *this;
288 }
290 private:
291 Aws::String m_title;
292
293 Aws::String m_agentSpaceId;
294
295 Assets m_assets;
296
297 Aws::Vector<RiskType> m_excludeRiskTypes;
298
299 Aws::String m_serviceRole;
300
301 CloudWatchLog m_logConfig;
302
303 VpcConfig m_vpcConfig;
304
305 NetworkTrafficConfig m_networkTrafficConfig;
306
308
309 Aws::Vector<SkillType> m_disableManagedSkills;
310
311 double m_maxTaskHours{0.0};
312
313 ReportDestination m_reportDestination;
314
315 ReportFilters m_reportFilters;
316 bool m_titleHasBeenSet = false;
317 bool m_agentSpaceIdHasBeenSet = false;
318 bool m_assetsHasBeenSet = false;
319 bool m_excludeRiskTypesHasBeenSet = false;
320 bool m_serviceRoleHasBeenSet = false;
321 bool m_logConfigHasBeenSet = false;
322 bool m_vpcConfigHasBeenSet = false;
323 bool m_networkTrafficConfigHasBeenSet = false;
324 bool m_codeRemediationStrategyHasBeenSet = false;
325 bool m_disableManagedSkillsHasBeenSet = false;
326 bool m_maxTaskHoursHasBeenSet = false;
327 bool m_reportDestinationHasBeenSet = false;
328 bool m_reportFiltersHasBeenSet = false;
329};
330
331} // namespace Model
332} // namespace SecurityAgent
333} // 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)
const NetworkTrafficConfig & GetNetworkTrafficConfig() const
CreatePentestRequest & WithDisableManagedSkills(DisableManagedSkillsT &&value)
void SetCodeRemediationStrategy(CodeRemediationStrategy 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)
AWS_SECURITYAGENT_API Aws::String SerializePayload() const override
CreatePentestRequest & AddExcludeRiskTypes(RiskType value)
CreatePentestRequest & WithReportDestination(ReportDestinationT &&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