AWS SDK for C++

AWS SDK for C++ Version 1.11.939

Loading...
Searching...
No Matches
FetchQuery.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/guardduty/GuardDuty_EXPORTS.h>
10#include <aws/guardduty/model/FetchCriterion.h>
11#include <aws/guardduty/model/FetchTimeWindow.h>
12#include <aws/guardduty/model/InvestigationIndicatorType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace GuardDuty {
24namespace Model {
25
34 public:
35 AWS_GUARDDUTY_API FetchQuery() = default;
36 AWS_GUARDDUTY_API FetchQuery(Aws::Utils::Json::JsonView jsonValue);
37 AWS_GUARDDUTY_API FetchQuery& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::Vector<FetchCriterion>& GetCriteria() const { return m_criteria; }
45 inline bool CriteriaHasBeenSet() const { return m_criteriaHasBeenSet; }
46 template <typename CriteriaT = Aws::Vector<FetchCriterion>>
47 void SetCriteria(CriteriaT&& value) {
48 m_criteriaHasBeenSet = true;
49 m_criteria = std::forward<CriteriaT>(value);
50 }
51 template <typename CriteriaT = Aws::Vector<FetchCriterion>>
52 FetchQuery& WithCriteria(CriteriaT&& value) {
53 SetCriteria(std::forward<CriteriaT>(value));
54 return *this;
55 }
56 template <typename CriteriaT = FetchCriterion>
57 FetchQuery& AddCriteria(CriteriaT&& value) {
58 m_criteriaHasBeenSet = true;
59 m_criteria.emplace_back(std::forward<CriteriaT>(value));
60 return *this;
61 }
63
65
68 inline const FetchTimeWindow& GetTimeWindow() const { return m_timeWindow; }
69 inline bool TimeWindowHasBeenSet() const { return m_timeWindowHasBeenSet; }
70 template <typename TimeWindowT = FetchTimeWindow>
71 void SetTimeWindow(TimeWindowT&& value) {
72 m_timeWindowHasBeenSet = true;
73 m_timeWindow = std::forward<TimeWindowT>(value);
74 }
75 template <typename TimeWindowT = FetchTimeWindow>
76 FetchQuery& WithTimeWindow(TimeWindowT&& value) {
77 SetTimeWindow(std::forward<TimeWindowT>(value));
78 return *this;
79 }
81
83
87 inline int GetRowLimit() const { return m_rowLimit; }
88 inline bool RowLimitHasBeenSet() const { return m_rowLimitHasBeenSet; }
89 inline void SetRowLimit(int value) {
90 m_rowLimitHasBeenSet = true;
91 m_rowLimit = value;
92 }
93 inline FetchQuery& WithRowLimit(int value) {
94 SetRowLimit(value);
95 return *this;
96 }
98
100
103 inline const Aws::String& GetAccountId() const { return m_accountId; }
104 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
105 template <typename AccountIdT = Aws::String>
106 void SetAccountId(AccountIdT&& value) {
107 m_accountIdHasBeenSet = true;
108 m_accountId = std::forward<AccountIdT>(value);
109 }
110 template <typename AccountIdT = Aws::String>
111 FetchQuery& WithAccountId(AccountIdT&& value) {
112 SetAccountId(std::forward<AccountIdT>(value));
113 return *this;
114 }
116
118
122 inline const Aws::String& GetIndicator() const { return m_indicator; }
123 inline bool IndicatorHasBeenSet() const { return m_indicatorHasBeenSet; }
124 template <typename IndicatorT = Aws::String>
125 void SetIndicator(IndicatorT&& value) {
126 m_indicatorHasBeenSet = true;
127 m_indicator = std::forward<IndicatorT>(value);
128 }
129 template <typename IndicatorT = Aws::String>
130 FetchQuery& WithIndicator(IndicatorT&& value) {
131 SetIndicator(std::forward<IndicatorT>(value));
132 return *this;
133 }
135
137
141 inline InvestigationIndicatorType GetIndicatorType() const { return m_indicatorType; }
142 inline bool IndicatorTypeHasBeenSet() const { return m_indicatorTypeHasBeenSet; }
144 m_indicatorTypeHasBeenSet = true;
145 m_indicatorType = value;
146 }
148 SetIndicatorType(value);
149 return *this;
150 }
152
154
157 inline const Aws::String& GetFindingType() const { return m_findingType; }
158 inline bool FindingTypeHasBeenSet() const { return m_findingTypeHasBeenSet; }
159 template <typename FindingTypeT = Aws::String>
160 void SetFindingType(FindingTypeT&& value) {
161 m_findingTypeHasBeenSet = true;
162 m_findingType = std::forward<FindingTypeT>(value);
163 }
164 template <typename FindingTypeT = Aws::String>
165 FetchQuery& WithFindingType(FindingTypeT&& value) {
166 SetFindingType(std::forward<FindingTypeT>(value));
167 return *this;
168 }
170
172
175 inline const Aws::String& GetFindingId() const { return m_findingId; }
176 inline bool FindingIdHasBeenSet() const { return m_findingIdHasBeenSet; }
177 template <typename FindingIdT = Aws::String>
178 void SetFindingId(FindingIdT&& value) {
179 m_findingIdHasBeenSet = true;
180 m_findingId = std::forward<FindingIdT>(value);
181 }
182 template <typename FindingIdT = Aws::String>
183 FetchQuery& WithFindingId(FindingIdT&& value) {
184 SetFindingId(std::forward<FindingIdT>(value));
185 return *this;
186 }
188 private:
190
191 FetchTimeWindow m_timeWindow;
192
193 int m_rowLimit{0};
194
195 Aws::String m_accountId;
196
197 Aws::String m_indicator;
198
200
201 Aws::String m_findingType;
202
203 Aws::String m_findingId;
204 bool m_criteriaHasBeenSet = false;
205 bool m_timeWindowHasBeenSet = false;
206 bool m_rowLimitHasBeenSet = false;
207 bool m_accountIdHasBeenSet = false;
208 bool m_indicatorHasBeenSet = false;
209 bool m_indicatorTypeHasBeenSet = false;
210 bool m_findingTypeHasBeenSet = false;
211 bool m_findingIdHasBeenSet = false;
212};
213
214} // namespace Model
215} // namespace GuardDuty
216} // namespace Aws
AWS_GUARDDUTY_API FetchQuery()=default
void SetCriteria(CriteriaT &&value)
Definition FetchQuery.h:47
FetchQuery & WithCriteria(CriteriaT &&value)
Definition FetchQuery.h:52
void SetIndicator(IndicatorT &&value)
Definition FetchQuery.h:125
const Aws::String & GetFindingId() const
Definition FetchQuery.h:175
FetchQuery & WithIndicatorType(InvestigationIndicatorType value)
Definition FetchQuery.h:147
FetchQuery & WithFindingType(FindingTypeT &&value)
Definition FetchQuery.h:165
void SetTimeWindow(TimeWindowT &&value)
Definition FetchQuery.h:71
FetchQuery & WithTimeWindow(TimeWindowT &&value)
Definition FetchQuery.h:76
const Aws::String & GetFindingType() const
Definition FetchQuery.h:157
const Aws::Vector< FetchCriterion > & GetCriteria() const
Definition FetchQuery.h:44
AWS_GUARDDUTY_API FetchQuery & operator=(Aws::Utils::Json::JsonView jsonValue)
FetchQuery & WithAccountId(AccountIdT &&value)
Definition FetchQuery.h:111
FetchQuery & WithRowLimit(int value)
Definition FetchQuery.h:93
const Aws::String & GetIndicator() const
Definition FetchQuery.h:122
FetchQuery & AddCriteria(CriteriaT &&value)
Definition FetchQuery.h:57
AWS_GUARDDUTY_API FetchQuery(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetIndicatorType(InvestigationIndicatorType value)
Definition FetchQuery.h:143
void SetFindingType(FindingTypeT &&value)
Definition FetchQuery.h:160
const FetchTimeWindow & GetTimeWindow() const
Definition FetchQuery.h:68
FetchQuery & WithIndicator(IndicatorT &&value)
Definition FetchQuery.h:130
void SetFindingId(FindingIdT &&value)
Definition FetchQuery.h:178
void SetAccountId(AccountIdT &&value)
Definition FetchQuery.h:106
InvestigationIndicatorType GetIndicatorType() const
Definition FetchQuery.h:141
FetchQuery & WithFindingId(FindingIdT &&value)
Definition FetchQuery.h:183
const Aws::String & GetAccountId() const
Definition FetchQuery.h:103
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue