AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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
127 inline const Expression& GetFilter() const { return m_filter; }
128 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
129 template <typename FilterT = Expression>
130 void SetFilter(FilterT&& value) {
131 m_filterHasBeenSet = true;
132 m_filter = std::forward<FilterT>(value);
133 }
134 template <typename FilterT = Expression>
136 SetFilter(std::forward<FilterT>(value));
137 return *this;
138 }
140
142
162 inline const SortDefinition& GetSortBy() const { return m_sortBy; }
163 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
164 template <typename SortByT = SortDefinition>
165 void SetSortBy(SortByT&& value) {
166 m_sortByHasBeenSet = true;
167 m_sortBy = std::forward<SortByT>(value);
168 }
169 template <typename SortByT = SortDefinition>
171 SetSortBy(std::forward<SortByT>(value));
172 return *this;
173 }
175
177
182 inline const Aws::String& GetNextPageToken() const { return m_nextPageToken; }
183 inline bool NextPageTokenHasBeenSet() const { return m_nextPageTokenHasBeenSet; }
184 template <typename NextPageTokenT = Aws::String>
185 void SetNextPageToken(NextPageTokenT&& value) {
186 m_nextPageTokenHasBeenSet = true;
187 m_nextPageToken = std::forward<NextPageTokenT>(value);
188 }
189 template <typename NextPageTokenT = Aws::String>
191 SetNextPageToken(std::forward<NextPageTokenT>(value));
192 return *this;
193 }
195
197
203 inline int GetMaxResults() const { return m_maxResults; }
204 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
205 inline void SetMaxResults(int value) {
206 m_maxResultsHasBeenSet = true;
207 m_maxResults = value;
208 }
210 SetMaxResults(value);
211 return *this;
212 }
214 private:
215 DateInterval m_timePeriod;
216
218
219 Granularity m_granularity{Granularity::NOT_SET};
220
221 Expression m_filter;
222
223 SortDefinition m_sortBy;
224
225 Aws::String m_nextPageToken;
226
227 int m_maxResults{0};
228 bool m_timePeriodHasBeenSet = false;
229 bool m_groupByHasBeenSet = false;
230 bool m_granularityHasBeenSet = false;
231 bool m_filterHasBeenSet = false;
232 bool m_sortByHasBeenSet = false;
233 bool m_nextPageTokenHasBeenSet = false;
234 bool m_maxResultsHasBeenSet = false;
235};
236
237} // namespace Model
238} // namespace CostExplorer
239} // 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