AWS SDK for C++

AWS SDK for C++ Version 1.11.781

Loading...
Searching...
No Matches
GetCaseResult.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/security-ir/SecurityIR_EXPORTS.h>
12#include <aws/security-ir/model/CaseAttachmentAttributes.h>
13#include <aws/security-ir/model/CaseMetadataEntry.h>
14#include <aws/security-ir/model/CaseStatus.h>
15#include <aws/security-ir/model/ClosureCode.h>
16#include <aws/security-ir/model/EngagementType.h>
17#include <aws/security-ir/model/ImpactedAwsRegion.h>
18#include <aws/security-ir/model/PendingAction.h>
19#include <aws/security-ir/model/ResolverType.h>
20#include <aws/security-ir/model/ThreatActorIp.h>
21#include <aws/security-ir/model/Watcher.h>
22
23#include <utility>
24
25namespace Aws {
26template <typename RESULT_TYPE>
27class AmazonWebServiceResult;
28
29namespace Utils {
30namespace Json {
31class JsonValue;
32} // namespace Json
33} // namespace Utils
34namespace SecurityIR {
35namespace Model {
37 public:
38 AWS_SECURITYIR_API GetCaseResult() = default;
41
43
46 inline const Aws::String& GetTitle() const { return m_title; }
47 template <typename TitleT = Aws::String>
48 void SetTitle(TitleT&& value) {
49 m_titleHasBeenSet = true;
50 m_title = std::forward<TitleT>(value);
51 }
52 template <typename TitleT = Aws::String>
53 GetCaseResult& WithTitle(TitleT&& value) {
54 SetTitle(std::forward<TitleT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetCaseArn() const { return m_caseArn; }
64 template <typename CaseArnT = Aws::String>
65 void SetCaseArn(CaseArnT&& value) {
66 m_caseArnHasBeenSet = true;
67 m_caseArn = std::forward<CaseArnT>(value);
68 }
69 template <typename CaseArnT = Aws::String>
70 GetCaseResult& WithCaseArn(CaseArnT&& value) {
71 SetCaseArn(std::forward<CaseArnT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::String& GetDescription() const { return m_description; }
82 template <typename DescriptionT = Aws::String>
83 void SetDescription(DescriptionT&& value) {
84 m_descriptionHasBeenSet = true;
85 m_description = std::forward<DescriptionT>(value);
86 }
87 template <typename DescriptionT = Aws::String>
88 GetCaseResult& WithDescription(DescriptionT&& value) {
89 SetDescription(std::forward<DescriptionT>(value));
90 return *this;
91 }
93
95
100 inline CaseStatus GetCaseStatus() const { return m_caseStatus; }
101 inline void SetCaseStatus(CaseStatus value) {
102 m_caseStatusHasBeenSet = true;
103 m_caseStatus = value;
104 }
106 SetCaseStatus(value);
107 return *this;
108 }
110
112
116 inline EngagementType GetEngagementType() const { return m_engagementType; }
118 m_engagementTypeHasBeenSet = true;
119 m_engagementType = value;
120 }
122 SetEngagementType(value);
123 return *this;
124 }
126
128
132 inline const Aws::Utils::DateTime& GetReportedIncidentStartDate() const { return m_reportedIncidentStartDate; }
133 template <typename ReportedIncidentStartDateT = Aws::Utils::DateTime>
134 void SetReportedIncidentStartDate(ReportedIncidentStartDateT&& value) {
135 m_reportedIncidentStartDateHasBeenSet = true;
136 m_reportedIncidentStartDate = std::forward<ReportedIncidentStartDateT>(value);
137 }
138 template <typename ReportedIncidentStartDateT = Aws::Utils::DateTime>
139 GetCaseResult& WithReportedIncidentStartDate(ReportedIncidentStartDateT&& value) {
140 SetReportedIncidentStartDate(std::forward<ReportedIncidentStartDateT>(value));
141 return *this;
142 }
144
146
150 inline const Aws::Utils::DateTime& GetActualIncidentStartDate() const { return m_actualIncidentStartDate; }
151 template <typename ActualIncidentStartDateT = Aws::Utils::DateTime>
152 void SetActualIncidentStartDate(ActualIncidentStartDateT&& value) {
153 m_actualIncidentStartDateHasBeenSet = true;
154 m_actualIncidentStartDate = std::forward<ActualIncidentStartDateT>(value);
155 }
156 template <typename ActualIncidentStartDateT = Aws::Utils::DateTime>
157 GetCaseResult& WithActualIncidentStartDate(ActualIncidentStartDateT&& value) {
158 SetActualIncidentStartDate(std::forward<ActualIncidentStartDateT>(value));
159 return *this;
160 }
162
164
167 inline const Aws::Vector<ImpactedAwsRegion>& GetImpactedAwsRegions() const { return m_impactedAwsRegions; }
168 template <typename ImpactedAwsRegionsT = Aws::Vector<ImpactedAwsRegion>>
169 void SetImpactedAwsRegions(ImpactedAwsRegionsT&& value) {
170 m_impactedAwsRegionsHasBeenSet = true;
171 m_impactedAwsRegions = std::forward<ImpactedAwsRegionsT>(value);
172 }
173 template <typename ImpactedAwsRegionsT = Aws::Vector<ImpactedAwsRegion>>
174 GetCaseResult& WithImpactedAwsRegions(ImpactedAwsRegionsT&& value) {
175 SetImpactedAwsRegions(std::forward<ImpactedAwsRegionsT>(value));
176 return *this;
177 }
178 template <typename ImpactedAwsRegionsT = ImpactedAwsRegion>
179 GetCaseResult& AddImpactedAwsRegions(ImpactedAwsRegionsT&& value) {
180 m_impactedAwsRegionsHasBeenSet = true;
181 m_impactedAwsRegions.emplace_back(std::forward<ImpactedAwsRegionsT>(value));
182 return *this;
183 }
185
187
191 inline const Aws::Vector<ThreatActorIp>& GetThreatActorIpAddresses() const { return m_threatActorIpAddresses; }
192 template <typename ThreatActorIpAddressesT = Aws::Vector<ThreatActorIp>>
193 void SetThreatActorIpAddresses(ThreatActorIpAddressesT&& value) {
194 m_threatActorIpAddressesHasBeenSet = true;
195 m_threatActorIpAddresses = std::forward<ThreatActorIpAddressesT>(value);
196 }
197 template <typename ThreatActorIpAddressesT = Aws::Vector<ThreatActorIp>>
198 GetCaseResult& WithThreatActorIpAddresses(ThreatActorIpAddressesT&& value) {
199 SetThreatActorIpAddresses(std::forward<ThreatActorIpAddressesT>(value));
200 return *this;
201 }
202 template <typename ThreatActorIpAddressesT = ThreatActorIp>
203 GetCaseResult& AddThreatActorIpAddresses(ThreatActorIpAddressesT&& value) {
204 m_threatActorIpAddressesHasBeenSet = true;
205 m_threatActorIpAddresses.emplace_back(std::forward<ThreatActorIpAddressesT>(value));
206 return *this;
207 }
209
211
215 inline PendingAction GetPendingAction() const { return m_pendingAction; }
216 inline void SetPendingAction(PendingAction value) {
217 m_pendingActionHasBeenSet = true;
218 m_pendingAction = value;
219 }
221 SetPendingAction(value);
222 return *this;
223 }
225
227
230 inline const Aws::Vector<Aws::String>& GetImpactedAccounts() const { return m_impactedAccounts; }
231 template <typename ImpactedAccountsT = Aws::Vector<Aws::String>>
232 void SetImpactedAccounts(ImpactedAccountsT&& value) {
233 m_impactedAccountsHasBeenSet = true;
234 m_impactedAccounts = std::forward<ImpactedAccountsT>(value);
235 }
236 template <typename ImpactedAccountsT = Aws::Vector<Aws::String>>
237 GetCaseResult& WithImpactedAccounts(ImpactedAccountsT&& value) {
238 SetImpactedAccounts(std::forward<ImpactedAccountsT>(value));
239 return *this;
240 }
241 template <typename ImpactedAccountsT = Aws::String>
242 GetCaseResult& AddImpactedAccounts(ImpactedAccountsT&& value) {
243 m_impactedAccountsHasBeenSet = true;
244 m_impactedAccounts.emplace_back(std::forward<ImpactedAccountsT>(value));
245 return *this;
246 }
248
250
254 inline const Aws::Vector<Watcher>& GetWatchers() const { return m_watchers; }
255 template <typename WatchersT = Aws::Vector<Watcher>>
256 void SetWatchers(WatchersT&& value) {
257 m_watchersHasBeenSet = true;
258 m_watchers = std::forward<WatchersT>(value);
259 }
260 template <typename WatchersT = Aws::Vector<Watcher>>
261 GetCaseResult& WithWatchers(WatchersT&& value) {
262 SetWatchers(std::forward<WatchersT>(value));
263 return *this;
264 }
265 template <typename WatchersT = Watcher>
266 GetCaseResult& AddWatchers(WatchersT&& value) {
267 m_watchersHasBeenSet = true;
268 m_watchers.emplace_back(std::forward<WatchersT>(value));
269 return *this;
270 }
272
274
277 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
278 template <typename CreatedDateT = Aws::Utils::DateTime>
279 void SetCreatedDate(CreatedDateT&& value) {
280 m_createdDateHasBeenSet = true;
281 m_createdDate = std::forward<CreatedDateT>(value);
282 }
283 template <typename CreatedDateT = Aws::Utils::DateTime>
284 GetCaseResult& WithCreatedDate(CreatedDateT&& value) {
285 SetCreatedDate(std::forward<CreatedDateT>(value));
286 return *this;
287 }
289
291
295 inline const Aws::Utils::DateTime& GetLastUpdatedDate() const { return m_lastUpdatedDate; }
296 template <typename LastUpdatedDateT = Aws::Utils::DateTime>
297 void SetLastUpdatedDate(LastUpdatedDateT&& value) {
298 m_lastUpdatedDateHasBeenSet = true;
299 m_lastUpdatedDate = std::forward<LastUpdatedDateT>(value);
300 }
301 template <typename LastUpdatedDateT = Aws::Utils::DateTime>
302 GetCaseResult& WithLastUpdatedDate(LastUpdatedDateT&& value) {
303 SetLastUpdatedDate(std::forward<LastUpdatedDateT>(value));
304 return *this;
305 }
307
309
313 inline ClosureCode GetClosureCode() const { return m_closureCode; }
314 inline void SetClosureCode(ClosureCode value) {
315 m_closureCodeHasBeenSet = true;
316 m_closureCode = value;
317 }
319 SetClosureCode(value);
320 return *this;
321 }
323
325
328 inline ResolverType GetResolverType() const { return m_resolverType; }
329 inline void SetResolverType(ResolverType value) {
330 m_resolverTypeHasBeenSet = true;
331 m_resolverType = value;
332 }
334 SetResolverType(value);
335 return *this;
336 }
338
340
343 inline const Aws::Vector<Aws::String>& GetImpactedServices() const { return m_impactedServices; }
344 template <typename ImpactedServicesT = Aws::Vector<Aws::String>>
345 void SetImpactedServices(ImpactedServicesT&& value) {
346 m_impactedServicesHasBeenSet = true;
347 m_impactedServices = std::forward<ImpactedServicesT>(value);
348 }
349 template <typename ImpactedServicesT = Aws::Vector<Aws::String>>
350 GetCaseResult& WithImpactedServices(ImpactedServicesT&& value) {
351 SetImpactedServices(std::forward<ImpactedServicesT>(value));
352 return *this;
353 }
354 template <typename ImpactedServicesT = Aws::String>
355 GetCaseResult& AddImpactedServices(ImpactedServicesT&& value) {
356 m_impactedServicesHasBeenSet = true;
357 m_impactedServices.emplace_back(std::forward<ImpactedServicesT>(value));
358 return *this;
359 }
361
363
367 inline const Aws::Vector<CaseAttachmentAttributes>& GetCaseAttachments() const { return m_caseAttachments; }
368 template <typename CaseAttachmentsT = Aws::Vector<CaseAttachmentAttributes>>
369 void SetCaseAttachments(CaseAttachmentsT&& value) {
370 m_caseAttachmentsHasBeenSet = true;
371 m_caseAttachments = std::forward<CaseAttachmentsT>(value);
372 }
373 template <typename CaseAttachmentsT = Aws::Vector<CaseAttachmentAttributes>>
374 GetCaseResult& WithCaseAttachments(CaseAttachmentsT&& value) {
375 SetCaseAttachments(std::forward<CaseAttachmentsT>(value));
376 return *this;
377 }
378 template <typename CaseAttachmentsT = CaseAttachmentAttributes>
379 GetCaseResult& AddCaseAttachments(CaseAttachmentsT&& value) {
380 m_caseAttachmentsHasBeenSet = true;
381 m_caseAttachments.emplace_back(std::forward<CaseAttachmentsT>(value));
382 return *this;
383 }
385
387
391 inline const Aws::Utils::DateTime& GetClosedDate() const { return m_closedDate; }
392 template <typename ClosedDateT = Aws::Utils::DateTime>
393 void SetClosedDate(ClosedDateT&& value) {
394 m_closedDateHasBeenSet = true;
395 m_closedDate = std::forward<ClosedDateT>(value);
396 }
397 template <typename ClosedDateT = Aws::Utils::DateTime>
398 GetCaseResult& WithClosedDate(ClosedDateT&& value) {
399 SetClosedDate(std::forward<ClosedDateT>(value));
400 return *this;
401 }
403
405
408 inline const Aws::Vector<CaseMetadataEntry>& GetCaseMetadata() const { return m_caseMetadata; }
409 template <typename CaseMetadataT = Aws::Vector<CaseMetadataEntry>>
410 void SetCaseMetadata(CaseMetadataT&& value) {
411 m_caseMetadataHasBeenSet = true;
412 m_caseMetadata = std::forward<CaseMetadataT>(value);
413 }
414 template <typename CaseMetadataT = Aws::Vector<CaseMetadataEntry>>
415 GetCaseResult& WithCaseMetadata(CaseMetadataT&& value) {
416 SetCaseMetadata(std::forward<CaseMetadataT>(value));
417 return *this;
418 }
419 template <typename CaseMetadataT = CaseMetadataEntry>
420 GetCaseResult& AddCaseMetadata(CaseMetadataT&& value) {
421 m_caseMetadataHasBeenSet = true;
422 m_caseMetadata.emplace_back(std::forward<CaseMetadataT>(value));
423 return *this;
424 }
426
428
429 inline const Aws::String& GetRequestId() const { return m_requestId; }
430 template <typename RequestIdT = Aws::String>
431 void SetRequestId(RequestIdT&& value) {
432 m_requestIdHasBeenSet = true;
433 m_requestId = std::forward<RequestIdT>(value);
434 }
435 template <typename RequestIdT = Aws::String>
436 GetCaseResult& WithRequestId(RequestIdT&& value) {
437 SetRequestId(std::forward<RequestIdT>(value));
438 return *this;
439 }
441 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
442
443 private:
444 Aws::String m_title;
445
446 Aws::String m_caseArn;
447
448 Aws::String m_description;
449
450 CaseStatus m_caseStatus{CaseStatus::NOT_SET};
451
452 EngagementType m_engagementType{EngagementType::NOT_SET};
453
454 Aws::Utils::DateTime m_reportedIncidentStartDate{};
455
456 Aws::Utils::DateTime m_actualIncidentStartDate{};
457
458 Aws::Vector<ImpactedAwsRegion> m_impactedAwsRegions;
459
460 Aws::Vector<ThreatActorIp> m_threatActorIpAddresses;
461
462 PendingAction m_pendingAction{PendingAction::NOT_SET};
463
464 Aws::Vector<Aws::String> m_impactedAccounts;
465
466 Aws::Vector<Watcher> m_watchers;
467
468 Aws::Utils::DateTime m_createdDate{};
469
470 Aws::Utils::DateTime m_lastUpdatedDate{};
471
472 ClosureCode m_closureCode{ClosureCode::NOT_SET};
473
474 ResolverType m_resolverType{ResolverType::NOT_SET};
475
476 Aws::Vector<Aws::String> m_impactedServices;
477
479
480 Aws::Utils::DateTime m_closedDate{};
481
482 Aws::Vector<CaseMetadataEntry> m_caseMetadata;
483
484 Aws::String m_requestId;
485 Aws::Http::HttpResponseCode m_HttpResponseCode;
486 bool m_titleHasBeenSet = false;
487 bool m_caseArnHasBeenSet = false;
488 bool m_descriptionHasBeenSet = false;
489 bool m_caseStatusHasBeenSet = false;
490 bool m_engagementTypeHasBeenSet = false;
491 bool m_reportedIncidentStartDateHasBeenSet = false;
492 bool m_actualIncidentStartDateHasBeenSet = false;
493 bool m_impactedAwsRegionsHasBeenSet = false;
494 bool m_threatActorIpAddressesHasBeenSet = false;
495 bool m_pendingActionHasBeenSet = false;
496 bool m_impactedAccountsHasBeenSet = false;
497 bool m_watchersHasBeenSet = false;
498 bool m_createdDateHasBeenSet = false;
499 bool m_lastUpdatedDateHasBeenSet = false;
500 bool m_closureCodeHasBeenSet = false;
501 bool m_resolverTypeHasBeenSet = false;
502 bool m_impactedServicesHasBeenSet = false;
503 bool m_caseAttachmentsHasBeenSet = false;
504 bool m_closedDateHasBeenSet = false;
505 bool m_caseMetadataHasBeenSet = false;
506 bool m_requestIdHasBeenSet = false;
507};
508
509} // namespace Model
510} // namespace SecurityIR
511} // 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)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
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