AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
GetCaseResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/security-ir/SecurityIR_EXPORTS.h>
11#include <aws/security-ir/model/CaseAttachmentAttributes.h>
12#include <aws/security-ir/model/CaseMetadataEntry.h>
13#include <aws/security-ir/model/CaseStatus.h>
14#include <aws/security-ir/model/ClosureCode.h>
15#include <aws/security-ir/model/EngagementType.h>
16#include <aws/security-ir/model/ImpactedAwsRegion.h>
17#include <aws/security-ir/model/PendingAction.h>
18#include <aws/security-ir/model/ResolverType.h>
19#include <aws/security-ir/model/ThreatActorIp.h>
20#include <aws/security-ir/model/Watcher.h>
21
22#include <utility>
23
24namespace Aws {
25template <typename RESULT_TYPE>
26class AmazonWebServiceResult;
27
28namespace Utils {
29namespace Json {
30class JsonValue;
31} // namespace Json
32} // namespace Utils
33namespace SecurityIR {
34namespace Model {
36 public:
37 AWS_SECURITYIR_API GetCaseResult() = default;
40
42
45 inline const Aws::String& GetTitle() const { return m_title; }
46 template <typename TitleT = Aws::String>
47 void SetTitle(TitleT&& value) {
48 m_titleHasBeenSet = true;
49 m_title = std::forward<TitleT>(value);
50 }
51 template <typename TitleT = Aws::String>
52 GetCaseResult& WithTitle(TitleT&& value) {
53 SetTitle(std::forward<TitleT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetCaseArn() const { return m_caseArn; }
63 template <typename CaseArnT = Aws::String>
64 void SetCaseArn(CaseArnT&& value) {
65 m_caseArnHasBeenSet = true;
66 m_caseArn = std::forward<CaseArnT>(value);
67 }
68 template <typename CaseArnT = Aws::String>
69 GetCaseResult& WithCaseArn(CaseArnT&& value) {
70 SetCaseArn(std::forward<CaseArnT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::String& GetDescription() const { return m_description; }
81 template <typename DescriptionT = Aws::String>
82 void SetDescription(DescriptionT&& value) {
83 m_descriptionHasBeenSet = true;
84 m_description = std::forward<DescriptionT>(value);
85 }
86 template <typename DescriptionT = Aws::String>
87 GetCaseResult& WithDescription(DescriptionT&& value) {
88 SetDescription(std::forward<DescriptionT>(value));
89 return *this;
90 }
92
94
99 inline CaseStatus GetCaseStatus() const { return m_caseStatus; }
100 inline void SetCaseStatus(CaseStatus value) {
101 m_caseStatusHasBeenSet = true;
102 m_caseStatus = value;
103 }
105 SetCaseStatus(value);
106 return *this;
107 }
109
111
115 inline EngagementType GetEngagementType() const { return m_engagementType; }
117 m_engagementTypeHasBeenSet = true;
118 m_engagementType = value;
119 }
121 SetEngagementType(value);
122 return *this;
123 }
125
127
131 inline const Aws::Utils::DateTime& GetReportedIncidentStartDate() const { return m_reportedIncidentStartDate; }
132 template <typename ReportedIncidentStartDateT = Aws::Utils::DateTime>
133 void SetReportedIncidentStartDate(ReportedIncidentStartDateT&& value) {
134 m_reportedIncidentStartDateHasBeenSet = true;
135 m_reportedIncidentStartDate = std::forward<ReportedIncidentStartDateT>(value);
136 }
137 template <typename ReportedIncidentStartDateT = Aws::Utils::DateTime>
138 GetCaseResult& WithReportedIncidentStartDate(ReportedIncidentStartDateT&& value) {
139 SetReportedIncidentStartDate(std::forward<ReportedIncidentStartDateT>(value));
140 return *this;
141 }
143
145
149 inline const Aws::Utils::DateTime& GetActualIncidentStartDate() const { return m_actualIncidentStartDate; }
150 template <typename ActualIncidentStartDateT = Aws::Utils::DateTime>
151 void SetActualIncidentStartDate(ActualIncidentStartDateT&& value) {
152 m_actualIncidentStartDateHasBeenSet = true;
153 m_actualIncidentStartDate = std::forward<ActualIncidentStartDateT>(value);
154 }
155 template <typename ActualIncidentStartDateT = Aws::Utils::DateTime>
156 GetCaseResult& WithActualIncidentStartDate(ActualIncidentStartDateT&& value) {
157 SetActualIncidentStartDate(std::forward<ActualIncidentStartDateT>(value));
158 return *this;
159 }
161
163
166 inline const Aws::Vector<ImpactedAwsRegion>& GetImpactedAwsRegions() const { return m_impactedAwsRegions; }
167 template <typename ImpactedAwsRegionsT = Aws::Vector<ImpactedAwsRegion>>
168 void SetImpactedAwsRegions(ImpactedAwsRegionsT&& value) {
169 m_impactedAwsRegionsHasBeenSet = true;
170 m_impactedAwsRegions = std::forward<ImpactedAwsRegionsT>(value);
171 }
172 template <typename ImpactedAwsRegionsT = Aws::Vector<ImpactedAwsRegion>>
173 GetCaseResult& WithImpactedAwsRegions(ImpactedAwsRegionsT&& value) {
174 SetImpactedAwsRegions(std::forward<ImpactedAwsRegionsT>(value));
175 return *this;
176 }
177 template <typename ImpactedAwsRegionsT = ImpactedAwsRegion>
178 GetCaseResult& AddImpactedAwsRegions(ImpactedAwsRegionsT&& value) {
179 m_impactedAwsRegionsHasBeenSet = true;
180 m_impactedAwsRegions.emplace_back(std::forward<ImpactedAwsRegionsT>(value));
181 return *this;
182 }
184
186
190 inline const Aws::Vector<ThreatActorIp>& GetThreatActorIpAddresses() const { return m_threatActorIpAddresses; }
191 template <typename ThreatActorIpAddressesT = Aws::Vector<ThreatActorIp>>
192 void SetThreatActorIpAddresses(ThreatActorIpAddressesT&& value) {
193 m_threatActorIpAddressesHasBeenSet = true;
194 m_threatActorIpAddresses = std::forward<ThreatActorIpAddressesT>(value);
195 }
196 template <typename ThreatActorIpAddressesT = Aws::Vector<ThreatActorIp>>
197 GetCaseResult& WithThreatActorIpAddresses(ThreatActorIpAddressesT&& value) {
198 SetThreatActorIpAddresses(std::forward<ThreatActorIpAddressesT>(value));
199 return *this;
200 }
201 template <typename ThreatActorIpAddressesT = ThreatActorIp>
202 GetCaseResult& AddThreatActorIpAddresses(ThreatActorIpAddressesT&& value) {
203 m_threatActorIpAddressesHasBeenSet = true;
204 m_threatActorIpAddresses.emplace_back(std::forward<ThreatActorIpAddressesT>(value));
205 return *this;
206 }
208
210
214 inline PendingAction GetPendingAction() const { return m_pendingAction; }
215 inline void SetPendingAction(PendingAction value) {
216 m_pendingActionHasBeenSet = true;
217 m_pendingAction = value;
218 }
220 SetPendingAction(value);
221 return *this;
222 }
224
226
229 inline const Aws::Vector<Aws::String>& GetImpactedAccounts() const { return m_impactedAccounts; }
230 template <typename ImpactedAccountsT = Aws::Vector<Aws::String>>
231 void SetImpactedAccounts(ImpactedAccountsT&& value) {
232 m_impactedAccountsHasBeenSet = true;
233 m_impactedAccounts = std::forward<ImpactedAccountsT>(value);
234 }
235 template <typename ImpactedAccountsT = Aws::Vector<Aws::String>>
236 GetCaseResult& WithImpactedAccounts(ImpactedAccountsT&& value) {
237 SetImpactedAccounts(std::forward<ImpactedAccountsT>(value));
238 return *this;
239 }
240 template <typename ImpactedAccountsT = Aws::String>
241 GetCaseResult& AddImpactedAccounts(ImpactedAccountsT&& value) {
242 m_impactedAccountsHasBeenSet = true;
243 m_impactedAccounts.emplace_back(std::forward<ImpactedAccountsT>(value));
244 return *this;
245 }
247
249
253 inline const Aws::Vector<Watcher>& GetWatchers() const { return m_watchers; }
254 template <typename WatchersT = Aws::Vector<Watcher>>
255 void SetWatchers(WatchersT&& value) {
256 m_watchersHasBeenSet = true;
257 m_watchers = std::forward<WatchersT>(value);
258 }
259 template <typename WatchersT = Aws::Vector<Watcher>>
260 GetCaseResult& WithWatchers(WatchersT&& value) {
261 SetWatchers(std::forward<WatchersT>(value));
262 return *this;
263 }
264 template <typename WatchersT = Watcher>
265 GetCaseResult& AddWatchers(WatchersT&& value) {
266 m_watchersHasBeenSet = true;
267 m_watchers.emplace_back(std::forward<WatchersT>(value));
268 return *this;
269 }
271
273
276 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
277 template <typename CreatedDateT = Aws::Utils::DateTime>
278 void SetCreatedDate(CreatedDateT&& value) {
279 m_createdDateHasBeenSet = true;
280 m_createdDate = std::forward<CreatedDateT>(value);
281 }
282 template <typename CreatedDateT = Aws::Utils::DateTime>
283 GetCaseResult& WithCreatedDate(CreatedDateT&& value) {
284 SetCreatedDate(std::forward<CreatedDateT>(value));
285 return *this;
286 }
288
290
294 inline const Aws::Utils::DateTime& GetLastUpdatedDate() const { return m_lastUpdatedDate; }
295 template <typename LastUpdatedDateT = Aws::Utils::DateTime>
296 void SetLastUpdatedDate(LastUpdatedDateT&& value) {
297 m_lastUpdatedDateHasBeenSet = true;
298 m_lastUpdatedDate = std::forward<LastUpdatedDateT>(value);
299 }
300 template <typename LastUpdatedDateT = Aws::Utils::DateTime>
301 GetCaseResult& WithLastUpdatedDate(LastUpdatedDateT&& value) {
302 SetLastUpdatedDate(std::forward<LastUpdatedDateT>(value));
303 return *this;
304 }
306
308
312 inline ClosureCode GetClosureCode() const { return m_closureCode; }
313 inline void SetClosureCode(ClosureCode value) {
314 m_closureCodeHasBeenSet = true;
315 m_closureCode = value;
316 }
318 SetClosureCode(value);
319 return *this;
320 }
322
324
327 inline ResolverType GetResolverType() const { return m_resolverType; }
328 inline void SetResolverType(ResolverType value) {
329 m_resolverTypeHasBeenSet = true;
330 m_resolverType = value;
331 }
333 SetResolverType(value);
334 return *this;
335 }
337
339
342 inline const Aws::Vector<Aws::String>& GetImpactedServices() const { return m_impactedServices; }
343 template <typename ImpactedServicesT = Aws::Vector<Aws::String>>
344 void SetImpactedServices(ImpactedServicesT&& value) {
345 m_impactedServicesHasBeenSet = true;
346 m_impactedServices = std::forward<ImpactedServicesT>(value);
347 }
348 template <typename ImpactedServicesT = Aws::Vector<Aws::String>>
349 GetCaseResult& WithImpactedServices(ImpactedServicesT&& value) {
350 SetImpactedServices(std::forward<ImpactedServicesT>(value));
351 return *this;
352 }
353 template <typename ImpactedServicesT = Aws::String>
354 GetCaseResult& AddImpactedServices(ImpactedServicesT&& value) {
355 m_impactedServicesHasBeenSet = true;
356 m_impactedServices.emplace_back(std::forward<ImpactedServicesT>(value));
357 return *this;
358 }
360
362
366 inline const Aws::Vector<CaseAttachmentAttributes>& GetCaseAttachments() const { return m_caseAttachments; }
367 template <typename CaseAttachmentsT = Aws::Vector<CaseAttachmentAttributes>>
368 void SetCaseAttachments(CaseAttachmentsT&& value) {
369 m_caseAttachmentsHasBeenSet = true;
370 m_caseAttachments = std::forward<CaseAttachmentsT>(value);
371 }
372 template <typename CaseAttachmentsT = Aws::Vector<CaseAttachmentAttributes>>
373 GetCaseResult& WithCaseAttachments(CaseAttachmentsT&& value) {
374 SetCaseAttachments(std::forward<CaseAttachmentsT>(value));
375 return *this;
376 }
377 template <typename CaseAttachmentsT = CaseAttachmentAttributes>
378 GetCaseResult& AddCaseAttachments(CaseAttachmentsT&& value) {
379 m_caseAttachmentsHasBeenSet = true;
380 m_caseAttachments.emplace_back(std::forward<CaseAttachmentsT>(value));
381 return *this;
382 }
384
386
390 inline const Aws::Utils::DateTime& GetClosedDate() const { return m_closedDate; }
391 template <typename ClosedDateT = Aws::Utils::DateTime>
392 void SetClosedDate(ClosedDateT&& value) {
393 m_closedDateHasBeenSet = true;
394 m_closedDate = std::forward<ClosedDateT>(value);
395 }
396 template <typename ClosedDateT = Aws::Utils::DateTime>
397 GetCaseResult& WithClosedDate(ClosedDateT&& value) {
398 SetClosedDate(std::forward<ClosedDateT>(value));
399 return *this;
400 }
402
404
407 inline const Aws::Vector<CaseMetadataEntry>& GetCaseMetadata() const { return m_caseMetadata; }
408 template <typename CaseMetadataT = Aws::Vector<CaseMetadataEntry>>
409 void SetCaseMetadata(CaseMetadataT&& value) {
410 m_caseMetadataHasBeenSet = true;
411 m_caseMetadata = std::forward<CaseMetadataT>(value);
412 }
413 template <typename CaseMetadataT = Aws::Vector<CaseMetadataEntry>>
414 GetCaseResult& WithCaseMetadata(CaseMetadataT&& value) {
415 SetCaseMetadata(std::forward<CaseMetadataT>(value));
416 return *this;
417 }
418 template <typename CaseMetadataT = CaseMetadataEntry>
419 GetCaseResult& AddCaseMetadata(CaseMetadataT&& value) {
420 m_caseMetadataHasBeenSet = true;
421 m_caseMetadata.emplace_back(std::forward<CaseMetadataT>(value));
422 return *this;
423 }
425
427
428 inline const Aws::String& GetRequestId() const { return m_requestId; }
429 template <typename RequestIdT = Aws::String>
430 void SetRequestId(RequestIdT&& value) {
431 m_requestIdHasBeenSet = true;
432 m_requestId = std::forward<RequestIdT>(value);
433 }
434 template <typename RequestIdT = Aws::String>
435 GetCaseResult& WithRequestId(RequestIdT&& value) {
436 SetRequestId(std::forward<RequestIdT>(value));
437 return *this;
438 }
440 private:
441 Aws::String m_title;
442
443 Aws::String m_caseArn;
444
445 Aws::String m_description;
446
447 CaseStatus m_caseStatus{CaseStatus::NOT_SET};
448
449 EngagementType m_engagementType{EngagementType::NOT_SET};
450
451 Aws::Utils::DateTime m_reportedIncidentStartDate{};
452
453 Aws::Utils::DateTime m_actualIncidentStartDate{};
454
455 Aws::Vector<ImpactedAwsRegion> m_impactedAwsRegions;
456
457 Aws::Vector<ThreatActorIp> m_threatActorIpAddresses;
458
459 PendingAction m_pendingAction{PendingAction::NOT_SET};
460
461 Aws::Vector<Aws::String> m_impactedAccounts;
462
463 Aws::Vector<Watcher> m_watchers;
464
465 Aws::Utils::DateTime m_createdDate{};
466
467 Aws::Utils::DateTime m_lastUpdatedDate{};
468
469 ClosureCode m_closureCode{ClosureCode::NOT_SET};
470
471 ResolverType m_resolverType{ResolverType::NOT_SET};
472
473 Aws::Vector<Aws::String> m_impactedServices;
474
476
477 Aws::Utils::DateTime m_closedDate{};
478
479 Aws::Vector<CaseMetadataEntry> m_caseMetadata;
480
481 Aws::String m_requestId;
482 bool m_titleHasBeenSet = false;
483 bool m_caseArnHasBeenSet = false;
484 bool m_descriptionHasBeenSet = false;
485 bool m_caseStatusHasBeenSet = false;
486 bool m_engagementTypeHasBeenSet = false;
487 bool m_reportedIncidentStartDateHasBeenSet = false;
488 bool m_actualIncidentStartDateHasBeenSet = false;
489 bool m_impactedAwsRegionsHasBeenSet = false;
490 bool m_threatActorIpAddressesHasBeenSet = false;
491 bool m_pendingActionHasBeenSet = false;
492 bool m_impactedAccountsHasBeenSet = false;
493 bool m_watchersHasBeenSet = false;
494 bool m_createdDateHasBeenSet = false;
495 bool m_lastUpdatedDateHasBeenSet = false;
496 bool m_closureCodeHasBeenSet = false;
497 bool m_resolverTypeHasBeenSet = false;
498 bool m_impactedServicesHasBeenSet = false;
499 bool m_caseAttachmentsHasBeenSet = false;
500 bool m_closedDateHasBeenSet = false;
501 bool m_caseMetadataHasBeenSet = false;
502 bool m_requestIdHasBeenSet = false;
503};
504
505} // namespace Model
506} // namespace SecurityIR
507} // namespace Aws
GetCaseResult & WithCaseMetadata(CaseMetadataT &&value)
void SetRequestId(RequestIdT &&value)
GetCaseResult & AddImpactedAwsRegions(ImpactedAwsRegionsT &&value)
GetCaseResult & WithImpactedAwsRegions(ImpactedAwsRegionsT &&value)
void SetCaseAttachments(CaseAttachmentsT &&value)
const Aws::String & GetDescription() const
GetCaseResult & WithClosureCode(ClosureCode value)
const Aws::Utils::DateTime & GetActualIncidentStartDate() const
GetCaseResult & WithDescription(DescriptionT &&value)
GetCaseResult & WithCaseStatus(CaseStatus value)
GetCaseResult & AddImpactedServices(ImpactedServicesT &&value)
AWS_SECURITYIR_API GetCaseResult()=default
const Aws::Vector< Aws::String > & GetImpactedAccounts() const
GetCaseResult & WithRequestId(RequestIdT &&value)
const Aws::Utils::DateTime & GetLastUpdatedDate() const
GetCaseResult & AddCaseMetadata(CaseMetadataT &&value)
const Aws::Utils::DateTime & GetReportedIncidentStartDate() const
GetCaseResult & WithImpactedServices(ImpactedServicesT &&value)
GetCaseResult & WithThreatActorIpAddresses(ThreatActorIpAddressesT &&value)
const Aws::Utils::DateTime & GetClosedDate() const
void SetDescription(DescriptionT &&value)
GetCaseResult & WithCaseArn(CaseArnT &&value)
void SetActualIncidentStartDate(ActualIncidentStartDateT &&value)
GetCaseResult & WithReportedIncidentStartDate(ReportedIncidentStartDateT &&value)
void SetClosureCode(ClosureCode value)
const Aws::Utils::DateTime & GetCreatedDate() const
const Aws::String & GetRequestId() const
AWS_SECURITYIR_API GetCaseResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetCaseResult & WithActualIncidentStartDate(ActualIncidentStartDateT &&value)
const Aws::Vector< ThreatActorIp > & GetThreatActorIpAddresses() const
void SetImpactedServices(ImpactedServicesT &&value)
GetCaseResult & AddThreatActorIpAddresses(ThreatActorIpAddressesT &&value)
void SetLastUpdatedDate(LastUpdatedDateT &&value)
GetCaseResult & AddCaseAttachments(CaseAttachmentsT &&value)
void SetImpactedAccounts(ImpactedAccountsT &&value)
GetCaseResult & AddWatchers(WatchersT &&value)
const Aws::String & GetCaseArn() const
GetCaseResult & WithTitle(TitleT &&value)
GetCaseResult & WithImpactedAccounts(ImpactedAccountsT &&value)
void SetResolverType(ResolverType value)
void SetEngagementType(EngagementType value)
GetCaseResult & WithPendingAction(PendingAction value)
void SetWatchers(WatchersT &&value)
const Aws::String & GetTitle() const
GetCaseResult & WithLastUpdatedDate(LastUpdatedDateT &&value)
const Aws::Vector< CaseMetadataEntry > & GetCaseMetadata() const
void SetThreatActorIpAddresses(ThreatActorIpAddressesT &&value)
const Aws::Vector< ImpactedAwsRegion > & GetImpactedAwsRegions() const
GetCaseResult & WithCaseAttachments(CaseAttachmentsT &&value)
void SetClosedDate(ClosedDateT &&value)
GetCaseResult & WithResolverType(ResolverType value)
void SetCaseMetadata(CaseMetadataT &&value)
AWS_SECURITYIR_API GetCaseResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< Watcher > & GetWatchers() const
void SetImpactedAwsRegions(ImpactedAwsRegionsT &&value)
GetCaseResult & WithClosedDate(ClosedDateT &&value)
const Aws::Vector< Aws::String > & GetImpactedServices() const
GetCaseResult & WithCreatedDate(CreatedDateT &&value)
void SetPendingAction(PendingAction value)
GetCaseResult & WithWatchers(WatchersT &&value)
void SetReportedIncidentStartDate(ReportedIncidentStartDateT &&value)
GetCaseResult & AddImpactedAccounts(ImpactedAccountsT &&value)
const Aws::Vector< CaseAttachmentAttributes > & GetCaseAttachments() const
void SetCreatedDate(CreatedDateT &&value)
GetCaseResult & WithEngagementType(EngagementType value)
EngagementType GetEngagementType() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue