AWS SDK for C++

AWS SDK for C++ Version 1.11.945

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
95 inline Dimension GetDimension() const { return m_dimension; }
96 inline bool DimensionHasBeenSet() const { return m_dimensionHasBeenSet; }
97 inline void SetDimension(Dimension value) {
98 m_dimensionHasBeenSet = true;
99 m_dimension = value;
100 }
102 SetDimension(value);
103 return *this;
104 }
106
108
122 inline const Aws::String& GetDimensionKey() const { return m_dimensionKey; }
123 inline bool DimensionKeyHasBeenSet() const { return m_dimensionKeyHasBeenSet; }
124 template <typename DimensionKeyT = Aws::String>
125 void SetDimensionKey(DimensionKeyT&& value) {
126 m_dimensionKeyHasBeenSet = true;
127 m_dimensionKey = std::forward<DimensionKeyT>(value);
128 }
129 template <typename DimensionKeyT = Aws::String>
131 SetDimensionKey(std::forward<DimensionKeyT>(value));
132 return *this;
133 }
135
137
251 inline Context GetContext() const { return m_context; }
252 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
253 inline void SetContext(Context value) {
254 m_contextHasBeenSet = true;
255 m_context = value;
256 }
258 SetContext(value);
259 return *this;
260 }
262
264
287 inline const Expression& GetFilter() const { return m_filter; }
288 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
289 template <typename FilterT = Expression>
290 void SetFilter(FilterT&& value) {
291 m_filterHasBeenSet = true;
292 m_filter = std::forward<FilterT>(value);
293 }
294 template <typename FilterT = Expression>
296 SetFilter(std::forward<FilterT>(value));
297 return *this;
298 }
300
302
320 inline const Aws::Vector<SortDefinition>& GetSortBy() const { return m_sortBy; }
321 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
322 template <typename SortByT = Aws::Vector<SortDefinition>>
323 void SetSortBy(SortByT&& value) {
324 m_sortByHasBeenSet = true;
325 m_sortBy = std::forward<SortByT>(value);
326 }
327 template <typename SortByT = Aws::Vector<SortDefinition>>
329 SetSortBy(std::forward<SortByT>(value));
330 return *this;
331 }
332 template <typename SortByT = SortDefinition>
334 m_sortByHasBeenSet = true;
335 m_sortBy.emplace_back(std::forward<SortByT>(value));
336 return *this;
337 }
339
341
348 inline const Aws::String& GetBillingViewArn() const { return m_billingViewArn; }
349 inline bool BillingViewArnHasBeenSet() const { return m_billingViewArnHasBeenSet; }
350 template <typename BillingViewArnT = Aws::String>
351 void SetBillingViewArn(BillingViewArnT&& value) {
352 m_billingViewArnHasBeenSet = true;
353 m_billingViewArn = std::forward<BillingViewArnT>(value);
354 }
355 template <typename BillingViewArnT = Aws::String>
357 SetBillingViewArn(std::forward<BillingViewArnT>(value));
358 return *this;
359 }
361
363
371 inline int GetMaxResults() const { return m_maxResults; }
372 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
373 inline void SetMaxResults(int value) {
374 m_maxResultsHasBeenSet = true;
375 m_maxResults = value;
376 }
378 SetMaxResults(value);
379 return *this;
380 }
382
384
389 inline const Aws::String& GetNextPageToken() const { return m_nextPageToken; }
390 inline bool NextPageTokenHasBeenSet() const { return m_nextPageTokenHasBeenSet; }
391 template <typename NextPageTokenT = Aws::String>
392 void SetNextPageToken(NextPageTokenT&& value) {
393 m_nextPageTokenHasBeenSet = true;
394 m_nextPageToken = std::forward<NextPageTokenT>(value);
395 }
396 template <typename NextPageTokenT = Aws::String>
398 SetNextPageToken(std::forward<NextPageTokenT>(value));
399 return *this;
400 }
402 private:
403 Aws::String m_searchString;
404
405 DateInterval m_timePeriod;
406
407 Dimension m_dimension{Dimension::NOT_SET};
408
409 Aws::String m_dimensionKey;
410
411 Context m_context{Context::NOT_SET};
412
413 Expression m_filter;
414
416
417 Aws::String m_billingViewArn;
418
419 int m_maxResults{0};
420
421 Aws::String m_nextPageToken;
422 bool m_searchStringHasBeenSet = false;
423 bool m_timePeriodHasBeenSet = false;
424 bool m_dimensionHasBeenSet = false;
425 bool m_dimensionKeyHasBeenSet = false;
426 bool m_contextHasBeenSet = false;
427 bool m_filterHasBeenSet = false;
428 bool m_sortByHasBeenSet = false;
429 bool m_billingViewArnHasBeenSet = false;
430 bool m_maxResultsHasBeenSet = false;
431 bool m_nextPageTokenHasBeenSet = false;
432};
433
434} // namespace Model
435} // namespace CostExplorer
436} // 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