AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
CreatePentestResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/securityagent/SecurityAgent_EXPORTS.h>
12#include <aws/securityagent/model/Assets.h>
13#include <aws/securityagent/model/CiCdConfiguration.h>
14#include <aws/securityagent/model/CloudWatchLog.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/TestScope.h>
19
20#include <utility>
21
22namespace Aws {
23template <typename RESULT_TYPE>
24class AmazonWebServiceResult;
25
26namespace Utils {
27namespace Json {
28class JsonValue;
29} // namespace Json
30} // namespace Utils
31namespace SecurityAgent {
32namespace Model {
39 public:
40 AWS_SECURITYAGENT_API CreatePentestResult() = default;
43
45
48 inline const Aws::String& GetPentestId() const { return m_pentestId; }
49 template <typename PentestIdT = Aws::String>
50 void SetPentestId(PentestIdT&& value) {
51 m_pentestIdHasBeenSet = true;
52 m_pentestId = std::forward<PentestIdT>(value);
53 }
54 template <typename PentestIdT = Aws::String>
55 CreatePentestResult& WithPentestId(PentestIdT&& value) {
56 SetPentestId(std::forward<PentestIdT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetTitle() const { return m_title; }
66 template <typename TitleT = Aws::String>
67 void SetTitle(TitleT&& value) {
68 m_titleHasBeenSet = true;
69 m_title = std::forward<TitleT>(value);
70 }
71 template <typename TitleT = Aws::String>
72 CreatePentestResult& WithTitle(TitleT&& value) {
73 SetTitle(std::forward<TitleT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
83 template <typename CreatedAtT = Aws::Utils::DateTime>
84 void SetCreatedAt(CreatedAtT&& value) {
85 m_createdAtHasBeenSet = true;
86 m_createdAt = std::forward<CreatedAtT>(value);
87 }
88 template <typename CreatedAtT = Aws::Utils::DateTime>
89 CreatePentestResult& WithCreatedAt(CreatedAtT&& value) {
90 SetCreatedAt(std::forward<CreatedAtT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
100 template <typename UpdatedAtT = Aws::Utils::DateTime>
101 void SetUpdatedAt(UpdatedAtT&& value) {
102 m_updatedAtHasBeenSet = true;
103 m_updatedAt = std::forward<UpdatedAtT>(value);
104 }
105 template <typename UpdatedAtT = Aws::Utils::DateTime>
106 CreatePentestResult& WithUpdatedAt(UpdatedAtT&& value) {
107 SetUpdatedAt(std::forward<UpdatedAtT>(value));
108 return *this;
109 }
111
113
116 inline const Assets& GetAssets() const { return m_assets; }
117 template <typename AssetsT = Assets>
118 void SetAssets(AssetsT&& value) {
119 m_assetsHasBeenSet = true;
120 m_assets = std::forward<AssetsT>(value);
121 }
122 template <typename AssetsT = Assets>
123 CreatePentestResult& WithAssets(AssetsT&& value) {
124 SetAssets(std::forward<AssetsT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::Vector<RiskType>& GetExcludeRiskTypes() const { return m_excludeRiskTypes; }
134 template <typename ExcludeRiskTypesT = Aws::Vector<RiskType>>
135 void SetExcludeRiskTypes(ExcludeRiskTypesT&& value) {
136 m_excludeRiskTypesHasBeenSet = true;
137 m_excludeRiskTypes = std::forward<ExcludeRiskTypesT>(value);
138 }
139 template <typename ExcludeRiskTypesT = Aws::Vector<RiskType>>
140 CreatePentestResult& WithExcludeRiskTypes(ExcludeRiskTypesT&& value) {
141 SetExcludeRiskTypes(std::forward<ExcludeRiskTypesT>(value));
142 return *this;
143 }
145 m_excludeRiskTypesHasBeenSet = true;
146 m_excludeRiskTypes.push_back(value);
147 return *this;
148 }
150
152
155 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
156 template <typename ServiceRoleT = Aws::String>
157 void SetServiceRole(ServiceRoleT&& value) {
158 m_serviceRoleHasBeenSet = true;
159 m_serviceRole = std::forward<ServiceRoleT>(value);
160 }
161 template <typename ServiceRoleT = Aws::String>
162 CreatePentestResult& WithServiceRole(ServiceRoleT&& value) {
163 SetServiceRole(std::forward<ServiceRoleT>(value));
164 return *this;
165 }
167
169
172 inline const CloudWatchLog& GetLogConfig() const { return m_logConfig; }
173 template <typename LogConfigT = CloudWatchLog>
174 void SetLogConfig(LogConfigT&& value) {
175 m_logConfigHasBeenSet = true;
176 m_logConfig = std::forward<LogConfigT>(value);
177 }
178 template <typename LogConfigT = CloudWatchLog>
179 CreatePentestResult& WithLogConfig(LogConfigT&& value) {
180 SetLogConfig(std::forward<LogConfigT>(value));
181 return *this;
182 }
184
186
189 inline const Aws::String& GetAgentSpaceId() const { return m_agentSpaceId; }
190 template <typename AgentSpaceIdT = Aws::String>
191 void SetAgentSpaceId(AgentSpaceIdT&& value) {
192 m_agentSpaceIdHasBeenSet = true;
193 m_agentSpaceId = std::forward<AgentSpaceIdT>(value);
194 }
195 template <typename AgentSpaceIdT = Aws::String>
196 CreatePentestResult& WithAgentSpaceId(AgentSpaceIdT&& value) {
197 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
198 return *this;
199 }
201
203
207 inline const ReportDestination& GetReportDestination() const { return m_reportDestination; }
208 template <typename ReportDestinationT = ReportDestination>
209 void SetReportDestination(ReportDestinationT&& value) {
210 m_reportDestinationHasBeenSet = true;
211 m_reportDestination = std::forward<ReportDestinationT>(value);
212 }
213 template <typename ReportDestinationT = ReportDestination>
214 CreatePentestResult& WithReportDestination(ReportDestinationT&& value) {
215 SetReportDestination(std::forward<ReportDestinationT>(value));
216 return *this;
217 }
219
221
224 inline const ReportFilters& GetReportFilters() const { return m_reportFilters; }
225 template <typename ReportFiltersT = ReportFilters>
226 void SetReportFilters(ReportFiltersT&& value) {
227 m_reportFiltersHasBeenSet = true;
228 m_reportFilters = std::forward<ReportFiltersT>(value);
229 }
230 template <typename ReportFiltersT = ReportFilters>
231 CreatePentestResult& WithReportFilters(ReportFiltersT&& value) {
232 SetReportFilters(std::forward<ReportFiltersT>(value));
233 return *this;
234 }
236
238
241 inline const CiCdConfiguration& GetCicdConfiguration() const { return m_cicdConfiguration; }
242 template <typename CicdConfigurationT = CiCdConfiguration>
243 void SetCicdConfiguration(CicdConfigurationT&& value) {
244 m_cicdConfigurationHasBeenSet = true;
245 m_cicdConfiguration = std::forward<CicdConfigurationT>(value);
246 }
247 template <typename CicdConfigurationT = CiCdConfiguration>
248 CreatePentestResult& WithCicdConfiguration(CicdConfigurationT&& value) {
249 SetCicdConfiguration(std::forward<CicdConfigurationT>(value));
250 return *this;
251 }
253
255
256 inline const TestScope& GetTestScope() const { return m_testScope; }
257 template <typename TestScopeT = TestScope>
258 void SetTestScope(TestScopeT&& value) {
259 m_testScopeHasBeenSet = true;
260 m_testScope = std::forward<TestScopeT>(value);
261 }
262 template <typename TestScopeT = TestScope>
263 CreatePentestResult& WithTestScope(TestScopeT&& value) {
264 SetTestScope(std::forward<TestScopeT>(value));
265 return *this;
266 }
268
270
271 inline const Aws::String& GetRequestId() const { return m_requestId; }
272 template <typename RequestIdT = Aws::String>
273 void SetRequestId(RequestIdT&& value) {
274 m_requestIdHasBeenSet = true;
275 m_requestId = std::forward<RequestIdT>(value);
276 }
277 template <typename RequestIdT = Aws::String>
278 CreatePentestResult& WithRequestId(RequestIdT&& value) {
279 SetRequestId(std::forward<RequestIdT>(value));
280 return *this;
281 }
283 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
284
285 private:
286 Aws::String m_pentestId;
287
288 Aws::String m_title;
289
290 Aws::Utils::DateTime m_createdAt{};
291
292 Aws::Utils::DateTime m_updatedAt{};
293
294 Assets m_assets;
295
296 Aws::Vector<RiskType> m_excludeRiskTypes;
297
298 Aws::String m_serviceRole;
299
300 CloudWatchLog m_logConfig;
301
302 Aws::String m_agentSpaceId;
303
304 ReportDestination m_reportDestination;
305
306 ReportFilters m_reportFilters;
307
308 CiCdConfiguration m_cicdConfiguration;
309
310 TestScope m_testScope;
311
312 Aws::String m_requestId;
313 Aws::Http::HttpResponseCode m_HttpResponseCode;
314 bool m_pentestIdHasBeenSet = false;
315 bool m_titleHasBeenSet = false;
316 bool m_createdAtHasBeenSet = false;
317 bool m_updatedAtHasBeenSet = false;
318 bool m_assetsHasBeenSet = false;
319 bool m_excludeRiskTypesHasBeenSet = false;
320 bool m_serviceRoleHasBeenSet = false;
321 bool m_logConfigHasBeenSet = false;
322 bool m_agentSpaceIdHasBeenSet = false;
323 bool m_reportDestinationHasBeenSet = false;
324 bool m_reportFiltersHasBeenSet = false;
325 bool m_cicdConfigurationHasBeenSet = false;
326 bool m_testScopeHasBeenSet = false;
327 bool m_requestIdHasBeenSet = false;
328};
329
330} // namespace Model
331} // namespace SecurityAgent
332} // namespace Aws
AWS_SECURITYAGENT_API CreatePentestResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_SECURITYAGENT_API CreatePentestResult()=default
CreatePentestResult & WithCreatedAt(CreatedAtT &&value)
CreatePentestResult & WithPentestId(PentestIdT &&value)
CreatePentestResult & WithLogConfig(LogConfigT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
CreatePentestResult & WithRequestId(RequestIdT &&value)
const ReportDestination & GetReportDestination() const
void SetReportDestination(ReportDestinationT &&value)
const Aws::Vector< RiskType > & GetExcludeRiskTypes() const
CreatePentestResult & WithServiceRole(ServiceRoleT &&value)
CreatePentestResult & WithExcludeRiskTypes(ExcludeRiskTypesT &&value)
void SetCicdConfiguration(CicdConfigurationT &&value)
CreatePentestResult & WithReportDestination(ReportDestinationT &&value)
CreatePentestResult & WithAgentSpaceId(AgentSpaceIdT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
void SetExcludeRiskTypes(ExcludeRiskTypesT &&value)
CreatePentestResult & WithCicdConfiguration(CicdConfigurationT &&value)
CreatePentestResult & WithReportFilters(ReportFiltersT &&value)
CreatePentestResult & WithTestScope(TestScopeT &&value)
AWS_SECURITYAGENT_API CreatePentestResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
CreatePentestResult & AddExcludeRiskTypes(RiskType value)
CreatePentestResult & WithAssets(AssetsT &&value)
CreatePentestResult & WithUpdatedAt(UpdatedAtT &&value)
const CiCdConfiguration & GetCicdConfiguration() const
CreatePentestResult & WithTitle(TitleT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue