AWS SDK for C++

AWS SDK for C++ Version 1.11.903

Loading...
Searching...
No Matches
UpdatePentestResult.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
19#include <utility>
20
21namespace Aws {
22template <typename RESULT_TYPE>
23class AmazonWebServiceResult;
24
25namespace Utils {
26namespace Json {
27class JsonValue;
28} // namespace Json
29} // namespace Utils
30namespace SecurityAgent {
31namespace Model {
38 public:
39 AWS_SECURITYAGENT_API UpdatePentestResult() = default;
42
44
47 inline const Aws::String& GetPentestId() const { return m_pentestId; }
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 UpdatePentestResult& WithPentestId(PentestIdT&& value) {
55 SetPentestId(std::forward<PentestIdT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetTitle() const { return m_title; }
65 template <typename TitleT = Aws::String>
66 void SetTitle(TitleT&& value) {
67 m_titleHasBeenSet = true;
68 m_title = std::forward<TitleT>(value);
69 }
70 template <typename TitleT = Aws::String>
71 UpdatePentestResult& WithTitle(TitleT&& value) {
72 SetTitle(std::forward<TitleT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
82 template <typename CreatedAtT = Aws::Utils::DateTime>
83 void SetCreatedAt(CreatedAtT&& value) {
84 m_createdAtHasBeenSet = true;
85 m_createdAt = std::forward<CreatedAtT>(value);
86 }
87 template <typename CreatedAtT = Aws::Utils::DateTime>
88 UpdatePentestResult& WithCreatedAt(CreatedAtT&& value) {
89 SetCreatedAt(std::forward<CreatedAtT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
99 template <typename UpdatedAtT = Aws::Utils::DateTime>
100 void SetUpdatedAt(UpdatedAtT&& value) {
101 m_updatedAtHasBeenSet = true;
102 m_updatedAt = std::forward<UpdatedAtT>(value);
103 }
104 template <typename UpdatedAtT = Aws::Utils::DateTime>
105 UpdatePentestResult& WithUpdatedAt(UpdatedAtT&& value) {
106 SetUpdatedAt(std::forward<UpdatedAtT>(value));
107 return *this;
108 }
110
112
115 inline const Assets& GetAssets() const { return m_assets; }
116 template <typename AssetsT = Assets>
117 void SetAssets(AssetsT&& value) {
118 m_assetsHasBeenSet = true;
119 m_assets = std::forward<AssetsT>(value);
120 }
121 template <typename AssetsT = Assets>
122 UpdatePentestResult& WithAssets(AssetsT&& value) {
123 SetAssets(std::forward<AssetsT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::Vector<RiskType>& GetExcludeRiskTypes() const { return m_excludeRiskTypes; }
133 template <typename ExcludeRiskTypesT = Aws::Vector<RiskType>>
134 void SetExcludeRiskTypes(ExcludeRiskTypesT&& value) {
135 m_excludeRiskTypesHasBeenSet = true;
136 m_excludeRiskTypes = std::forward<ExcludeRiskTypesT>(value);
137 }
138 template <typename ExcludeRiskTypesT = Aws::Vector<RiskType>>
139 UpdatePentestResult& WithExcludeRiskTypes(ExcludeRiskTypesT&& value) {
140 SetExcludeRiskTypes(std::forward<ExcludeRiskTypesT>(value));
141 return *this;
142 }
144 m_excludeRiskTypesHasBeenSet = true;
145 m_excludeRiskTypes.push_back(value);
146 return *this;
147 }
149
151
154 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
155 template <typename ServiceRoleT = Aws::String>
156 void SetServiceRole(ServiceRoleT&& value) {
157 m_serviceRoleHasBeenSet = true;
158 m_serviceRole = std::forward<ServiceRoleT>(value);
159 }
160 template <typename ServiceRoleT = Aws::String>
161 UpdatePentestResult& WithServiceRole(ServiceRoleT&& value) {
162 SetServiceRole(std::forward<ServiceRoleT>(value));
163 return *this;
164 }
166
168
171 inline const CloudWatchLog& GetLogConfig() const { return m_logConfig; }
172 template <typename LogConfigT = CloudWatchLog>
173 void SetLogConfig(LogConfigT&& value) {
174 m_logConfigHasBeenSet = true;
175 m_logConfig = std::forward<LogConfigT>(value);
176 }
177 template <typename LogConfigT = CloudWatchLog>
178 UpdatePentestResult& WithLogConfig(LogConfigT&& value) {
179 SetLogConfig(std::forward<LogConfigT>(value));
180 return *this;
181 }
183
185
188 inline const Aws::String& GetAgentSpaceId() const { return m_agentSpaceId; }
189 template <typename AgentSpaceIdT = Aws::String>
190 void SetAgentSpaceId(AgentSpaceIdT&& value) {
191 m_agentSpaceIdHasBeenSet = true;
192 m_agentSpaceId = std::forward<AgentSpaceIdT>(value);
193 }
194 template <typename AgentSpaceIdT = Aws::String>
195 UpdatePentestResult& WithAgentSpaceId(AgentSpaceIdT&& value) {
196 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
197 return *this;
198 }
200
202
206 inline const ReportDestination& GetReportDestination() const { return m_reportDestination; }
207 template <typename ReportDestinationT = ReportDestination>
208 void SetReportDestination(ReportDestinationT&& value) {
209 m_reportDestinationHasBeenSet = true;
210 m_reportDestination = std::forward<ReportDestinationT>(value);
211 }
212 template <typename ReportDestinationT = ReportDestination>
213 UpdatePentestResult& WithReportDestination(ReportDestinationT&& value) {
214 SetReportDestination(std::forward<ReportDestinationT>(value));
215 return *this;
216 }
218
220
223 inline const ReportFilters& GetReportFilters() const { return m_reportFilters; }
224 template <typename ReportFiltersT = ReportFilters>
225 void SetReportFilters(ReportFiltersT&& value) {
226 m_reportFiltersHasBeenSet = true;
227 m_reportFilters = std::forward<ReportFiltersT>(value);
228 }
229 template <typename ReportFiltersT = ReportFilters>
230 UpdatePentestResult& WithReportFilters(ReportFiltersT&& value) {
231 SetReportFilters(std::forward<ReportFiltersT>(value));
232 return *this;
233 }
235
237
240 inline const CiCdConfiguration& GetCicdConfiguration() const { return m_cicdConfiguration; }
241 template <typename CicdConfigurationT = CiCdConfiguration>
242 void SetCicdConfiguration(CicdConfigurationT&& value) {
243 m_cicdConfigurationHasBeenSet = true;
244 m_cicdConfiguration = std::forward<CicdConfigurationT>(value);
245 }
246 template <typename CicdConfigurationT = CiCdConfiguration>
247 UpdatePentestResult& WithCicdConfiguration(CicdConfigurationT&& value) {
248 SetCicdConfiguration(std::forward<CicdConfigurationT>(value));
249 return *this;
250 }
252
254
255 inline const Aws::String& GetRequestId() const { return m_requestId; }
256 template <typename RequestIdT = Aws::String>
257 void SetRequestId(RequestIdT&& value) {
258 m_requestIdHasBeenSet = true;
259 m_requestId = std::forward<RequestIdT>(value);
260 }
261 template <typename RequestIdT = Aws::String>
262 UpdatePentestResult& WithRequestId(RequestIdT&& value) {
263 SetRequestId(std::forward<RequestIdT>(value));
264 return *this;
265 }
267 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
268
269 private:
270 Aws::String m_pentestId;
271
272 Aws::String m_title;
273
274 Aws::Utils::DateTime m_createdAt{};
275
276 Aws::Utils::DateTime m_updatedAt{};
277
278 Assets m_assets;
279
280 Aws::Vector<RiskType> m_excludeRiskTypes;
281
282 Aws::String m_serviceRole;
283
284 CloudWatchLog m_logConfig;
285
286 Aws::String m_agentSpaceId;
287
288 ReportDestination m_reportDestination;
289
290 ReportFilters m_reportFilters;
291
292 CiCdConfiguration m_cicdConfiguration;
293
294 Aws::String m_requestId;
295 Aws::Http::HttpResponseCode m_HttpResponseCode;
296 bool m_pentestIdHasBeenSet = false;
297 bool m_titleHasBeenSet = false;
298 bool m_createdAtHasBeenSet = false;
299 bool m_updatedAtHasBeenSet = false;
300 bool m_assetsHasBeenSet = false;
301 bool m_excludeRiskTypesHasBeenSet = false;
302 bool m_serviceRoleHasBeenSet = false;
303 bool m_logConfigHasBeenSet = false;
304 bool m_agentSpaceIdHasBeenSet = false;
305 bool m_reportDestinationHasBeenSet = false;
306 bool m_reportFiltersHasBeenSet = false;
307 bool m_cicdConfigurationHasBeenSet = false;
308 bool m_requestIdHasBeenSet = false;
309};
310
311} // namespace Model
312} // namespace SecurityAgent
313} // namespace Aws
const Aws::Utils::DateTime & GetUpdatedAt() const
void SetExcludeRiskTypes(ExcludeRiskTypesT &&value)
const CiCdConfiguration & GetCicdConfiguration() const
const ReportDestination & GetReportDestination() const
const Aws::Vector< RiskType > & GetExcludeRiskTypes() const
UpdatePentestResult & WithAssets(AssetsT &&value)
UpdatePentestResult & WithCicdConfiguration(CicdConfigurationT &&value)
UpdatePentestResult & WithLogConfig(LogConfigT &&value)
UpdatePentestResult & WithUpdatedAt(UpdatedAtT &&value)
AWS_SECURITYAGENT_API UpdatePentestResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdatePentestResult & WithCreatedAt(CreatedAtT &&value)
UpdatePentestResult & WithExcludeRiskTypes(ExcludeRiskTypesT &&value)
AWS_SECURITYAGENT_API UpdatePentestResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
UpdatePentestResult & WithServiceRole(ServiceRoleT &&value)
void SetCicdConfiguration(CicdConfigurationT &&value)
void SetReportDestination(ReportDestinationT &&value)
UpdatePentestResult & WithReportDestination(ReportDestinationT &&value)
UpdatePentestResult & WithRequestId(RequestIdT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
UpdatePentestResult & WithPentestId(PentestIdT &&value)
AWS_SECURITYAGENT_API UpdatePentestResult()=default
UpdatePentestResult & WithAgentSpaceId(AgentSpaceIdT &&value)
UpdatePentestResult & AddExcludeRiskTypes(RiskType value)
UpdatePentestResult & WithReportFilters(ReportFiltersT &&value)
UpdatePentestResult & 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