AWS SDK for C++  1.9.106
AWS SDK for C++
ListFindingsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace GuardDuty
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "ListFindings"; }
33 
34  Aws::String SerializePayload() const override;
35 
36 
41  inline const Aws::String& GetDetectorId() const{ return m_detectorId; }
42 
47  inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
48 
53  inline void SetDetectorId(const Aws::String& value) { m_detectorIdHasBeenSet = true; m_detectorId = value; }
54 
59  inline void SetDetectorId(Aws::String&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::move(value); }
60 
65  inline void SetDetectorId(const char* value) { m_detectorIdHasBeenSet = true; m_detectorId.assign(value); }
66 
71  inline ListFindingsRequest& WithDetectorId(const Aws::String& value) { SetDetectorId(value); return *this;}
72 
77  inline ListFindingsRequest& WithDetectorId(Aws::String&& value) { SetDetectorId(std::move(value)); return *this;}
78 
83  inline ListFindingsRequest& WithDetectorId(const char* value) { SetDetectorId(value); return *this;}
84 
85 
140  inline const FindingCriteria& GetFindingCriteria() const{ return m_findingCriteria; }
141 
196  inline bool FindingCriteriaHasBeenSet() const { return m_findingCriteriaHasBeenSet; }
197 
252  inline void SetFindingCriteria(const FindingCriteria& value) { m_findingCriteriaHasBeenSet = true; m_findingCriteria = value; }
253 
308  inline void SetFindingCriteria(FindingCriteria&& value) { m_findingCriteriaHasBeenSet = true; m_findingCriteria = std::move(value); }
309 
364  inline ListFindingsRequest& WithFindingCriteria(const FindingCriteria& value) { SetFindingCriteria(value); return *this;}
365 
420  inline ListFindingsRequest& WithFindingCriteria(FindingCriteria&& value) { SetFindingCriteria(std::move(value)); return *this;}
421 
422 
426  inline const SortCriteria& GetSortCriteria() const{ return m_sortCriteria; }
427 
431  inline bool SortCriteriaHasBeenSet() const { return m_sortCriteriaHasBeenSet; }
432 
436  inline void SetSortCriteria(const SortCriteria& value) { m_sortCriteriaHasBeenSet = true; m_sortCriteria = value; }
437 
441  inline void SetSortCriteria(SortCriteria&& value) { m_sortCriteriaHasBeenSet = true; m_sortCriteria = std::move(value); }
442 
446  inline ListFindingsRequest& WithSortCriteria(const SortCriteria& value) { SetSortCriteria(value); return *this;}
447 
451  inline ListFindingsRequest& WithSortCriteria(SortCriteria&& value) { SetSortCriteria(std::move(value)); return *this;}
452 
453 
458  inline int GetMaxResults() const{ return m_maxResults; }
459 
464  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
465 
470  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
471 
476  inline ListFindingsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
477 
478 
485  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
486 
493  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
494 
501  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
502 
509  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
510 
517  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
518 
525  inline ListFindingsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
526 
533  inline ListFindingsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
534 
541  inline ListFindingsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
542 
543  private:
544 
545  Aws::String m_detectorId;
546  bool m_detectorIdHasBeenSet;
547 
548  FindingCriteria m_findingCriteria;
549  bool m_findingCriteriaHasBeenSet;
550 
551  SortCriteria m_sortCriteria;
552  bool m_sortCriteriaHasBeenSet;
553 
554  int m_maxResults;
555  bool m_maxResultsHasBeenSet;
556 
557  Aws::String m_nextToken;
558  bool m_nextTokenHasBeenSet;
559  };
560 
561 } // namespace Model
562 } // namespace GuardDuty
563 } // namespace Aws
Aws::GuardDuty::Model::ListFindingsRequest::WithDetectorId
ListFindingsRequest & WithDetectorId(const char *value)
Definition: ListFindingsRequest.h:83
Aws::GuardDuty::Model::ListFindingsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListFindingsRequest.h:458
Aws::GuardDuty::Model::ListFindingsRequest::WithSortCriteria
ListFindingsRequest & WithSortCriteria(SortCriteria &&value)
Definition: ListFindingsRequest.h:451
Aws::GuardDuty::Model::ListFindingsRequest::WithFindingCriteria
ListFindingsRequest & WithFindingCriteria(const FindingCriteria &value)
Definition: ListFindingsRequest.h:364
Aws::GuardDuty::Model::ListFindingsRequest::SetFindingCriteria
void SetFindingCriteria(FindingCriteria &&value)
Definition: ListFindingsRequest.h:308
Aws::GuardDuty::Model::ListFindingsRequest::SetDetectorId
void SetDetectorId(const Aws::String &value)
Definition: ListFindingsRequest.h:53
Aws::GuardDuty::Model::ListFindingsRequest::GetSortCriteria
const SortCriteria & GetSortCriteria() const
Definition: ListFindingsRequest.h:426
Aws::GuardDuty::Model::ListFindingsRequest::FindingCriteriaHasBeenSet
bool FindingCriteriaHasBeenSet() const
Definition: ListFindingsRequest.h:196
Aws::GuardDuty::Model::ListFindingsRequest::SortCriteriaHasBeenSet
bool SortCriteriaHasBeenSet() const
Definition: ListFindingsRequest.h:431
Aws::GuardDuty::Model::ListFindingsRequest::WithFindingCriteria
ListFindingsRequest & WithFindingCriteria(FindingCriteria &&value)
Definition: ListFindingsRequest.h:420
Aws::GuardDuty::Model::FindingCriteria
Definition: FindingCriteria.h:35
Aws::GuardDuty::Model::ListFindingsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListFindingsRequest.h:485
Aws::GuardDuty::Model::ListFindingsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListFindingsRequest.h:509
Aws::GuardDuty::Model::ListFindingsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListFindingsRequest.h:517
Aws::GuardDuty::Model::ListFindingsRequest::DetectorIdHasBeenSet
bool DetectorIdHasBeenSet() const
Definition: ListFindingsRequest.h:47
Aws::GuardDuty::Model::ListFindingsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListFindingsRequest.h:470
Aws::GuardDuty::Model::ListFindingsRequest::SetDetectorId
void SetDetectorId(const char *value)
Definition: ListFindingsRequest.h:65
GuardDuty_EXPORTS.h
Aws::GuardDuty::Model::ListFindingsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListFindingsRequest.h:464
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
Aws::GuardDuty::Model::ListFindingsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::GuardDuty::Model::ListFindingsRequest
Definition: ListFindingsRequest.h:24
Aws::GuardDuty::Model::ListFindingsRequest::SetDetectorId
void SetDetectorId(Aws::String &&value)
Definition: ListFindingsRequest.h:59
Aws::GuardDuty::Model::ListFindingsRequest::SetFindingCriteria
void SetFindingCriteria(const FindingCriteria &value)
Definition: ListFindingsRequest.h:252
Aws::GuardDuty::Model::ListFindingsRequest::WithNextToken
ListFindingsRequest & WithNextToken(const char *value)
Definition: ListFindingsRequest.h:541
Aws::GuardDuty::Model::ListFindingsRequest::GetFindingCriteria
const FindingCriteria & GetFindingCriteria() const
Definition: ListFindingsRequest.h:140
AWSString.h
Aws::GuardDuty::Model::ListFindingsRequest::WithNextToken
ListFindingsRequest & WithNextToken(Aws::String &&value)
Definition: ListFindingsRequest.h:533
Aws::GuardDuty::Model::ListFindingsRequest::WithSortCriteria
ListFindingsRequest & WithSortCriteria(const SortCriteria &value)
Definition: ListFindingsRequest.h:446
Aws::GuardDuty::Model::ListFindingsRequest::WithDetectorId
ListFindingsRequest & WithDetectorId(Aws::String &&value)
Definition: ListFindingsRequest.h:77
Aws::GuardDuty::Model::ListFindingsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListFindingsRequest.h:493
Aws::GuardDuty::Model::ListFindingsRequest::WithMaxResults
ListFindingsRequest & WithMaxResults(int value)
Definition: ListFindingsRequest.h:476
Aws::GuardDuty::Model::ListFindingsRequest::SetSortCriteria
void SetSortCriteria(const SortCriteria &value)
Definition: ListFindingsRequest.h:436
Aws::GuardDuty::Model::ListFindingsRequest::ListFindingsRequest
ListFindingsRequest()
Aws
Definition: AccessManagementClient.h:15
GuardDutyRequest.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GuardDuty::Model::ListFindingsRequest::WithNextToken
ListFindingsRequest & WithNextToken(const Aws::String &value)
Definition: ListFindingsRequest.h:525
Aws::GuardDuty::Model::ListFindingsRequest::WithDetectorId
ListFindingsRequest & WithDetectorId(const Aws::String &value)
Definition: ListFindingsRequest.h:71
SortCriteria.h
Aws::GuardDuty::GuardDutyRequest
Definition: GuardDutyRequest.h:17
Aws::GuardDuty::Model::ListFindingsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListFindingsRequest.h:501
Aws::GuardDuty::Model::ListFindingsRequest::GetDetectorId
const Aws::String & GetDetectorId() const
Definition: ListFindingsRequest.h:41
Aws::GuardDuty::Model::ListFindingsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListFindingsRequest.h:32
Aws::GuardDuty::Model::SortCriteria
Definition: SortCriteria.h:34
FindingCriteria.h
Aws::GuardDuty::Model::ListFindingsRequest::SetSortCriteria
void SetSortCriteria(SortCriteria &&value)
Definition: ListFindingsRequest.h:441