AWS SDK for C++

AWS SDK for C++ Version 1.11.844

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/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 UpdatePentestRequest() = 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 "UpdatePentest"; }
39
40 AWS_SECURITYAGENT_API Aws::String SerializePayload() const override;
41
43
46 inline const Aws::String& GetPentestId() const { return m_pentestId; }
47 inline bool PentestIdHasBeenSet() const { return m_pentestIdHasBeenSet; }
48 template <typename PentestIdT = Aws::String>
49 void SetPentestId(PentestIdT&& value) {
50 m_pentestIdHasBeenSet = true;
51 m_pentestId = std::forward<PentestIdT>(value);
52 }
53 template <typename PentestIdT = Aws::String>
54 UpdatePentestRequest& WithPentestId(PentestIdT&& value) {
55 SetPentestId(std::forward<PentestIdT>(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 UpdatePentestRequest& WithAgentSpaceId(AgentSpaceIdT&& value) {
73 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::String& GetTitle() const { return m_title; }
83 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
84 template <typename TitleT = Aws::String>
85 void SetTitle(TitleT&& value) {
86 m_titleHasBeenSet = true;
87 m_title = std::forward<TitleT>(value);
88 }
89 template <typename TitleT = Aws::String>
91 SetTitle(std::forward<TitleT>(value));
92 return *this;
93 }
95
97
100 inline const Assets& GetAssets() const { return m_assets; }
101 inline bool AssetsHasBeenSet() const { return m_assetsHasBeenSet; }
102 template <typename AssetsT = Assets>
103 void SetAssets(AssetsT&& value) {
104 m_assetsHasBeenSet = true;
105 m_assets = std::forward<AssetsT>(value);
106 }
107 template <typename AssetsT = Assets>
109 SetAssets(std::forward<AssetsT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::Vector<RiskType>& GetExcludeRiskTypes() const { return m_excludeRiskTypes; }
119 inline bool ExcludeRiskTypesHasBeenSet() const { return m_excludeRiskTypesHasBeenSet; }
120 template <typename ExcludeRiskTypesT = Aws::Vector<RiskType>>
121 void SetExcludeRiskTypes(ExcludeRiskTypesT&& value) {
122 m_excludeRiskTypesHasBeenSet = true;
123 m_excludeRiskTypes = std::forward<ExcludeRiskTypesT>(value);
124 }
125 template <typename ExcludeRiskTypesT = Aws::Vector<RiskType>>
126 UpdatePentestRequest& WithExcludeRiskTypes(ExcludeRiskTypesT&& value) {
127 SetExcludeRiskTypes(std::forward<ExcludeRiskTypesT>(value));
128 return *this;
129 }
131 m_excludeRiskTypesHasBeenSet = true;
132 m_excludeRiskTypes.push_back(value);
133 return *this;
134 }
136
138
141 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
142 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
143 template <typename ServiceRoleT = Aws::String>
144 void SetServiceRole(ServiceRoleT&& value) {
145 m_serviceRoleHasBeenSet = true;
146 m_serviceRole = std::forward<ServiceRoleT>(value);
147 }
148 template <typename ServiceRoleT = Aws::String>
149 UpdatePentestRequest& WithServiceRole(ServiceRoleT&& value) {
150 SetServiceRole(std::forward<ServiceRoleT>(value));
151 return *this;
152 }
154
156
159 inline const CloudWatchLog& GetLogConfig() const { return m_logConfig; }
160 inline bool LogConfigHasBeenSet() const { return m_logConfigHasBeenSet; }
161 template <typename LogConfigT = CloudWatchLog>
162 void SetLogConfig(LogConfigT&& value) {
163 m_logConfigHasBeenSet = true;
164 m_logConfig = std::forward<LogConfigT>(value);
165 }
166 template <typename LogConfigT = CloudWatchLog>
167 UpdatePentestRequest& WithLogConfig(LogConfigT&& value) {
168 SetLogConfig(std::forward<LogConfigT>(value));
169 return *this;
170 }
172
174
177 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
178 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
179 template <typename VpcConfigT = VpcConfig>
180 void SetVpcConfig(VpcConfigT&& value) {
181 m_vpcConfigHasBeenSet = true;
182 m_vpcConfig = std::forward<VpcConfigT>(value);
183 }
184 template <typename VpcConfigT = VpcConfig>
185 UpdatePentestRequest& WithVpcConfig(VpcConfigT&& value) {
186 SetVpcConfig(std::forward<VpcConfigT>(value));
187 return *this;
188 }
190
192
195 inline const NetworkTrafficConfig& GetNetworkTrafficConfig() const { return m_networkTrafficConfig; }
196 inline bool NetworkTrafficConfigHasBeenSet() const { return m_networkTrafficConfigHasBeenSet; }
197 template <typename NetworkTrafficConfigT = NetworkTrafficConfig>
198 void SetNetworkTrafficConfig(NetworkTrafficConfigT&& value) {
199 m_networkTrafficConfigHasBeenSet = true;
200 m_networkTrafficConfig = std::forward<NetworkTrafficConfigT>(value);
201 }
202 template <typename NetworkTrafficConfigT = NetworkTrafficConfig>
203 UpdatePentestRequest& WithNetworkTrafficConfig(NetworkTrafficConfigT&& value) {
204 SetNetworkTrafficConfig(std::forward<NetworkTrafficConfigT>(value));
205 return *this;
206 }
208
210
213 inline CodeRemediationStrategy GetCodeRemediationStrategy() const { return m_codeRemediationStrategy; }
214 inline bool CodeRemediationStrategyHasBeenSet() const { return m_codeRemediationStrategyHasBeenSet; }
216 m_codeRemediationStrategyHasBeenSet = true;
217 m_codeRemediationStrategy = value;
218 }
221 return *this;
222 }
224
226
230 inline const Aws::Vector<SkillType>& GetDisableManagedSkills() const { return m_disableManagedSkills; }
231 inline bool DisableManagedSkillsHasBeenSet() const { return m_disableManagedSkillsHasBeenSet; }
232 template <typename DisableManagedSkillsT = Aws::Vector<SkillType>>
233 void SetDisableManagedSkills(DisableManagedSkillsT&& value) {
234 m_disableManagedSkillsHasBeenSet = true;
235 m_disableManagedSkills = std::forward<DisableManagedSkillsT>(value);
236 }
237 template <typename DisableManagedSkillsT = Aws::Vector<SkillType>>
238 UpdatePentestRequest& WithDisableManagedSkills(DisableManagedSkillsT&& value) {
239 SetDisableManagedSkills(std::forward<DisableManagedSkillsT>(value));
240 return *this;
241 }
243 m_disableManagedSkillsHasBeenSet = true;
244 m_disableManagedSkills.push_back(value);
245 return *this;
246 }
248 private:
249 Aws::String m_pentestId;
250
251 Aws::String m_agentSpaceId;
252
253 Aws::String m_title;
254
255 Assets m_assets;
256
257 Aws::Vector<RiskType> m_excludeRiskTypes;
258
259 Aws::String m_serviceRole;
260
261 CloudWatchLog m_logConfig;
262
263 VpcConfig m_vpcConfig;
264
265 NetworkTrafficConfig m_networkTrafficConfig;
266
268
269 Aws::Vector<SkillType> m_disableManagedSkills;
270 bool m_pentestIdHasBeenSet = false;
271 bool m_agentSpaceIdHasBeenSet = false;
272 bool m_titleHasBeenSet = false;
273 bool m_assetsHasBeenSet = false;
274 bool m_excludeRiskTypesHasBeenSet = false;
275 bool m_serviceRoleHasBeenSet = false;
276 bool m_logConfigHasBeenSet = false;
277 bool m_vpcConfigHasBeenSet = false;
278 bool m_networkTrafficConfigHasBeenSet = false;
279 bool m_codeRemediationStrategyHasBeenSet = false;
280 bool m_disableManagedSkillsHasBeenSet = false;
281};
282
283} // namespace Model
284} // namespace SecurityAgent
285} // namespace Aws
UpdatePentestRequest & WithServiceRole(ServiceRoleT &&value)
const NetworkTrafficConfig & GetNetworkTrafficConfig() const
void SetNetworkTrafficConfig(NetworkTrafficConfigT &&value)
UpdatePentestRequest & WithTitle(TitleT &&value)
AWS_SECURITYAGENT_API UpdatePentestRequest()=default
CodeRemediationStrategy GetCodeRemediationStrategy() const
UpdatePentestRequest & WithAgentSpaceId(AgentSpaceIdT &&value)
UpdatePentestRequest & WithVpcConfig(VpcConfigT &&value)
AWS_SECURITYAGENT_API Aws::String SerializePayload() const override
UpdatePentestRequest & WithNetworkTrafficConfig(NetworkTrafficConfigT &&value)
UpdatePentestRequest & WithCodeRemediationStrategy(CodeRemediationStrategy value)
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)
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