AWS SDK for C++  1.9.1
AWS SDK for C++
GetCostCategoriesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace CostExplorer
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "GetCostCategories"; }
35 
36  Aws::String SerializePayload() const override;
37 
39 
40 
49  inline const Aws::String& GetSearchString() const{ return m_searchString; }
50 
59  inline bool SearchStringHasBeenSet() const { return m_searchStringHasBeenSet; }
60 
69  inline void SetSearchString(const Aws::String& value) { m_searchStringHasBeenSet = true; m_searchString = value; }
70 
79  inline void SetSearchString(Aws::String&& value) { m_searchStringHasBeenSet = true; m_searchString = std::move(value); }
80 
89  inline void SetSearchString(const char* value) { m_searchStringHasBeenSet = true; m_searchString.assign(value); }
90 
99  inline GetCostCategoriesRequest& WithSearchString(const Aws::String& value) { SetSearchString(value); return *this;}
100 
109  inline GetCostCategoriesRequest& WithSearchString(Aws::String&& value) { SetSearchString(std::move(value)); return *this;}
110 
119  inline GetCostCategoriesRequest& WithSearchString(const char* value) { SetSearchString(value); return *this;}
120 
121 
122 
123  inline const DateInterval& GetTimePeriod() const{ return m_timePeriod; }
124 
125 
126  inline bool TimePeriodHasBeenSet() const { return m_timePeriodHasBeenSet; }
127 
128 
129  inline void SetTimePeriod(const DateInterval& value) { m_timePeriodHasBeenSet = true; m_timePeriod = value; }
130 
131 
132  inline void SetTimePeriod(DateInterval&& value) { m_timePeriodHasBeenSet = true; m_timePeriod = std::move(value); }
133 
134 
135  inline GetCostCategoriesRequest& WithTimePeriod(const DateInterval& value) { SetTimePeriod(value); return *this;}
136 
137 
138  inline GetCostCategoriesRequest& WithTimePeriod(DateInterval&& value) { SetTimePeriod(std::move(value)); return *this;}
139 
140 
141 
142  inline const Aws::String& GetCostCategoryName() const{ return m_costCategoryName; }
143 
144 
145  inline bool CostCategoryNameHasBeenSet() const { return m_costCategoryNameHasBeenSet; }
146 
147 
148  inline void SetCostCategoryName(const Aws::String& value) { m_costCategoryNameHasBeenSet = true; m_costCategoryName = value; }
149 
150 
151  inline void SetCostCategoryName(Aws::String&& value) { m_costCategoryNameHasBeenSet = true; m_costCategoryName = std::move(value); }
152 
153 
154  inline void SetCostCategoryName(const char* value) { m_costCategoryNameHasBeenSet = true; m_costCategoryName.assign(value); }
155 
156 
157  inline GetCostCategoriesRequest& WithCostCategoryName(const Aws::String& value) { SetCostCategoryName(value); return *this;}
158 
159 
160  inline GetCostCategoriesRequest& WithCostCategoryName(Aws::String&& value) { SetCostCategoryName(std::move(value)); return *this;}
161 
162 
163  inline GetCostCategoriesRequest& WithCostCategoryName(const char* value) { SetCostCategoryName(value); return *this;}
164 
165 
166 
167  inline const Expression& GetFilter() const{ return m_filter; }
168 
169 
170  inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
171 
172 
173  inline void SetFilter(const Expression& value) { m_filterHasBeenSet = true; m_filter = value; }
174 
175 
176  inline void SetFilter(Expression&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
177 
178 
179  inline GetCostCategoriesRequest& WithFilter(const Expression& value) { SetFilter(value); return *this;}
180 
181 
182  inline GetCostCategoriesRequest& WithFilter(Expression&& value) { SetFilter(std::move(value)); return *this;}
183 
184 
197  inline const Aws::Vector<SortDefinition>& GetSortBy() const{ return m_sortBy; }
198 
211  inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
212 
225  inline void SetSortBy(const Aws::Vector<SortDefinition>& value) { m_sortByHasBeenSet = true; m_sortBy = value; }
226 
239  inline void SetSortBy(Aws::Vector<SortDefinition>&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); }
240 
253  inline GetCostCategoriesRequest& WithSortBy(const Aws::Vector<SortDefinition>& value) { SetSortBy(value); return *this;}
254 
267  inline GetCostCategoriesRequest& WithSortBy(Aws::Vector<SortDefinition>&& value) { SetSortBy(std::move(value)); return *this;}
268 
281  inline GetCostCategoriesRequest& AddSortBy(const SortDefinition& value) { m_sortByHasBeenSet = true; m_sortBy.push_back(value); return *this; }
282 
295  inline GetCostCategoriesRequest& AddSortBy(SortDefinition&& value) { m_sortByHasBeenSet = true; m_sortBy.push_back(std::move(value)); return *this; }
296 
297 
306  inline int GetMaxResults() const{ return m_maxResults; }
307 
316  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
317 
326  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
327 
336  inline GetCostCategoriesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
337 
338 
345  inline const Aws::String& GetNextPageToken() const{ return m_nextPageToken; }
346 
353  inline bool NextPageTokenHasBeenSet() const { return m_nextPageTokenHasBeenSet; }
354 
361  inline void SetNextPageToken(const Aws::String& value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken = value; }
362 
369  inline void SetNextPageToken(Aws::String&& value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken = std::move(value); }
370 
377  inline void SetNextPageToken(const char* value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken.assign(value); }
378 
385  inline GetCostCategoriesRequest& WithNextPageToken(const Aws::String& value) { SetNextPageToken(value); return *this;}
386 
393  inline GetCostCategoriesRequest& WithNextPageToken(Aws::String&& value) { SetNextPageToken(std::move(value)); return *this;}
394 
401  inline GetCostCategoriesRequest& WithNextPageToken(const char* value) { SetNextPageToken(value); return *this;}
402 
403  private:
404 
405  Aws::String m_searchString;
406  bool m_searchStringHasBeenSet;
407 
408  DateInterval m_timePeriod;
409  bool m_timePeriodHasBeenSet;
410 
411  Aws::String m_costCategoryName;
412  bool m_costCategoryNameHasBeenSet;
413 
414  Expression m_filter;
415  bool m_filterHasBeenSet;
416 
418  bool m_sortByHasBeenSet;
419 
420  int m_maxResults;
421  bool m_maxResultsHasBeenSet;
422 
423  Aws::String m_nextPageToken;
424  bool m_nextPageTokenHasBeenSet;
425  };
426 
427 } // namespace Model
428 } // namespace CostExplorer
429 } // namespace Aws
Aws::CostExplorer::Model::GetCostCategoriesRequest::WithMaxResults
GetCostCategoriesRequest & WithMaxResults(int value)
Definition: GetCostCategoriesRequest.h:336
Aws::CostExplorer::CostExplorerRequest
Definition: CostExplorerRequest.h:17
Aws::CostExplorer::Model::DateInterval
Definition: DateInterval.h:32
Aws::CostExplorer::Model::GetCostCategoriesRequest::SetTimePeriod
void SetTimePeriod(const DateInterval &value)
Definition: GetCostCategoriesRequest.h:129
Aws::CostExplorer::Model::GetCostCategoriesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CostExplorer::Model::GetCostCategoriesRequest::GetFilter
const Expression & GetFilter() const
Definition: GetCostCategoriesRequest.h:167
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::CostExplorer::Model::GetCostCategoriesRequest::SearchStringHasBeenSet
bool SearchStringHasBeenSet() const
Definition: GetCostCategoriesRequest.h:59
Aws::CostExplorer::Model::GetCostCategoriesRequest::TimePeriodHasBeenSet
bool TimePeriodHasBeenSet() const
Definition: GetCostCategoriesRequest.h:126
Aws::CostExplorer::Model::GetCostCategoriesRequest::FilterHasBeenSet
bool FilterHasBeenSet() const
Definition: GetCostCategoriesRequest.h:170
Aws::CostExplorer::Model::GetCostCategoriesRequest::GetTimePeriod
const DateInterval & GetTimePeriod() const
Definition: GetCostCategoriesRequest.h:123
Aws::CostExplorer::Model::GetCostCategoriesRequest::WithSearchString
GetCostCategoriesRequest & WithSearchString(Aws::String &&value)
Definition: GetCostCategoriesRequest.h:109
Aws::CostExplorer::Model::GetCostCategoriesRequest::SetTimePeriod
void SetTimePeriod(DateInterval &&value)
Definition: GetCostCategoriesRequest.h:132
Aws::CostExplorer::Model::GetCostCategoriesRequest::WithTimePeriod
GetCostCategoriesRequest & WithTimePeriod(const DateInterval &value)
Definition: GetCostCategoriesRequest.h:135
CostExplorerRequest.h
Aws::CostExplorer::Model::GetCostCategoriesRequest::WithFilter
GetCostCategoriesRequest & WithFilter(Expression &&value)
Definition: GetCostCategoriesRequest.h:182
DateInterval.h
Aws::CostExplorer::Model::Expression
Definition: Expression.h:69
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CostExplorer::Model::GetCostCategoriesRequest::AddSortBy
GetCostCategoriesRequest & AddSortBy(SortDefinition &&value)
Definition: GetCostCategoriesRequest.h:295
AWSVector.h
Aws::CostExplorer::Model::GetCostCategoriesRequest::WithTimePeriod
GetCostCategoriesRequest & WithTimePeriod(DateInterval &&value)
Definition: GetCostCategoriesRequest.h:138
Aws::CostExplorer::Model::GetCostCategoriesRequest::SetFilter
void SetFilter(const Expression &value)
Definition: GetCostCategoriesRequest.h:173
Aws::CostExplorer::Model::GetCostCategoriesRequest::WithNextPageToken
GetCostCategoriesRequest & WithNextPageToken(Aws::String &&value)
Definition: GetCostCategoriesRequest.h:393
Aws::CostExplorer::Model::GetCostCategoriesRequest::SetNextPageToken
void SetNextPageToken(Aws::String &&value)
Definition: GetCostCategoriesRequest.h:369
SortDefinition.h
Aws::CostExplorer::Model::GetCostCategoriesRequest::SetNextPageToken
void SetNextPageToken(const char *value)
Definition: GetCostCategoriesRequest.h:377
CostExplorer_EXPORTS.h
Aws::CostExplorer::Model::GetCostCategoriesRequest
Definition: GetCostCategoriesRequest.h:26
Aws::CostExplorer::Model::GetCostCategoriesRequest::SetCostCategoryName
void SetCostCategoryName(const Aws::String &value)
Definition: GetCostCategoriesRequest.h:148
Aws::CostExplorer::Model::GetCostCategoriesRequest::SetCostCategoryName
void SetCostCategoryName(Aws::String &&value)
Definition: GetCostCategoriesRequest.h:151
Aws::CostExplorer::Model::GetCostCategoriesRequest::WithCostCategoryName
GetCostCategoriesRequest & WithCostCategoryName(const char *value)
Definition: GetCostCategoriesRequest.h:163
Aws::CostExplorer::Model::GetCostCategoriesRequest::WithNextPageToken
GetCostCategoriesRequest & WithNextPageToken(const char *value)
Definition: GetCostCategoriesRequest.h:401
Aws::CostExplorer::Model::GetCostCategoriesRequest::GetCostCategoryName
const Aws::String & GetCostCategoryName() const
Definition: GetCostCategoriesRequest.h:142
Aws::CostExplorer::Model::GetCostCategoriesRequest::SetMaxResults
void SetMaxResults(int value)
Definition: GetCostCategoriesRequest.h:326
Aws::CostExplorer::Model::GetCostCategoriesRequest::GetNextPageToken
const Aws::String & GetNextPageToken() const
Definition: GetCostCategoriesRequest.h:345
Aws::CostExplorer::Model::GetCostCategoriesRequest::WithCostCategoryName
GetCostCategoriesRequest & WithCostCategoryName(const Aws::String &value)
Definition: GetCostCategoriesRequest.h:157
Aws::CostExplorer::Model::GetCostCategoriesRequest::SetSearchString
void SetSearchString(const char *value)
Definition: GetCostCategoriesRequest.h:89
Aws::CostExplorer::Model::GetCostCategoriesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetCostCategoriesRequest.h:34
Aws::CostExplorer::Model::GetCostCategoriesRequest::SetCostCategoryName
void SetCostCategoryName(const char *value)
Definition: GetCostCategoriesRequest.h:154
AWSString.h
Aws::CostExplorer::Model::GetCostCategoriesRequest::WithSearchString
GetCostCategoriesRequest & WithSearchString(const Aws::String &value)
Definition: GetCostCategoriesRequest.h:99
Aws::CostExplorer::Model::GetCostCategoriesRequest::AddSortBy
GetCostCategoriesRequest & AddSortBy(const SortDefinition &value)
Definition: GetCostCategoriesRequest.h:281
Aws::CostExplorer::Model::GetCostCategoriesRequest::WithNextPageToken
GetCostCategoriesRequest & WithNextPageToken(const Aws::String &value)
Definition: GetCostCategoriesRequest.h:385
Aws::CostExplorer::Model::GetCostCategoriesRequest::SetNextPageToken
void SetNextPageToken(const Aws::String &value)
Definition: GetCostCategoriesRequest.h:361
AWS_COSTEXPLORER_API
#define AWS_COSTEXPLORER_API
Definition: CostExplorer_EXPORTS.h:28
Aws::CostExplorer::Model::GetCostCategoriesRequest::WithSortBy
GetCostCategoriesRequest & WithSortBy(Aws::Vector< SortDefinition > &&value)
Definition: GetCostCategoriesRequest.h:267
Aws::CostExplorer::Model::GetCostCategoriesRequest::SetSearchString
void SetSearchString(const Aws::String &value)
Definition: GetCostCategoriesRequest.h:69
Aws::CostExplorer::Model::GetCostCategoriesRequest::SetSortBy
void SetSortBy(const Aws::Vector< SortDefinition > &value)
Definition: GetCostCategoriesRequest.h:225
Aws::CostExplorer::Model::GetCostCategoriesRequest::WithSearchString
GetCostCategoriesRequest & WithSearchString(const char *value)
Definition: GetCostCategoriesRequest.h:119
Aws::CostExplorer::Model::GetCostCategoriesRequest::SetSortBy
void SetSortBy(Aws::Vector< SortDefinition > &&value)
Definition: GetCostCategoriesRequest.h:239
Aws::CostExplorer::Model::GetCostCategoriesRequest::GetCostCategoriesRequest
GetCostCategoriesRequest()
Aws
Definition: AccessManagementClient.h:15
Aws::CostExplorer::Model::GetCostCategoriesRequest::GetSortBy
const Aws::Vector< SortDefinition > & GetSortBy() const
Definition: GetCostCategoriesRequest.h:197
Aws::CostExplorer::Model::SortDefinition
Definition: SortDefinition.h:33
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CostExplorer::Model::GetCostCategoriesRequest::WithSortBy
GetCostCategoriesRequest & WithSortBy(const Aws::Vector< SortDefinition > &value)
Definition: GetCostCategoriesRequest.h:253
Aws::CostExplorer::Model::GetCostCategoriesRequest::GetMaxResults
int GetMaxResults() const
Definition: GetCostCategoriesRequest.h:306
Aws::CostExplorer::Model::GetCostCategoriesRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: GetCostCategoriesRequest.h:316
Expression.h
Aws::CostExplorer::Model::GetCostCategoriesRequest::NextPageTokenHasBeenSet
bool NextPageTokenHasBeenSet() const
Definition: GetCostCategoriesRequest.h:353
Aws::CostExplorer::Model::GetCostCategoriesRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::CostExplorer::Model::GetCostCategoriesRequest::CostCategoryNameHasBeenSet
bool CostCategoryNameHasBeenSet() const
Definition: GetCostCategoriesRequest.h:145
Aws::CostExplorer::Model::GetCostCategoriesRequest::GetSearchString
const Aws::String & GetSearchString() const
Definition: GetCostCategoriesRequest.h:49
Aws::CostExplorer::Model::GetCostCategoriesRequest::WithFilter
GetCostCategoriesRequest & WithFilter(const Expression &value)
Definition: GetCostCategoriesRequest.h:179
Aws::CostExplorer::Model::GetCostCategoriesRequest::SetSearchString
void SetSearchString(Aws::String &&value)
Definition: GetCostCategoriesRequest.h:79
Aws::CostExplorer::Model::GetCostCategoriesRequest::SetFilter
void SetFilter(Expression &&value)
Definition: GetCostCategoriesRequest.h:176
Aws::CostExplorer::Model::GetCostCategoriesRequest::WithCostCategoryName
GetCostCategoriesRequest & WithCostCategoryName(Aws::String &&value)
Definition: GetCostCategoriesRequest.h:160
Aws::CostExplorer::Model::GetCostCategoriesRequest::SortByHasBeenSet
bool SortByHasBeenSet() const
Definition: GetCostCategoriesRequest.h:211