AWS SDK for C++  1.9.1
AWS SDK for C++
GetTagsRequest.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 "GetTags"; }
35 
36  Aws::String SerializePayload() const override;
37 
39 
40 
44  inline const Aws::String& GetSearchString() const{ return m_searchString; }
45 
49  inline bool SearchStringHasBeenSet() const { return m_searchStringHasBeenSet; }
50 
54  inline void SetSearchString(const Aws::String& value) { m_searchStringHasBeenSet = true; m_searchString = value; }
55 
59  inline void SetSearchString(Aws::String&& value) { m_searchStringHasBeenSet = true; m_searchString = std::move(value); }
60 
64  inline void SetSearchString(const char* value) { m_searchStringHasBeenSet = true; m_searchString.assign(value); }
65 
69  inline GetTagsRequest& WithSearchString(const Aws::String& value) { SetSearchString(value); return *this;}
70 
74  inline GetTagsRequest& WithSearchString(Aws::String&& value) { SetSearchString(std::move(value)); return *this;}
75 
79  inline GetTagsRequest& WithSearchString(const char* value) { SetSearchString(value); return *this;}
80 
81 
89  inline const DateInterval& GetTimePeriod() const{ return m_timePeriod; }
90 
98  inline bool TimePeriodHasBeenSet() const { return m_timePeriodHasBeenSet; }
99 
107  inline void SetTimePeriod(const DateInterval& value) { m_timePeriodHasBeenSet = true; m_timePeriod = value; }
108 
116  inline void SetTimePeriod(DateInterval&& value) { m_timePeriodHasBeenSet = true; m_timePeriod = std::move(value); }
117 
125  inline GetTagsRequest& WithTimePeriod(const DateInterval& value) { SetTimePeriod(value); return *this;}
126 
134  inline GetTagsRequest& WithTimePeriod(DateInterval&& value) { SetTimePeriod(std::move(value)); return *this;}
135 
136 
140  inline const Aws::String& GetTagKey() const{ return m_tagKey; }
141 
145  inline bool TagKeyHasBeenSet() const { return m_tagKeyHasBeenSet; }
146 
150  inline void SetTagKey(const Aws::String& value) { m_tagKeyHasBeenSet = true; m_tagKey = value; }
151 
155  inline void SetTagKey(Aws::String&& value) { m_tagKeyHasBeenSet = true; m_tagKey = std::move(value); }
156 
160  inline void SetTagKey(const char* value) { m_tagKeyHasBeenSet = true; m_tagKey.assign(value); }
161 
165  inline GetTagsRequest& WithTagKey(const Aws::String& value) { SetTagKey(value); return *this;}
166 
170  inline GetTagsRequest& WithTagKey(Aws::String&& value) { SetTagKey(std::move(value)); return *this;}
171 
175  inline GetTagsRequest& WithTagKey(const char* value) { SetTagKey(value); return *this;}
176 
177 
178 
179  inline const Expression& GetFilter() const{ return m_filter; }
180 
181 
182  inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
183 
184 
185  inline void SetFilter(const Expression& value) { m_filterHasBeenSet = true; m_filter = value; }
186 
187 
188  inline void SetFilter(Expression&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
189 
190 
191  inline GetTagsRequest& WithFilter(const Expression& value) { SetFilter(value); return *this;}
192 
193 
194  inline GetTagsRequest& WithFilter(Expression&& value) { SetFilter(std::move(value)); return *this;}
195 
196 
209  inline const Aws::Vector<SortDefinition>& GetSortBy() const{ return m_sortBy; }
210 
223  inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
224 
237  inline void SetSortBy(const Aws::Vector<SortDefinition>& value) { m_sortByHasBeenSet = true; m_sortBy = value; }
238 
251  inline void SetSortBy(Aws::Vector<SortDefinition>&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); }
252 
265  inline GetTagsRequest& WithSortBy(const Aws::Vector<SortDefinition>& value) { SetSortBy(value); return *this;}
266 
279  inline GetTagsRequest& WithSortBy(Aws::Vector<SortDefinition>&& value) { SetSortBy(std::move(value)); return *this;}
280 
293  inline GetTagsRequest& AddSortBy(const SortDefinition& value) { m_sortByHasBeenSet = true; m_sortBy.push_back(value); return *this; }
294 
307  inline GetTagsRequest& AddSortBy(SortDefinition&& value) { m_sortByHasBeenSet = true; m_sortBy.push_back(std::move(value)); return *this; }
308 
309 
317  inline int GetMaxResults() const{ return m_maxResults; }
318 
326  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
327 
335  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
336 
344  inline GetTagsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
345 
346 
352  inline const Aws::String& GetNextPageToken() const{ return m_nextPageToken; }
353 
359  inline bool NextPageTokenHasBeenSet() const { return m_nextPageTokenHasBeenSet; }
360 
366  inline void SetNextPageToken(const Aws::String& value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken = value; }
367 
373  inline void SetNextPageToken(Aws::String&& value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken = std::move(value); }
374 
380  inline void SetNextPageToken(const char* value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken.assign(value); }
381 
387  inline GetTagsRequest& WithNextPageToken(const Aws::String& value) { SetNextPageToken(value); return *this;}
388 
394  inline GetTagsRequest& WithNextPageToken(Aws::String&& value) { SetNextPageToken(std::move(value)); return *this;}
395 
401  inline GetTagsRequest& 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_tagKey;
412  bool m_tagKeyHasBeenSet;
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::GetTagsRequest::SetSearchString
void SetSearchString(const Aws::String &value)
Definition: GetTagsRequest.h:54
Aws::CostExplorer::CostExplorerRequest
Definition: CostExplorerRequest.h:17
Aws::CostExplorer::Model::DateInterval
Definition: DateInterval.h:32
Aws::CostExplorer::Model::GetTagsRequest::WithSearchString
GetTagsRequest & WithSearchString(const Aws::String &value)
Definition: GetTagsRequest.h:69
Aws::CostExplorer::Model::GetTagsRequest::WithNextPageToken
GetTagsRequest & WithNextPageToken(const char *value)
Definition: GetTagsRequest.h:401
Aws::CostExplorer::Model::GetTagsRequest::SetTagKey
void SetTagKey(const char *value)
Definition: GetTagsRequest.h:160
Aws::CostExplorer::Model::GetTagsRequest::NextPageTokenHasBeenSet
bool NextPageTokenHasBeenSet() const
Definition: GetTagsRequest.h:359
Aws::CostExplorer::Model::GetTagsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: GetTagsRequest.h:326
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::CostExplorer::Model::GetTagsRequest::SetTagKey
void SetTagKey(const Aws::String &value)
Definition: GetTagsRequest.h:150
Aws::CostExplorer::Model::GetTagsRequest::WithMaxResults
GetTagsRequest & WithMaxResults(int value)
Definition: GetTagsRequest.h:344
Aws::CostExplorer::Model::GetTagsRequest::GetSearchString
const Aws::String & GetSearchString() const
Definition: GetTagsRequest.h:44
CostExplorerRequest.h
Aws::CostExplorer::Model::GetTagsRequest::WithSearchString
GetTagsRequest & WithSearchString(const char *value)
Definition: GetTagsRequest.h:79
Aws::CostExplorer::Model::GetTagsRequest::WithTimePeriod
GetTagsRequest & WithTimePeriod(DateInterval &&value)
Definition: GetTagsRequest.h:134
DateInterval.h
Aws::CostExplorer::Model::GetTagsRequest::WithFilter
GetTagsRequest & WithFilter(Expression &&value)
Definition: GetTagsRequest.h:194
Aws::CostExplorer::Model::GetTagsRequest::WithSortBy
GetTagsRequest & WithSortBy(const Aws::Vector< SortDefinition > &value)
Definition: GetTagsRequest.h:265
Aws::CostExplorer::Model::GetTagsRequest::WithTagKey
GetTagsRequest & WithTagKey(Aws::String &&value)
Definition: GetTagsRequest.h:170
Aws::CostExplorer::Model::Expression
Definition: Expression.h:69
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CostExplorer::Model::GetTagsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::CostExplorer::Model::GetTagsRequest::GetTimePeriod
const DateInterval & GetTimePeriod() const
Definition: GetTagsRequest.h:89
AWSVector.h
Aws::CostExplorer::Model::GetTagsRequest::WithSearchString
GetTagsRequest & WithSearchString(Aws::String &&value)
Definition: GetTagsRequest.h:74
Aws::CostExplorer::Model::GetTagsRequest::WithFilter
GetTagsRequest & WithFilter(const Expression &value)
Definition: GetTagsRequest.h:191
Aws::CostExplorer::Model::GetTagsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetTagsRequest.h:34
Aws::CostExplorer::Model::GetTagsRequest::GetMaxResults
int GetMaxResults() const
Definition: GetTagsRequest.h:317
Aws::CostExplorer::Model::GetTagsRequest::GetSortBy
const Aws::Vector< SortDefinition > & GetSortBy() const
Definition: GetTagsRequest.h:209
Aws::CostExplorer::Model::GetTagsRequest::SetNextPageToken
void SetNextPageToken(Aws::String &&value)
Definition: GetTagsRequest.h:373
Aws::CostExplorer::Model::GetTagsRequest::TagKeyHasBeenSet
bool TagKeyHasBeenSet() const
Definition: GetTagsRequest.h:145
SortDefinition.h
CostExplorer_EXPORTS.h
Aws::CostExplorer::Model::GetTagsRequest::WithTagKey
GetTagsRequest & WithTagKey(const char *value)
Definition: GetTagsRequest.h:175
Aws::CostExplorer::Model::GetTagsRequest::FilterHasBeenSet
bool FilterHasBeenSet() const
Definition: GetTagsRequest.h:182
Aws::CostExplorer::Model::GetTagsRequest::SetSearchString
void SetSearchString(const char *value)
Definition: GetTagsRequest.h:64
Aws::CostExplorer::Model::GetTagsRequest::SetNextPageToken
void SetNextPageToken(const char *value)
Definition: GetTagsRequest.h:380
Aws::CostExplorer::Model::GetTagsRequest::TimePeriodHasBeenSet
bool TimePeriodHasBeenSet() const
Definition: GetTagsRequest.h:98
Aws::CostExplorer::Model::GetTagsRequest::WithTimePeriod
GetTagsRequest & WithTimePeriod(const DateInterval &value)
Definition: GetTagsRequest.h:125
Aws::CostExplorer::Model::GetTagsRequest::AddSortBy
GetTagsRequest & AddSortBy(SortDefinition &&value)
Definition: GetTagsRequest.h:307
Aws::CostExplorer::Model::GetTagsRequest::GetTagKey
const Aws::String & GetTagKey() const
Definition: GetTagsRequest.h:140
Aws::CostExplorer::Model::GetTagsRequest::SetSortBy
void SetSortBy(Aws::Vector< SortDefinition > &&value)
Definition: GetTagsRequest.h:251
AWSString.h
Aws::CostExplorer::Model::GetTagsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: GetTagsRequest.h:335
Aws::CostExplorer::Model::GetTagsRequest::GetTagsRequest
GetTagsRequest()
Aws::CostExplorer::Model::GetTagsRequest::SetTimePeriod
void SetTimePeriod(DateInterval &&value)
Definition: GetTagsRequest.h:116
AWS_COSTEXPLORER_API
#define AWS_COSTEXPLORER_API
Definition: CostExplorer_EXPORTS.h:28
Aws::CostExplorer::Model::GetTagsRequest::WithSortBy
GetTagsRequest & WithSortBy(Aws::Vector< SortDefinition > &&value)
Definition: GetTagsRequest.h:279
Aws::CostExplorer::Model::GetTagsRequest::SortByHasBeenSet
bool SortByHasBeenSet() const
Definition: GetTagsRequest.h:223
Aws::CostExplorer::Model::GetTagsRequest::WithNextPageToken
GetTagsRequest & WithNextPageToken(const Aws::String &value)
Definition: GetTagsRequest.h:387
Aws::CostExplorer::Model::GetTagsRequest::SetNextPageToken
void SetNextPageToken(const Aws::String &value)
Definition: GetTagsRequest.h:366
Aws::CostExplorer::Model::GetTagsRequest::GetNextPageToken
const Aws::String & GetNextPageToken() const
Definition: GetTagsRequest.h:352
Aws
Definition: AccessManagementClient.h:15
Aws::CostExplorer::Model::GetTagsRequest::AddSortBy
GetTagsRequest & AddSortBy(const SortDefinition &value)
Definition: GetTagsRequest.h:293
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::GetTagsRequest::SearchStringHasBeenSet
bool SearchStringHasBeenSet() const
Definition: GetTagsRequest.h:49
Expression.h
Aws::CostExplorer::Model::GetTagsRequest::WithTagKey
GetTagsRequest & WithTagKey(const Aws::String &value)
Definition: GetTagsRequest.h:165
Aws::CostExplorer::Model::GetTagsRequest::SetFilter
void SetFilter(const Expression &value)
Definition: GetTagsRequest.h:185
Aws::CostExplorer::Model::GetTagsRequest::GetFilter
const Expression & GetFilter() const
Definition: GetTagsRequest.h:179
Aws::CostExplorer::Model::GetTagsRequest::SetSortBy
void SetSortBy(const Aws::Vector< SortDefinition > &value)
Definition: GetTagsRequest.h:237
Aws::CostExplorer::Model::GetTagsRequest::WithNextPageToken
GetTagsRequest & WithNextPageToken(Aws::String &&value)
Definition: GetTagsRequest.h:394
Aws::CostExplorer::Model::GetTagsRequest::SetSearchString
void SetSearchString(Aws::String &&value)
Definition: GetTagsRequest.h:59
Aws::CostExplorer::Model::GetTagsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CostExplorer::Model::GetTagsRequest::SetTagKey
void SetTagKey(Aws::String &&value)
Definition: GetTagsRequest.h:155
Aws::CostExplorer::Model::GetTagsRequest::SetFilter
void SetFilter(Expression &&value)
Definition: GetTagsRequest.h:188
Aws::CostExplorer::Model::GetTagsRequest::SetTimePeriod
void SetTimePeriod(const DateInterval &value)
Definition: GetTagsRequest.h:107
Aws::CostExplorer::Model::GetTagsRequest
Definition: GetTagsRequest.h:26