AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
GetReservationUtilizationRequest.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
26 public:
27 AWS_COSTEXPLORER_API GetReservationUtilizationRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "GetReservationUtilization"; }
34
35 AWS_COSTEXPLORER_API Aws::String SerializePayload() const override;
36
37 AWS_COSTEXPLORER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
40
48 inline const DateInterval& GetTimePeriod() const { return m_timePeriod; }
49 inline bool TimePeriodHasBeenSet() const { return m_timePeriodHasBeenSet; }
50 template <typename TimePeriodT = DateInterval>
51 void SetTimePeriod(TimePeriodT&& value) {
52 m_timePeriodHasBeenSet = true;
53 m_timePeriod = std::forward<TimePeriodT>(value);
54 }
55 template <typename TimePeriodT = DateInterval>
57 SetTimePeriod(std::forward<TimePeriodT>(value));
58 return *this;
59 }
61
63
66 inline const Aws::Vector<GroupDefinition>& GetGroupBy() const { return m_groupBy; }
67 inline bool GroupByHasBeenSet() const { return m_groupByHasBeenSet; }
68 template <typename GroupByT = Aws::Vector<GroupDefinition>>
69 void SetGroupBy(GroupByT&& value) {
70 m_groupByHasBeenSet = true;
71 m_groupBy = std::forward<GroupByT>(value);
72 }
73 template <typename GroupByT = Aws::Vector<GroupDefinition>>
75 SetGroupBy(std::forward<GroupByT>(value));
76 return *this;
77 }
78 template <typename GroupByT = GroupDefinition>
80 m_groupByHasBeenSet = true;
81 m_groupBy.emplace_back(std::forward<GroupByT>(value));
82 return *this;
83 }
85
87
96 inline Granularity GetGranularity() const { return m_granularity; }
97 inline bool GranularityHasBeenSet() const { return m_granularityHasBeenSet; }
98 inline void SetGranularity(Granularity value) {
99 m_granularityHasBeenSet = true;
100 m_granularity = value;
101 }
103 SetGranularity(value);
104 return *this;
105 }
107
109
138 inline const Expression& GetFilter() const { return m_filter; }
139 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
140 template <typename FilterT = Expression>
141 void SetFilter(FilterT&& value) {
142 m_filterHasBeenSet = true;
143 m_filter = std::forward<FilterT>(value);
144 }
145 template <typename FilterT = Expression>
147 SetFilter(std::forward<FilterT>(value));
148 return *this;
149 }
151
153
178 inline const SortDefinition& GetSortBy() const { return m_sortBy; }
179 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
180 template <typename SortByT = SortDefinition>
181 void SetSortBy(SortByT&& value) {
182 m_sortByHasBeenSet = true;
183 m_sortBy = std::forward<SortByT>(value);
184 }
185 template <typename SortByT = SortDefinition>
187 SetSortBy(std::forward<SortByT>(value));
188 return *this;
189 }
191
193
198 inline const Aws::String& GetNextPageToken() const { return m_nextPageToken; }
199 inline bool NextPageTokenHasBeenSet() const { return m_nextPageTokenHasBeenSet; }
200 template <typename NextPageTokenT = Aws::String>
201 void SetNextPageToken(NextPageTokenT&& value) {
202 m_nextPageTokenHasBeenSet = true;
203 m_nextPageToken = std::forward<NextPageTokenT>(value);
204 }
205 template <typename NextPageTokenT = Aws::String>
207 SetNextPageToken(std::forward<NextPageTokenT>(value));
208 return *this;
209 }
211
213
219 inline int GetMaxResults() const { return m_maxResults; }
220 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
221 inline void SetMaxResults(int value) {
222 m_maxResultsHasBeenSet = true;
223 m_maxResults = value;
224 }
226 SetMaxResults(value);
227 return *this;
228 }
230 private:
231 DateInterval m_timePeriod;
232
234
235 Granularity m_granularity{Granularity::NOT_SET};
236
237 Expression m_filter;
238
239 SortDefinition m_sortBy;
240
241 Aws::String m_nextPageToken;
242
243 int m_maxResults{0};
244 bool m_timePeriodHasBeenSet = false;
245 bool m_groupByHasBeenSet = false;
246 bool m_granularityHasBeenSet = false;
247 bool m_filterHasBeenSet = false;
248 bool m_sortByHasBeenSet = false;
249 bool m_nextPageTokenHasBeenSet = false;
250 bool m_maxResultsHasBeenSet = false;
251};
252
253} // namespace Model
254} // namespace CostExplorer
255} // namespace Aws
GetReservationUtilizationRequest & WithFilter(FilterT &&value)
GetReservationUtilizationRequest & WithTimePeriod(TimePeriodT &&value)
GetReservationUtilizationRequest & WithGranularity(Granularity value)
AWS_COSTEXPLORER_API GetReservationUtilizationRequest()=default
AWS_COSTEXPLORER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_COSTEXPLORER_API Aws::String SerializePayload() const override
GetReservationUtilizationRequest & WithNextPageToken(NextPageTokenT &&value)
GetReservationUtilizationRequest & WithSortBy(SortByT &&value)
GetReservationUtilizationRequest & WithGroupBy(GroupByT &&value)
GetReservationUtilizationRequest & AddGroupBy(GroupByT &&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