AWS SDK for C++

AWS SDK for C++ Version 1.11.844

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/RiskType.h>
16#include <aws/securityagent/model/SkillType.h>
17#include <aws/securityagent/model/VpcConfig.h>
18
19#include <utility>
20
21namespace Aws {
22namespace SecurityAgent {
23namespace Model {
24
31 public:
32 AWS_SECURITYAGENT_API CreatePentestRequest() = default;
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "CreatePentest"; }
39
40 AWS_SECURITYAGENT_API Aws::String SerializePayload() const override;
41
43
46 inline const Aws::String& GetTitle() const { return m_title; }
47 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
48 template <typename TitleT = Aws::String>
49 void SetTitle(TitleT&& value) {
50 m_titleHasBeenSet = true;
51 m_title = std::forward<TitleT>(value);
52 }
53 template <typename TitleT = Aws::String>
55 SetTitle(std::forward<TitleT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetAgentSpaceId() const { return m_agentSpaceId; }
65 inline bool AgentSpaceIdHasBeenSet() const { return m_agentSpaceIdHasBeenSet; }
66 template <typename AgentSpaceIdT = Aws::String>
67 void SetAgentSpaceId(AgentSpaceIdT&& value) {
68 m_agentSpaceIdHasBeenSet = true;
69 m_agentSpaceId = std::forward<AgentSpaceIdT>(value);
70 }
71 template <typename AgentSpaceIdT = Aws::String>
72 CreatePentestRequest& WithAgentSpaceId(AgentSpaceIdT&& value) {
73 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
74 return *this;
75 }
77
79
83 inline const Assets& GetAssets() const { return m_assets; }
84 inline bool AssetsHasBeenSet() const { return m_assetsHasBeenSet; }
85 template <typename AssetsT = Assets>
86 void SetAssets(AssetsT&& value) {
87 m_assetsHasBeenSet = true;
88 m_assets = std::forward<AssetsT>(value);
89 }
90 template <typename AssetsT = Assets>
91 CreatePentestRequest& WithAssets(AssetsT&& value) {
92 SetAssets(std::forward<AssetsT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::Vector<RiskType>& GetExcludeRiskTypes() const { return m_excludeRiskTypes; }
102 inline bool ExcludeRiskTypesHasBeenSet() const { return m_excludeRiskTypesHasBeenSet; }
103 template <typename ExcludeRiskTypesT = Aws::Vector<RiskType>>
104 void SetExcludeRiskTypes(ExcludeRiskTypesT&& value) {
105 m_excludeRiskTypesHasBeenSet = true;
106 m_excludeRiskTypes = std::forward<ExcludeRiskTypesT>(value);
107 }
108 template <typename ExcludeRiskTypesT = Aws::Vector<RiskType>>
109 CreatePentestRequest& WithExcludeRiskTypes(ExcludeRiskTypesT&& value) {
110 SetExcludeRiskTypes(std::forward<ExcludeRiskTypesT>(value));
111 return *this;
112 }
114 m_excludeRiskTypesHasBeenSet = true;
115 m_excludeRiskTypes.push_back(value);
116 return *this;
117 }
119
121
124 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
125 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
126 template <typename ServiceRoleT = Aws::String>
127 void SetServiceRole(ServiceRoleT&& value) {
128 m_serviceRoleHasBeenSet = true;
129 m_serviceRole = std::forward<ServiceRoleT>(value);
130 }
131 template <typename ServiceRoleT = Aws::String>
132 CreatePentestRequest& WithServiceRole(ServiceRoleT&& value) {
133 SetServiceRole(std::forward<ServiceRoleT>(value));
134 return *this;
135 }
137
139
142 inline const CloudWatchLog& GetLogConfig() const { return m_logConfig; }
143 inline bool LogConfigHasBeenSet() const { return m_logConfigHasBeenSet; }
144 template <typename LogConfigT = CloudWatchLog>
145 void SetLogConfig(LogConfigT&& value) {
146 m_logConfigHasBeenSet = true;
147 m_logConfig = std::forward<LogConfigT>(value);
148 }
149 template <typename LogConfigT = CloudWatchLog>
150 CreatePentestRequest& WithLogConfig(LogConfigT&& value) {
151 SetLogConfig(std::forward<LogConfigT>(value));
152 return *this;
153 }
155
157
160 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
161 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
162 template <typename VpcConfigT = VpcConfig>
163 void SetVpcConfig(VpcConfigT&& value) {
164 m_vpcConfigHasBeenSet = true;
165 m_vpcConfig = std::forward<VpcConfigT>(value);
166 }
167 template <typename VpcConfigT = VpcConfig>
168 CreatePentestRequest& WithVpcConfig(VpcConfigT&& value) {
169 SetVpcConfig(std::forward<VpcConfigT>(value));
170 return *this;
171 }
173
175
179 inline const NetworkTrafficConfig& GetNetworkTrafficConfig() const { return m_networkTrafficConfig; }
180 inline bool NetworkTrafficConfigHasBeenSet() const { return m_networkTrafficConfigHasBeenSet; }
181 template <typename NetworkTrafficConfigT = NetworkTrafficConfig>
182 void SetNetworkTrafficConfig(NetworkTrafficConfigT&& value) {
183 m_networkTrafficConfigHasBeenSet = true;
184 m_networkTrafficConfig = std::forward<NetworkTrafficConfigT>(value);
185 }
186 template <typename NetworkTrafficConfigT = NetworkTrafficConfig>
187 CreatePentestRequest& WithNetworkTrafficConfig(NetworkTrafficConfigT&& value) {
188 SetNetworkTrafficConfig(std::forward<NetworkTrafficConfigT>(value));
189 return *this;
190 }
192
194
198 inline CodeRemediationStrategy GetCodeRemediationStrategy() const { return m_codeRemediationStrategy; }
199 inline bool CodeRemediationStrategyHasBeenSet() const { return m_codeRemediationStrategyHasBeenSet; }
201 m_codeRemediationStrategyHasBeenSet = true;
202 m_codeRemediationStrategy = value;
203 }
206 return *this;
207 }
209
211
215 inline const Aws::Vector<SkillType>& GetDisableManagedSkills() const { return m_disableManagedSkills; }
216 inline bool DisableManagedSkillsHasBeenSet() const { return m_disableManagedSkillsHasBeenSet; }
217 template <typename DisableManagedSkillsT = Aws::Vector<SkillType>>
218 void SetDisableManagedSkills(DisableManagedSkillsT&& value) {
219 m_disableManagedSkillsHasBeenSet = true;
220 m_disableManagedSkills = std::forward<DisableManagedSkillsT>(value);
221 }
222 template <typename DisableManagedSkillsT = Aws::Vector<SkillType>>
223 CreatePentestRequest& WithDisableManagedSkills(DisableManagedSkillsT&& value) {
224 SetDisableManagedSkills(std::forward<DisableManagedSkillsT>(value));
225 return *this;
226 }
228 m_disableManagedSkillsHasBeenSet = true;
229 m_disableManagedSkills.push_back(value);
230 return *this;
231 }
233 private:
234 Aws::String m_title;
235
236 Aws::String m_agentSpaceId;
237
238 Assets m_assets;
239
240 Aws::Vector<RiskType> m_excludeRiskTypes;
241
242 Aws::String m_serviceRole;
243
244 CloudWatchLog m_logConfig;
245
246 VpcConfig m_vpcConfig;
247
248 NetworkTrafficConfig m_networkTrafficConfig;
249
251
252 Aws::Vector<SkillType> m_disableManagedSkills;
253 bool m_titleHasBeenSet = false;
254 bool m_agentSpaceIdHasBeenSet = false;
255 bool m_assetsHasBeenSet = false;
256 bool m_excludeRiskTypesHasBeenSet = false;
257 bool m_serviceRoleHasBeenSet = false;
258 bool m_logConfigHasBeenSet = false;
259 bool m_vpcConfigHasBeenSet = false;
260 bool m_networkTrafficConfigHasBeenSet = false;
261 bool m_codeRemediationStrategyHasBeenSet = false;
262 bool m_disableManagedSkillsHasBeenSet = false;
263};
264
265} // namespace Model
266} // namespace SecurityAgent
267} // namespace Aws
void SetNetworkTrafficConfig(NetworkTrafficConfigT &&value)
CreatePentestRequest & WithTitle(TitleT &&value)
CodeRemediationStrategy GetCodeRemediationStrategy() const
CreatePentestRequest & WithVpcConfig(VpcConfigT &&value)
CreatePentestRequest & WithAgentSpaceId(AgentSpaceIdT &&value)
const NetworkTrafficConfig & GetNetworkTrafficConfig() const
CreatePentestRequest & WithDisableManagedSkills(DisableManagedSkillsT &&value)
void SetCodeRemediationStrategy(CodeRemediationStrategy value)
CreatePentestRequest & WithExcludeRiskTypes(ExcludeRiskTypesT &&value)
const Aws::Vector< SkillType > & GetDisableManagedSkills() const
AWS_SECURITYAGENT_API CreatePentestRequest()=default
const Aws::Vector< RiskType > & GetExcludeRiskTypes() const
CreatePentestRequest & AddDisableManagedSkills(SkillType value)
AWS_SECURITYAGENT_API Aws::String SerializePayload() const override
CreatePentestRequest & AddExcludeRiskTypes(RiskType 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