AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetSearchString(const Aws::String& value) { m_searchStringHasBeenSet = true; m_searchString = value; }
50 inline void SetSearchString(Aws::String&& value) { m_searchStringHasBeenSet = true; m_searchString = std::move(value); }
51 inline void SetSearchString(const char* value) { m_searchStringHasBeenSet = true; m_searchString.assign(value); }
52 inline GetDimensionValuesRequest& WithSearchString(const Aws::String& value) { SetSearchString(value); return *this;}
53 inline GetDimensionValuesRequest& WithSearchString(Aws::String&& value) { SetSearchString(std::move(value)); return *this;}
54 inline GetDimensionValuesRequest& WithSearchString(const char* value) { SetSearchString(value); return *this;}
56
58
66 inline const DateInterval& GetTimePeriod() const{ return m_timePeriod; }
67 inline bool TimePeriodHasBeenSet() const { return m_timePeriodHasBeenSet; }
68 inline void SetTimePeriod(const DateInterval& value) { m_timePeriodHasBeenSet = true; m_timePeriod = value; }
69 inline void SetTimePeriod(DateInterval&& value) { m_timePeriodHasBeenSet = true; m_timePeriod = std::move(value); }
70 inline GetDimensionValuesRequest& WithTimePeriod(const DateInterval& value) { SetTimePeriod(value); return *this;}
71 inline GetDimensionValuesRequest& WithTimePeriod(DateInterval&& value) { SetTimePeriod(std::move(value)); return *this;}
73
75
83 inline const Dimension& GetDimension() const{ return m_dimension; }
84 inline bool DimensionHasBeenSet() const { return m_dimensionHasBeenSet; }
85 inline void SetDimension(const Dimension& value) { m_dimensionHasBeenSet = true; m_dimension = value; }
86 inline void SetDimension(Dimension&& value) { m_dimensionHasBeenSet = true; m_dimension = std::move(value); }
87 inline GetDimensionValuesRequest& WithDimension(const Dimension& value) { SetDimension(value); return *this;}
88 inline GetDimensionValuesRequest& WithDimension(Dimension&& value) { SetDimension(std::move(value)); return *this;}
90
92
177 inline const Context& GetContext() const{ return m_context; }
178 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
179 inline void SetContext(const Context& value) { m_contextHasBeenSet = true; m_context = value; }
180 inline void SetContext(Context&& value) { m_contextHasBeenSet = true; m_context = std::move(value); }
181 inline GetDimensionValuesRequest& WithContext(const Context& value) { SetContext(value); return *this;}
182 inline GetDimensionValuesRequest& WithContext(Context&& value) { SetContext(std::move(value)); return *this;}
184
186
187 inline const Expression& GetFilter() const{ return m_filter; }
188 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
189 inline void SetFilter(const Expression& value) { m_filterHasBeenSet = true; m_filter = value; }
190 inline void SetFilter(Expression&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
191 inline GetDimensionValuesRequest& WithFilter(const Expression& value) { SetFilter(value); return *this;}
192 inline GetDimensionValuesRequest& WithFilter(Expression&& value) { SetFilter(std::move(value)); return *this;}
194
196
210 inline const Aws::Vector<SortDefinition>& GetSortBy() const{ return m_sortBy; }
211 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
212 inline void SetSortBy(const Aws::Vector<SortDefinition>& value) { m_sortByHasBeenSet = true; m_sortBy = value; }
213 inline void SetSortBy(Aws::Vector<SortDefinition>&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); }
214 inline GetDimensionValuesRequest& WithSortBy(const Aws::Vector<SortDefinition>& value) { SetSortBy(value); return *this;}
215 inline GetDimensionValuesRequest& WithSortBy(Aws::Vector<SortDefinition>&& value) { SetSortBy(std::move(value)); return *this;}
216 inline GetDimensionValuesRequest& AddSortBy(const SortDefinition& value) { m_sortByHasBeenSet = true; m_sortBy.push_back(value); return *this; }
217 inline GetDimensionValuesRequest& AddSortBy(SortDefinition&& value) { m_sortByHasBeenSet = true; m_sortBy.push_back(std::move(value)); return *this; }
219
221
228 inline int GetMaxResults() const{ return m_maxResults; }
229 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
230 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
231 inline GetDimensionValuesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
233
235
240 inline const Aws::String& GetNextPageToken() const{ return m_nextPageToken; }
241 inline bool NextPageTokenHasBeenSet() const { return m_nextPageTokenHasBeenSet; }
242 inline void SetNextPageToken(const Aws::String& value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken = value; }
243 inline void SetNextPageToken(Aws::String&& value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken = std::move(value); }
244 inline void SetNextPageToken(const char* value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken.assign(value); }
245 inline GetDimensionValuesRequest& WithNextPageToken(const Aws::String& value) { SetNextPageToken(value); return *this;}
246 inline GetDimensionValuesRequest& WithNextPageToken(Aws::String&& value) { SetNextPageToken(std::move(value)); return *this;}
247 inline GetDimensionValuesRequest& WithNextPageToken(const char* value) { SetNextPageToken(value); return *this;}
249 private:
250
251 Aws::String m_searchString;
252 bool m_searchStringHasBeenSet = false;
253
254 DateInterval m_timePeriod;
255 bool m_timePeriodHasBeenSet = false;
256
257 Dimension m_dimension;
258 bool m_dimensionHasBeenSet = false;
259
260 Context m_context;
261 bool m_contextHasBeenSet = false;
262
263 Expression m_filter;
264 bool m_filterHasBeenSet = false;
265
267 bool m_sortByHasBeenSet = false;
268
269 int m_maxResults;
270 bool m_maxResultsHasBeenSet = false;
271
272 Aws::String m_nextPageToken;
273 bool m_nextPageTokenHasBeenSet = false;
274 };
275
276} // namespace Model
277} // namespace CostExplorer
278} // namespace Aws
GetDimensionValuesRequest & AddSortBy(const SortDefinition &value)
GetDimensionValuesRequest & WithFilter(Expression &&value)
virtual const char * GetServiceRequestName() const override
GetDimensionValuesRequest & AddSortBy(SortDefinition &&value)
GetDimensionValuesRequest & WithDimension(Dimension &&value)
AWS_COSTEXPLORER_API Aws::String SerializePayload() const override
GetDimensionValuesRequest & WithFilter(const Expression &value)
void SetSortBy(Aws::Vector< SortDefinition > &&value)
void SetSortBy(const Aws::Vector< SortDefinition > &value)
GetDimensionValuesRequest & WithContext(Context &&value)
GetDimensionValuesRequest & WithTimePeriod(DateInterval &&value)
GetDimensionValuesRequest & WithSearchString(const Aws::String &value)
GetDimensionValuesRequest & WithNextPageToken(const Aws::String &value)
GetDimensionValuesRequest & WithNextPageToken(const char *value)
GetDimensionValuesRequest & WithContext(const Context &value)
GetDimensionValuesRequest & WithSearchString(Aws::String &&value)
GetDimensionValuesRequest & WithSearchString(const char *value)
GetDimensionValuesRequest & WithSortBy(Aws::Vector< SortDefinition > &&value)
GetDimensionValuesRequest & WithDimension(const Dimension &value)
GetDimensionValuesRequest & WithTimePeriod(const DateInterval &value)
GetDimensionValuesRequest & WithSortBy(const Aws::Vector< SortDefinition > &value)
const Aws::Vector< SortDefinition > & GetSortBy() const
AWS_COSTEXPLORER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetDimensionValuesRequest & WithNextPageToken(Aws::String &&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