AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
GetRevenueStatisticsRequest.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/wafv2/WAFV2Request.h>
10#include <aws/wafv2/WAFV2_EXPORTS.h>
11#include <aws/wafv2/model/Currency.h>
12#include <aws/wafv2/model/GroupByType.h>
13#include <aws/wafv2/model/MonetizationFilter.h>
14#include <aws/wafv2/model/RankingSortBy.h>
15#include <aws/wafv2/model/RankingStatisticType.h>
16#include <aws/wafv2/model/Scope.h>
17#include <aws/wafv2/model/SortOrder.h>
18#include <aws/wafv2/model/TimeWindow.h>
19
20#include <utility>
21
22namespace Aws {
23namespace WAFV2 {
24namespace Model {
25
29 public:
30 AWS_WAFV2_API GetRevenueStatisticsRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "GetRevenueStatistics"; }
37
38 AWS_WAFV2_API Aws::String SerializePayload() const override;
39
41
43
51 inline RankingStatisticType GetStatisticType() const { return m_statisticType; }
52 inline bool StatisticTypeHasBeenSet() const { return m_statisticTypeHasBeenSet; }
54 m_statisticTypeHasBeenSet = true;
55 m_statisticType = value;
56 }
62
64
67 inline const TimeWindow& GetTimeWindow() const { return m_timeWindow; }
68 inline bool TimeWindowHasBeenSet() const { return m_timeWindowHasBeenSet; }
69 template <typename TimeWindowT = TimeWindow>
70 void SetTimeWindow(TimeWindowT&& value) {
71 m_timeWindowHasBeenSet = true;
72 m_timeWindow = std::forward<TimeWindowT>(value);
73 }
74 template <typename TimeWindowT = TimeWindow>
76 SetTimeWindow(std::forward<TimeWindowT>(value));
77 return *this;
78 }
80
82
87 inline Scope GetScope() const { return m_scope; }
88 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
89 inline void SetScope(Scope value) {
90 m_scopeHasBeenSet = true;
91 m_scope = value;
92 }
94 SetScope(value);
95 return *this;
96 }
98
100
103 inline Currency GetCurrency() const { return m_currency; }
104 inline bool CurrencyHasBeenSet() const { return m_currencyHasBeenSet; }
105 inline void SetCurrency(Currency value) {
106 m_currencyHasBeenSet = true;
107 m_currency = value;
108 }
110 SetCurrency(value);
111 return *this;
112 }
114
116
125 inline GroupByType GetGroupBy() const { return m_groupBy; }
126 inline bool GroupByHasBeenSet() const { return m_groupByHasBeenSet; }
127 inline void SetGroupBy(GroupByType value) {
128 m_groupByHasBeenSet = true;
129 m_groupBy = value;
130 }
132 SetGroupBy(value);
133 return *this;
134 }
136
138
141 inline const Aws::Vector<MonetizationFilter>& GetFilters() const { return m_filters; }
142 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
143 template <typename FiltersT = Aws::Vector<MonetizationFilter>>
144 void SetFilters(FiltersT&& value) {
145 m_filtersHasBeenSet = true;
146 m_filters = std::forward<FiltersT>(value);
147 }
148 template <typename FiltersT = Aws::Vector<MonetizationFilter>>
150 SetFilters(std::forward<FiltersT>(value));
151 return *this;
152 }
153 template <typename FiltersT = MonetizationFilter>
155 m_filtersHasBeenSet = true;
156 m_filters.emplace_back(std::forward<FiltersT>(value));
157 return *this;
158 }
160
162
167 inline const Aws::String& GetNextMarker() const { return m_nextMarker; }
168 inline bool NextMarkerHasBeenSet() const { return m_nextMarkerHasBeenSet; }
169 template <typename NextMarkerT = Aws::String>
170 void SetNextMarker(NextMarkerT&& value) {
171 m_nextMarkerHasBeenSet = true;
172 m_nextMarker = std::forward<NextMarkerT>(value);
173 }
174 template <typename NextMarkerT = Aws::String>
176 SetNextMarker(std::forward<NextMarkerT>(value));
177 return *this;
178 }
180
182
185 inline int GetLimit() const { return m_limit; }
186 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
187 inline void SetLimit(int value) {
188 m_limitHasBeenSet = true;
189 m_limit = value;
190 }
192 SetLimit(value);
193 return *this;
194 }
196
198
202 inline RankingSortBy GetSortBy() const { return m_sortBy; }
203 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
204 inline void SetSortBy(RankingSortBy value) {
205 m_sortByHasBeenSet = true;
206 m_sortBy = value;
207 }
209 SetSortBy(value);
210 return *this;
211 }
213
215
219 inline SortOrder GetSortOrder() const { return m_sortOrder; }
220 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
221 inline void SetSortOrder(SortOrder value) {
222 m_sortOrderHasBeenSet = true;
223 m_sortOrder = value;
224 }
226 SetSortOrder(value);
227 return *this;
228 }
230 private:
232
233 TimeWindow m_timeWindow;
234
235 Scope m_scope{Scope::NOT_SET};
236
237 Currency m_currency{Currency::NOT_SET};
238
240
242
243 Aws::String m_nextMarker;
244
245 int m_limit{0};
246
248
249 SortOrder m_sortOrder{SortOrder::NOT_SET};
250 bool m_statisticTypeHasBeenSet = false;
251 bool m_timeWindowHasBeenSet = false;
252 bool m_scopeHasBeenSet = false;
253 bool m_currencyHasBeenSet = false;
254 bool m_groupByHasBeenSet = false;
255 bool m_filtersHasBeenSet = false;
256 bool m_nextMarkerHasBeenSet = false;
257 bool m_limitHasBeenSet = false;
258 bool m_sortByHasBeenSet = false;
259 bool m_sortOrderHasBeenSet = false;
260};
261
262} // namespace Model
263} // namespace WAFV2
264} // namespace Aws
GetRevenueStatisticsRequest & WithFilters(FiltersT &&value)
GetRevenueStatisticsRequest & WithNextMarker(NextMarkerT &&value)
AWS_WAFV2_API GetRevenueStatisticsRequest()=default
GetRevenueStatisticsRequest & AddFilters(FiltersT &&value)
virtual const char * GetServiceRequestName() const override
GetRevenueStatisticsRequest & WithGroupBy(GroupByType value)
GetRevenueStatisticsRequest & WithStatisticType(RankingStatisticType value)
const Aws::Vector< MonetizationFilter > & GetFilters() const
GetRevenueStatisticsRequest & WithSortBy(RankingSortBy value)
AWS_WAFV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetRevenueStatisticsRequest & WithTimeWindow(TimeWindowT &&value)
AWS_WAFV2_API Aws::String SerializePayload() const override
GetRevenueStatisticsRequest & WithLimit(int value)
GetRevenueStatisticsRequest & WithSortOrder(SortOrder value)
GetRevenueStatisticsRequest & WithScope(Scope value)
GetRevenueStatisticsRequest & WithCurrency(Currency value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector