AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
GetDimensionValuesRequest.h
1
6#pragma once
7#include <aws/ce/CostExplorerRequest.h>
8#include <aws/ce/CostExplorer_EXPORTS.h>
9#include <aws/ce/model/Context.h>
10#include <aws/ce/model/DateInterval.h>
11#include <aws/ce/model/Dimension.h>
12#include <aws/ce/model/Expression.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 GetDimensionValuesRequest() = 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 "GetDimensionValues"; }
34
35 AWS_COSTEXPLORER_API Aws::String SerializePayload() const override;
36
37 AWS_COSTEXPLORER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
40
43 inline const Aws::String& GetSearchString() const { return m_searchString; }
44 inline bool SearchStringHasBeenSet() const { return m_searchStringHasBeenSet; }
45 template <typename SearchStringT = Aws::String>
46 void SetSearchString(SearchStringT&& value) {
47 m_searchStringHasBeenSet = true;
48 m_searchString = std::forward<SearchStringT>(value);
49 }
50 template <typename SearchStringT = Aws::String>
52 SetSearchString(std::forward<SearchStringT>(value));
53 return *this;
54 }
56
58
66 inline const DateInterval& GetTimePeriod() const { return m_timePeriod; }
67 inline bool TimePeriodHasBeenSet() const { return m_timePeriodHasBeenSet; }
68 template <typename TimePeriodT = DateInterval>
69 void SetTimePeriod(TimePeriodT&& value) {
70 m_timePeriodHasBeenSet = true;
71 m_timePeriod = std::forward<TimePeriodT>(value);
72 }
73 template <typename TimePeriodT = DateInterval>
75 SetTimePeriod(std::forward<TimePeriodT>(value));
76 return *this;
77 }
79
81
89 inline Dimension GetDimension() const { return m_dimension; }
90 inline bool DimensionHasBeenSet() const { return m_dimensionHasBeenSet; }
91 inline void SetDimension(Dimension value) {
92 m_dimensionHasBeenSet = true;
93 m_dimension = value;
94 }
96 SetDimension(value);
97 return *this;
98 }
100
102
187 inline Context GetContext() const { return m_context; }
188 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
189 inline void SetContext(Context value) {
190 m_contextHasBeenSet = true;
191 m_context = value;
192 }
194 SetContext(value);
195 return *this;
196 }
198
200
201 inline const Expression& GetFilter() const { return m_filter; }
202 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
203 template <typename FilterT = Expression>
204 void SetFilter(FilterT&& value) {
205 m_filterHasBeenSet = true;
206 m_filter = std::forward<FilterT>(value);
207 }
208 template <typename FilterT = Expression>
210 SetFilter(std::forward<FilterT>(value));
211 return *this;
212 }
214
216
230 inline const Aws::Vector<SortDefinition>& GetSortBy() const { return m_sortBy; }
231 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
232 template <typename SortByT = Aws::Vector<SortDefinition>>
233 void SetSortBy(SortByT&& value) {
234 m_sortByHasBeenSet = true;
235 m_sortBy = std::forward<SortByT>(value);
236 }
237 template <typename SortByT = Aws::Vector<SortDefinition>>
239 SetSortBy(std::forward<SortByT>(value));
240 return *this;
241 }
242 template <typename SortByT = SortDefinition>
244 m_sortByHasBeenSet = true;
245 m_sortBy.emplace_back(std::forward<SortByT>(value));
246 return *this;
247 }
249
251
258 inline const Aws::String& GetBillingViewArn() const { return m_billingViewArn; }
259 inline bool BillingViewArnHasBeenSet() const { return m_billingViewArnHasBeenSet; }
260 template <typename BillingViewArnT = Aws::String>
261 void SetBillingViewArn(BillingViewArnT&& value) {
262 m_billingViewArnHasBeenSet = true;
263 m_billingViewArn = std::forward<BillingViewArnT>(value);
264 }
265 template <typename BillingViewArnT = Aws::String>
267 SetBillingViewArn(std::forward<BillingViewArnT>(value));
268 return *this;
269 }
271
273
280 inline int GetMaxResults() const { return m_maxResults; }
281 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
282 inline void SetMaxResults(int value) {
283 m_maxResultsHasBeenSet = true;
284 m_maxResults = value;
285 }
287 SetMaxResults(value);
288 return *this;
289 }
291
293
298 inline const Aws::String& GetNextPageToken() const { return m_nextPageToken; }
299 inline bool NextPageTokenHasBeenSet() const { return m_nextPageTokenHasBeenSet; }
300 template <typename NextPageTokenT = Aws::String>
301 void SetNextPageToken(NextPageTokenT&& value) {
302 m_nextPageTokenHasBeenSet = true;
303 m_nextPageToken = std::forward<NextPageTokenT>(value);
304 }
305 template <typename NextPageTokenT = Aws::String>
307 SetNextPageToken(std::forward<NextPageTokenT>(value));
308 return *this;
309 }
311 private:
312 Aws::String m_searchString;
313
314 DateInterval m_timePeriod;
315
316 Dimension m_dimension{Dimension::NOT_SET};
317
318 Context m_context{Context::NOT_SET};
319
320 Expression m_filter;
321
323
324 Aws::String m_billingViewArn;
325
326 int m_maxResults{0};
327
328 Aws::String m_nextPageToken;
329 bool m_searchStringHasBeenSet = false;
330 bool m_timePeriodHasBeenSet = false;
331 bool m_dimensionHasBeenSet = false;
332 bool m_contextHasBeenSet = false;
333 bool m_filterHasBeenSet = false;
334 bool m_sortByHasBeenSet = false;
335 bool m_billingViewArnHasBeenSet = false;
336 bool m_maxResultsHasBeenSet = false;
337 bool m_nextPageTokenHasBeenSet = false;
338};
339
340} // namespace Model
341} // namespace CostExplorer
342} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_COSTEXPLORER_API Aws::String SerializePayload() const override
AWS_COSTEXPLORER_API GetDimensionValuesRequest()=default
GetDimensionValuesRequest & WithSortBy(SortByT &&value)
GetDimensionValuesRequest & WithContext(Context value)
GetDimensionValuesRequest & WithTimePeriod(TimePeriodT &&value)
GetDimensionValuesRequest & WithNextPageToken(NextPageTokenT &&value)
GetDimensionValuesRequest & WithDimension(Dimension value)
GetDimensionValuesRequest & WithBillingViewArn(BillingViewArnT &&value)
GetDimensionValuesRequest & AddSortBy(SortByT &&value)
GetDimensionValuesRequest & WithFilter(FilterT &&value)
const Aws::Vector< SortDefinition > & GetSortBy() const
AWS_COSTEXPLORER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetDimensionValuesRequest & WithSearchString(SearchStringT &&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