AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetDimensionValuesRequest.h
1
6#pragma once
7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/ce/CostExplorerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ce/model/DateInterval.h>
11#include <aws/ce/model/Dimension.h>
12#include <aws/ce/model/Context.h>
13#include <aws/ce/model/Expression.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15#include <aws/ce/model/SortDefinition.h>
16#include <utility>
17
18namespace Aws
19{
20namespace CostExplorer
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_COSTEXPLORER_API GetDimensionValuesRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "GetDimensionValues"; }
37
38 AWS_COSTEXPLORER_API Aws::String SerializePayload() const override;
39
40 AWS_COSTEXPLORER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
41
42
44
47 inline const Aws::String& GetSearchString() const { return m_searchString; }
48 inline bool SearchStringHasBeenSet() const { return m_searchStringHasBeenSet; }
49 template<typename SearchStringT = Aws::String>
50 void SetSearchString(SearchStringT&& value) { m_searchStringHasBeenSet = true; m_searchString = std::forward<SearchStringT>(value); }
51 template<typename SearchStringT = Aws::String>
52 GetDimensionValuesRequest& WithSearchString(SearchStringT&& value) { SetSearchString(std::forward<SearchStringT>(value)); return *this;}
54
56
64 inline const DateInterval& GetTimePeriod() const { return m_timePeriod; }
65 inline bool TimePeriodHasBeenSet() const { return m_timePeriodHasBeenSet; }
66 template<typename TimePeriodT = DateInterval>
67 void SetTimePeriod(TimePeriodT&& value) { m_timePeriodHasBeenSet = true; m_timePeriod = std::forward<TimePeriodT>(value); }
68 template<typename TimePeriodT = DateInterval>
69 GetDimensionValuesRequest& WithTimePeriod(TimePeriodT&& value) { SetTimePeriod(std::forward<TimePeriodT>(value)); return *this;}
71
73
81 inline Dimension GetDimension() const { return m_dimension; }
82 inline bool DimensionHasBeenSet() const { return m_dimensionHasBeenSet; }
83 inline void SetDimension(Dimension value) { m_dimensionHasBeenSet = true; m_dimension = value; }
84 inline GetDimensionValuesRequest& WithDimension(Dimension value) { SetDimension(value); return *this;}
86
88
173 inline Context GetContext() const { return m_context; }
174 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
175 inline void SetContext(Context value) { m_contextHasBeenSet = true; m_context = value; }
176 inline GetDimensionValuesRequest& WithContext(Context value) { SetContext(value); return *this;}
178
180
181 inline const Expression& GetFilter() const { return m_filter; }
182 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
183 template<typename FilterT = Expression>
184 void SetFilter(FilterT&& value) { m_filterHasBeenSet = true; m_filter = std::forward<FilterT>(value); }
185 template<typename FilterT = Expression>
186 GetDimensionValuesRequest& WithFilter(FilterT&& value) { SetFilter(std::forward<FilterT>(value)); return *this;}
188
190
204 inline const Aws::Vector<SortDefinition>& GetSortBy() const { return m_sortBy; }
205 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
206 template<typename SortByT = Aws::Vector<SortDefinition>>
207 void SetSortBy(SortByT&& value) { m_sortByHasBeenSet = true; m_sortBy = std::forward<SortByT>(value); }
208 template<typename SortByT = Aws::Vector<SortDefinition>>
209 GetDimensionValuesRequest& WithSortBy(SortByT&& value) { SetSortBy(std::forward<SortByT>(value)); return *this;}
210 template<typename SortByT = SortDefinition>
211 GetDimensionValuesRequest& AddSortBy(SortByT&& value) { m_sortByHasBeenSet = true; m_sortBy.emplace_back(std::forward<SortByT>(value)); return *this; }
213
215
222 inline const Aws::String& GetBillingViewArn() const { return m_billingViewArn; }
223 inline bool BillingViewArnHasBeenSet() const { return m_billingViewArnHasBeenSet; }
224 template<typename BillingViewArnT = Aws::String>
225 void SetBillingViewArn(BillingViewArnT&& value) { m_billingViewArnHasBeenSet = true; m_billingViewArn = std::forward<BillingViewArnT>(value); }
226 template<typename BillingViewArnT = Aws::String>
227 GetDimensionValuesRequest& WithBillingViewArn(BillingViewArnT&& value) { SetBillingViewArn(std::forward<BillingViewArnT>(value)); return *this;}
229
231
238 inline int GetMaxResults() const { return m_maxResults; }
239 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
240 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
241 inline GetDimensionValuesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
243
245
250 inline const Aws::String& GetNextPageToken() const { return m_nextPageToken; }
251 inline bool NextPageTokenHasBeenSet() const { return m_nextPageTokenHasBeenSet; }
252 template<typename NextPageTokenT = Aws::String>
253 void SetNextPageToken(NextPageTokenT&& value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken = std::forward<NextPageTokenT>(value); }
254 template<typename NextPageTokenT = Aws::String>
255 GetDimensionValuesRequest& WithNextPageToken(NextPageTokenT&& value) { SetNextPageToken(std::forward<NextPageTokenT>(value)); return *this;}
257 private:
258
259 Aws::String m_searchString;
260 bool m_searchStringHasBeenSet = false;
261
262 DateInterval m_timePeriod;
263 bool m_timePeriodHasBeenSet = false;
264
265 Dimension m_dimension{Dimension::NOT_SET};
266 bool m_dimensionHasBeenSet = false;
267
268 Context m_context{Context::NOT_SET};
269 bool m_contextHasBeenSet = false;
270
271 Expression m_filter;
272 bool m_filterHasBeenSet = false;
273
275 bool m_sortByHasBeenSet = false;
276
277 Aws::String m_billingViewArn;
278 bool m_billingViewArnHasBeenSet = false;
279
280 int m_maxResults{0};
281 bool m_maxResultsHasBeenSet = false;
282
283 Aws::String m_nextPageToken;
284 bool m_nextPageTokenHasBeenSet = false;
285 };
286
287} // namespace Model
288} // namespace CostExplorer
289} // 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