AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListFindingsRequest.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/guardduty/GuardDutyRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/guardduty/model/FindingCriteria.h>
11#include <aws/guardduty/model/SortCriteria.h>
12#include <utility>
13
14namespace Aws
15{
16namespace GuardDuty
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_GUARDDUTY_API ListFindingsRequest();
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_GUARDDUTY_API Aws::String SerializePayload() const override;
35
36
38
42 inline const Aws::String& GetDetectorId() const{ return m_detectorId; }
43 inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
44 inline void SetDetectorId(const Aws::String& value) { m_detectorIdHasBeenSet = true; m_detectorId = value; }
45 inline void SetDetectorId(Aws::String&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::move(value); }
46 inline void SetDetectorId(const char* value) { m_detectorIdHasBeenSet = true; m_detectorId.assign(value); }
47 inline ListFindingsRequest& WithDetectorId(const Aws::String& value) { SetDetectorId(value); return *this;}
48 inline ListFindingsRequest& WithDetectorId(Aws::String&& value) { SetDetectorId(std::move(value)); return *this;}
49 inline ListFindingsRequest& WithDetectorId(const char* value) { SetDetectorId(value); return *this;}
51
53
107 inline const FindingCriteria& GetFindingCriteria() const{ return m_findingCriteria; }
108 inline bool FindingCriteriaHasBeenSet() const { return m_findingCriteriaHasBeenSet; }
109 inline void SetFindingCriteria(const FindingCriteria& value) { m_findingCriteriaHasBeenSet = true; m_findingCriteria = value; }
110 inline void SetFindingCriteria(FindingCriteria&& value) { m_findingCriteriaHasBeenSet = true; m_findingCriteria = std::move(value); }
111 inline ListFindingsRequest& WithFindingCriteria(const FindingCriteria& value) { SetFindingCriteria(value); return *this;}
112 inline ListFindingsRequest& WithFindingCriteria(FindingCriteria&& value) { SetFindingCriteria(std::move(value)); return *this;}
114
116
119 inline const SortCriteria& GetSortCriteria() const{ return m_sortCriteria; }
120 inline bool SortCriteriaHasBeenSet() const { return m_sortCriteriaHasBeenSet; }
121 inline void SetSortCriteria(const SortCriteria& value) { m_sortCriteriaHasBeenSet = true; m_sortCriteria = value; }
122 inline void SetSortCriteria(SortCriteria&& value) { m_sortCriteriaHasBeenSet = true; m_sortCriteria = std::move(value); }
123 inline ListFindingsRequest& WithSortCriteria(const SortCriteria& value) { SetSortCriteria(value); return *this;}
124 inline ListFindingsRequest& WithSortCriteria(SortCriteria&& value) { SetSortCriteria(std::move(value)); return *this;}
126
128
132 inline int GetMaxResults() const{ return m_maxResults; }
133 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
134 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
135 inline ListFindingsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
137
139
145 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
146 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
147 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
148 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
149 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
150 inline ListFindingsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
151 inline ListFindingsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
152 inline ListFindingsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
154 private:
155
156 Aws::String m_detectorId;
157 bool m_detectorIdHasBeenSet = false;
158
159 FindingCriteria m_findingCriteria;
160 bool m_findingCriteriaHasBeenSet = false;
161
162 SortCriteria m_sortCriteria;
163 bool m_sortCriteriaHasBeenSet = false;
164
165 int m_maxResults;
166 bool m_maxResultsHasBeenSet = false;
167
168 Aws::String m_nextToken;
169 bool m_nextTokenHasBeenSet = false;
170 };
171
172} // namespace Model
173} // namespace GuardDuty
174} // namespace Aws
ListFindingsRequest & WithFindingCriteria(const FindingCriteria &value)
void SetFindingCriteria(FindingCriteria &&value)
ListFindingsRequest & WithDetectorId(Aws::String &&value)
ListFindingsRequest & WithSortCriteria(SortCriteria &&value)
ListFindingsRequest & WithNextToken(Aws::String &&value)
void SetFindingCriteria(const FindingCriteria &value)
ListFindingsRequest & WithFindingCriteria(FindingCriteria &&value)
ListFindingsRequest & WithMaxResults(int value)
ListFindingsRequest & WithNextToken(const Aws::String &value)
AWS_GUARDDUTY_API Aws::String SerializePayload() const override
ListFindingsRequest & WithDetectorId(const char *value)
virtual const char * GetServiceRequestName() const override
ListFindingsRequest & WithDetectorId(const Aws::String &value)
void SetNextToken(const Aws::String &value)
ListFindingsRequest & WithSortCriteria(const SortCriteria &value)
const FindingCriteria & GetFindingCriteria() const
void SetDetectorId(const Aws::String &value)
ListFindingsRequest & WithNextToken(const char *value)
void SetSortCriteria(const SortCriteria &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String