AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
GetReservationCoverageRequest.h
1
6#pragma once
7#include <aws/ce/CostExplorerRequest.h>
8#include <aws/ce/CostExplorer_EXPORTS.h>
9#include <aws/ce/model/DateInterval.h>
10#include <aws/ce/model/Expression.h>
11#include <aws/ce/model/Granularity.h>
12#include <aws/ce/model/GroupDefinition.h>
13#include <aws/ce/model/SortDefinition.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16
17#include <utility>
18
19namespace Aws {
20namespace CostExplorer {
21namespace Model {
22
30 public:
31 AWS_COSTEXPLORER_API GetReservationCoverageRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "GetReservationCoverage"; }
38
39 AWS_COSTEXPLORER_API Aws::String SerializePayload() const override;
40
41 AWS_COSTEXPLORER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
42
44
53 inline const DateInterval& GetTimePeriod() const { return m_timePeriod; }
54 inline bool TimePeriodHasBeenSet() const { return m_timePeriodHasBeenSet; }
55 template <typename TimePeriodT = DateInterval>
56 void SetTimePeriod(TimePeriodT&& value) {
57 m_timePeriodHasBeenSet = true;
58 m_timePeriod = std::forward<TimePeriodT>(value);
59 }
60 template <typename TimePeriodT = DateInterval>
62 SetTimePeriod(std::forward<TimePeriodT>(value));
63 return *this;
64 }
66
68
87 inline const Aws::Vector<GroupDefinition>& GetGroupBy() const { return m_groupBy; }
88 inline bool GroupByHasBeenSet() const { return m_groupByHasBeenSet; }
89 template <typename GroupByT = Aws::Vector<GroupDefinition>>
90 void SetGroupBy(GroupByT&& value) {
91 m_groupByHasBeenSet = true;
92 m_groupBy = std::forward<GroupByT>(value);
93 }
94 template <typename GroupByT = Aws::Vector<GroupDefinition>>
96 SetGroupBy(std::forward<GroupByT>(value));
97 return *this;
98 }
99 template <typename GroupByT = GroupDefinition>
101 m_groupByHasBeenSet = true;
102 m_groupBy.emplace_back(std::forward<GroupByT>(value));
103 return *this;
104 }
106
108
117 inline Granularity GetGranularity() const { return m_granularity; }
118 inline bool GranularityHasBeenSet() const { return m_granularityHasBeenSet; }
119 inline void SetGranularity(Granularity value) {
120 m_granularityHasBeenSet = true;
121 m_granularity = value;
122 }
124 SetGranularity(value);
125 return *this;
126 }
128
130
163 inline const Expression& GetFilter() const { return m_filter; }
164 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
165 template <typename FilterT = Expression>
166 void SetFilter(FilterT&& value) {
167 m_filterHasBeenSet = true;
168 m_filter = std::forward<FilterT>(value);
169 }
170 template <typename FilterT = Expression>
172 SetFilter(std::forward<FilterT>(value));
173 return *this;
174 }
176
178
188 inline const Aws::Vector<Aws::String>& GetMetrics() const { return m_metrics; }
189 inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
190 template <typename MetricsT = Aws::Vector<Aws::String>>
191 void SetMetrics(MetricsT&& value) {
192 m_metricsHasBeenSet = true;
193 m_metrics = std::forward<MetricsT>(value);
194 }
195 template <typename MetricsT = Aws::Vector<Aws::String>>
197 SetMetrics(std::forward<MetricsT>(value));
198 return *this;
199 }
200 template <typename MetricsT = Aws::String>
202 m_metricsHasBeenSet = true;
203 m_metrics.emplace_back(std::forward<MetricsT>(value));
204 return *this;
205 }
207
209
214 inline const Aws::String& GetNextPageToken() const { return m_nextPageToken; }
215 inline bool NextPageTokenHasBeenSet() const { return m_nextPageTokenHasBeenSet; }
216 template <typename NextPageTokenT = Aws::String>
217 void SetNextPageToken(NextPageTokenT&& value) {
218 m_nextPageTokenHasBeenSet = true;
219 m_nextPageToken = std::forward<NextPageTokenT>(value);
220 }
221 template <typename NextPageTokenT = Aws::String>
223 SetNextPageToken(std::forward<NextPageTokenT>(value));
224 return *this;
225 }
227
229
244 inline const SortDefinition& GetSortBy() const { return m_sortBy; }
245 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
246 template <typename SortByT = SortDefinition>
247 void SetSortBy(SortByT&& value) {
248 m_sortByHasBeenSet = true;
249 m_sortBy = std::forward<SortByT>(value);
250 }
251 template <typename SortByT = SortDefinition>
253 SetSortBy(std::forward<SortByT>(value));
254 return *this;
255 }
257
259
265 inline int GetMaxResults() const { return m_maxResults; }
266 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
267 inline void SetMaxResults(int value) {
268 m_maxResultsHasBeenSet = true;
269 m_maxResults = value;
270 }
272 SetMaxResults(value);
273 return *this;
274 }
276 private:
277 DateInterval m_timePeriod;
278
280
281 Granularity m_granularity{Granularity::NOT_SET};
282
283 Expression m_filter;
284
285 Aws::Vector<Aws::String> m_metrics;
286
287 Aws::String m_nextPageToken;
288
289 SortDefinition m_sortBy;
290
291 int m_maxResults{0};
292 bool m_timePeriodHasBeenSet = false;
293 bool m_groupByHasBeenSet = false;
294 bool m_granularityHasBeenSet = false;
295 bool m_filterHasBeenSet = false;
296 bool m_metricsHasBeenSet = false;
297 bool m_nextPageTokenHasBeenSet = false;
298 bool m_sortByHasBeenSet = false;
299 bool m_maxResultsHasBeenSet = false;
300};
301
302} // namespace Model
303} // namespace CostExplorer
304} // namespace Aws
GetReservationCoverageRequest & WithSortBy(SortByT &&value)
AWS_COSTEXPLORER_API GetReservationCoverageRequest()=default
GetReservationCoverageRequest & AddGroupBy(GroupByT &&value)
GetReservationCoverageRequest & WithGranularity(Granularity value)
GetReservationCoverageRequest & WithTimePeriod(TimePeriodT &&value)
GetReservationCoverageRequest & AddMetrics(MetricsT &&value)
AWS_COSTEXPLORER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_COSTEXPLORER_API Aws::String SerializePayload() const override
GetReservationCoverageRequest & WithFilter(FilterT &&value)
const Aws::Vector< GroupDefinition > & GetGroupBy() const
GetReservationCoverageRequest & WithGroupBy(GroupByT &&value)
GetReservationCoverageRequest & WithMetrics(MetricsT &&value)
GetReservationCoverageRequest & WithNextPageToken(NextPageTokenT &&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