AWS SDK for C++

AWS SDK for C++ Version 1.11.912

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
92 inline Dimension GetDimension() const { return m_dimension; }
93 inline bool DimensionHasBeenSet() const { return m_dimensionHasBeenSet; }
94 inline void SetDimension(Dimension value) {
95 m_dimensionHasBeenSet = true;
96 m_dimension = value;
97 }
99 SetDimension(value);
100 return *this;
101 }
103
105
119 inline const Aws::String& GetDimensionKey() const { return m_dimensionKey; }
120 inline bool DimensionKeyHasBeenSet() const { return m_dimensionKeyHasBeenSet; }
121 template <typename DimensionKeyT = Aws::String>
122 void SetDimensionKey(DimensionKeyT&& value) {
123 m_dimensionKeyHasBeenSet = true;
124 m_dimensionKey = std::forward<DimensionKeyT>(value);
125 }
126 template <typename DimensionKeyT = Aws::String>
128 SetDimensionKey(std::forward<DimensionKeyT>(value));
129 return *this;
130 }
132
134
221 inline Context GetContext() const { return m_context; }
222 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
223 inline void SetContext(Context value) {
224 m_contextHasBeenSet = true;
225 m_context = value;
226 }
228 SetContext(value);
229 return *this;
230 }
232
234
235 inline const Expression& GetFilter() const { return m_filter; }
236 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
237 template <typename FilterT = Expression>
238 void SetFilter(FilterT&& value) {
239 m_filterHasBeenSet = true;
240 m_filter = std::forward<FilterT>(value);
241 }
242 template <typename FilterT = Expression>
244 SetFilter(std::forward<FilterT>(value));
245 return *this;
246 }
248
250
264 inline const Aws::Vector<SortDefinition>& GetSortBy() const { return m_sortBy; }
265 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
266 template <typename SortByT = Aws::Vector<SortDefinition>>
267 void SetSortBy(SortByT&& value) {
268 m_sortByHasBeenSet = true;
269 m_sortBy = std::forward<SortByT>(value);
270 }
271 template <typename SortByT = Aws::Vector<SortDefinition>>
273 SetSortBy(std::forward<SortByT>(value));
274 return *this;
275 }
276 template <typename SortByT = SortDefinition>
278 m_sortByHasBeenSet = true;
279 m_sortBy.emplace_back(std::forward<SortByT>(value));
280 return *this;
281 }
283
285
292 inline const Aws::String& GetBillingViewArn() const { return m_billingViewArn; }
293 inline bool BillingViewArnHasBeenSet() const { return m_billingViewArnHasBeenSet; }
294 template <typename BillingViewArnT = Aws::String>
295 void SetBillingViewArn(BillingViewArnT&& value) {
296 m_billingViewArnHasBeenSet = true;
297 m_billingViewArn = std::forward<BillingViewArnT>(value);
298 }
299 template <typename BillingViewArnT = Aws::String>
301 SetBillingViewArn(std::forward<BillingViewArnT>(value));
302 return *this;
303 }
305
307
314 inline int GetMaxResults() const { return m_maxResults; }
315 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
316 inline void SetMaxResults(int value) {
317 m_maxResultsHasBeenSet = true;
318 m_maxResults = value;
319 }
321 SetMaxResults(value);
322 return *this;
323 }
325
327
332 inline const Aws::String& GetNextPageToken() const { return m_nextPageToken; }
333 inline bool NextPageTokenHasBeenSet() const { return m_nextPageTokenHasBeenSet; }
334 template <typename NextPageTokenT = Aws::String>
335 void SetNextPageToken(NextPageTokenT&& value) {
336 m_nextPageTokenHasBeenSet = true;
337 m_nextPageToken = std::forward<NextPageTokenT>(value);
338 }
339 template <typename NextPageTokenT = Aws::String>
341 SetNextPageToken(std::forward<NextPageTokenT>(value));
342 return *this;
343 }
345 private:
346 Aws::String m_searchString;
347
348 DateInterval m_timePeriod;
349
350 Dimension m_dimension{Dimension::NOT_SET};
351
352 Aws::String m_dimensionKey;
353
354 Context m_context{Context::NOT_SET};
355
356 Expression m_filter;
357
359
360 Aws::String m_billingViewArn;
361
362 int m_maxResults{0};
363
364 Aws::String m_nextPageToken;
365 bool m_searchStringHasBeenSet = false;
366 bool m_timePeriodHasBeenSet = false;
367 bool m_dimensionHasBeenSet = false;
368 bool m_dimensionKeyHasBeenSet = false;
369 bool m_contextHasBeenSet = false;
370 bool m_filterHasBeenSet = false;
371 bool m_sortByHasBeenSet = false;
372 bool m_billingViewArnHasBeenSet = false;
373 bool m_maxResultsHasBeenSet = false;
374 bool m_nextPageTokenHasBeenSet = false;
375};
376
377} // namespace Model
378} // namespace CostExplorer
379} // 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 & WithDimensionKey(DimensionKeyT &&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