AWS SDK for C++  1.9.1
AWS SDK for C++
GetSavingsPlansCoverageRequest.h
Go to the documentation of this file.
1 
6 #pragma once
16 #include <utility>
17 
18 namespace Aws
19 {
20 namespace CostExplorer
21 {
22 namespace Model
23 {
24 
28  {
29  public:
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 "GetSavingsPlansCoverage"; }
37 
38  Aws::String SerializePayload() const override;
39 
41 
42 
49  inline const DateInterval& GetTimePeriod() const{ return m_timePeriod; }
50 
57  inline bool TimePeriodHasBeenSet() const { return m_timePeriodHasBeenSet; }
58 
65  inline void SetTimePeriod(const DateInterval& value) { m_timePeriodHasBeenSet = true; m_timePeriod = value; }
66 
73  inline void SetTimePeriod(DateInterval&& value) { m_timePeriodHasBeenSet = true; m_timePeriod = std::move(value); }
74 
81  inline GetSavingsPlansCoverageRequest& WithTimePeriod(const DateInterval& value) { SetTimePeriod(value); return *this;}
82 
89  inline GetSavingsPlansCoverageRequest& WithTimePeriod(DateInterval&& value) { SetTimePeriod(std::move(value)); return *this;}
90 
91 
96  inline const Aws::Vector<GroupDefinition>& GetGroupBy() const{ return m_groupBy; }
97 
102  inline bool GroupByHasBeenSet() const { return m_groupByHasBeenSet; }
103 
108  inline void SetGroupBy(const Aws::Vector<GroupDefinition>& value) { m_groupByHasBeenSet = true; m_groupBy = value; }
109 
114  inline void SetGroupBy(Aws::Vector<GroupDefinition>&& value) { m_groupByHasBeenSet = true; m_groupBy = std::move(value); }
115 
120  inline GetSavingsPlansCoverageRequest& WithGroupBy(const Aws::Vector<GroupDefinition>& value) { SetGroupBy(value); return *this;}
121 
126  inline GetSavingsPlansCoverageRequest& WithGroupBy(Aws::Vector<GroupDefinition>&& value) { SetGroupBy(std::move(value)); return *this;}
127 
132  inline GetSavingsPlansCoverageRequest& AddGroupBy(const GroupDefinition& value) { m_groupByHasBeenSet = true; m_groupBy.push_back(value); return *this; }
133 
138  inline GetSavingsPlansCoverageRequest& AddGroupBy(GroupDefinition&& value) { m_groupByHasBeenSet = true; m_groupBy.push_back(std::move(value)); return *this; }
139 
140 
147  inline const Granularity& GetGranularity() const{ return m_granularity; }
148 
155  inline bool GranularityHasBeenSet() const { return m_granularityHasBeenSet; }
156 
163  inline void SetGranularity(const Granularity& value) { m_granularityHasBeenSet = true; m_granularity = value; }
164 
171  inline void SetGranularity(Granularity&& value) { m_granularityHasBeenSet = true; m_granularity = std::move(value); }
172 
179  inline GetSavingsPlansCoverageRequest& WithGranularity(const Granularity& value) { SetGranularity(value); return *this;}
180 
187  inline GetSavingsPlansCoverageRequest& WithGranularity(Granularity&& value) { SetGranularity(std::move(value)); return *this;}
188 
189 
201  inline const Expression& GetFilter() const{ return m_filter; }
202 
214  inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
215 
227  inline void SetFilter(const Expression& value) { m_filterHasBeenSet = true; m_filter = value; }
228 
240  inline void SetFilter(Expression&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
241 
253  inline GetSavingsPlansCoverageRequest& WithFilter(const Expression& value) { SetFilter(value); return *this;}
254 
266  inline GetSavingsPlansCoverageRequest& WithFilter(Expression&& value) { SetFilter(std::move(value)); return *this;}
267 
268 
273  inline const Aws::Vector<Aws::String>& GetMetrics() const{ return m_metrics; }
274 
279  inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
280 
285  inline void SetMetrics(const Aws::Vector<Aws::String>& value) { m_metricsHasBeenSet = true; m_metrics = value; }
286 
291  inline void SetMetrics(Aws::Vector<Aws::String>&& value) { m_metricsHasBeenSet = true; m_metrics = std::move(value); }
292 
297  inline GetSavingsPlansCoverageRequest& WithMetrics(const Aws::Vector<Aws::String>& value) { SetMetrics(value); return *this;}
298 
303  inline GetSavingsPlansCoverageRequest& WithMetrics(Aws::Vector<Aws::String>&& value) { SetMetrics(std::move(value)); return *this;}
304 
309  inline GetSavingsPlansCoverageRequest& AddMetrics(const Aws::String& value) { m_metricsHasBeenSet = true; m_metrics.push_back(value); return *this; }
310 
315  inline GetSavingsPlansCoverageRequest& AddMetrics(Aws::String&& value) { m_metricsHasBeenSet = true; m_metrics.push_back(std::move(value)); return *this; }
316 
321  inline GetSavingsPlansCoverageRequest& AddMetrics(const char* value) { m_metricsHasBeenSet = true; m_metrics.push_back(value); return *this; }
322 
323 
329  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
330 
336  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
337 
343  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
344 
350  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
351 
357  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
358 
364  inline GetSavingsPlansCoverageRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
365 
371  inline GetSavingsPlansCoverageRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
372 
378  inline GetSavingsPlansCoverageRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
379 
380 
385  inline int GetMaxResults() const{ return m_maxResults; }
386 
391  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
392 
397  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
398 
403  inline GetSavingsPlansCoverageRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
404 
405 
417  inline const SortDefinition& GetSortBy() const{ return m_sortBy; }
418 
430  inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
431 
443  inline void SetSortBy(const SortDefinition& value) { m_sortByHasBeenSet = true; m_sortBy = value; }
444 
456  inline void SetSortBy(SortDefinition&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); }
457 
469  inline GetSavingsPlansCoverageRequest& WithSortBy(const SortDefinition& value) { SetSortBy(value); return *this;}
470 
482  inline GetSavingsPlansCoverageRequest& WithSortBy(SortDefinition&& value) { SetSortBy(std::move(value)); return *this;}
483 
484  private:
485 
486  DateInterval m_timePeriod;
487  bool m_timePeriodHasBeenSet;
488 
490  bool m_groupByHasBeenSet;
491 
492  Granularity m_granularity;
493  bool m_granularityHasBeenSet;
494 
495  Expression m_filter;
496  bool m_filterHasBeenSet;
497 
498  Aws::Vector<Aws::String> m_metrics;
499  bool m_metricsHasBeenSet;
500 
501  Aws::String m_nextToken;
502  bool m_nextTokenHasBeenSet;
503 
504  int m_maxResults;
505  bool m_maxResultsHasBeenSet;
506 
507  SortDefinition m_sortBy;
508  bool m_sortByHasBeenSet;
509  };
510 
511 } // namespace Model
512 } // namespace CostExplorer
513 } // namespace Aws
Aws::CostExplorer::CostExplorerRequest
Definition: CostExplorerRequest.h:17
Aws::CostExplorer::Model::DateInterval
Definition: DateInterval.h:32
Aws::CostExplorer::Model::GetSavingsPlansCoverageRequest::SetFilter
void SetFilter(const Expression &value)
Definition: GetSavingsPlansCoverageRequest.h:227
Aws::CostExplorer::Model::GetSavingsPlansCoverageRequest::GetMaxResults
int GetMaxResults() const
Definition: GetSavingsPlansCoverageRequest.h:385
Aws::CostExplorer::Model::GetSavingsPlansCoverageRequest::SetMetrics
void SetMetrics(Aws::Vector< Aws::String > &&value)
Definition: GetSavingsPlansCoverageRequest.h:291
Aws::CostExplorer::Model::GetSavingsPlansCoverageRequest::WithGranularity
GetSavingsPlansCoverageRequest & WithGranularity(Granularity &&value)
Definition: GetSavingsPlansCoverageRequest.h:187
Aws::CostExplorer::Model::Granularity
Granularity
Definition: Granularity.h:17
Aws::CostExplorer::Model::GetSavingsPlansCoverageRequest::WithFilter
GetSavingsPlansCoverageRequest & WithFilter(Expression &&value)
Definition: GetSavingsPlansCoverageRequest.h:266
Aws::CostExplorer::Model::GetSavingsPlansCoverageRequest::SetMaxResults
void SetMaxResults(int value)
Definition: GetSavingsPlansCoverageRequest.h:397
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::CostExplorer::Model::GetSavingsPlansCoverageRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: GetSavingsPlansCoverageRequest.h:391
Aws::CostExplorer::Model::GetSavingsPlansCoverageRequest::WithMetrics
GetSavingsPlansCoverageRequest & WithMetrics(const Aws::Vector< Aws::String > &value)
Definition: GetSavingsPlansCoverageRequest.h:297
Aws::CostExplorer::Model::GetSavingsPlansCoverageRequest::AddMetrics
GetSavingsPlansCoverageRequest & AddMetrics(Aws::String &&value)
Definition: GetSavingsPlansCoverageRequest.h:315
Aws::CostExplorer::Model::GetSavingsPlansCoverageRequest::GetFilter
const Expression & GetFilter() const
Definition: GetSavingsPlansCoverageRequest.h:201
Aws::CostExplorer::Model::GetSavingsPlansCoverageRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: GetSavingsPlansCoverageRequest.h:343
Aws::CostExplorer::Model::GetSavingsPlansCoverageRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::CostExplorer::Model::GetSavingsPlansCoverageRequest::TimePeriodHasBeenSet
bool TimePeriodHasBeenSet() const
Definition: GetSavingsPlansCoverageRequest.h:57
CostExplorerRequest.h
Aws::CostExplorer::Model::GetSavingsPlansCoverageRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: GetSavingsPlansCoverageRequest.h:329
Aws::CostExplorer::Model::GetSavingsPlansCoverageRequest::FilterHasBeenSet
bool FilterHasBeenSet() const
Definition: GetSavingsPlansCoverageRequest.h:214
Aws::CostExplorer::Model::GetSavingsPlansCoverageRequest::SetSortBy
void SetSortBy(SortDefinition &&value)
Definition: GetSavingsPlansCoverageRequest.h:456
DateInterval.h
Aws::CostExplorer::Model::GetSavingsPlansCoverageRequest::SetNextToken
void SetNextToken(const char *value)
Definition: GetSavingsPlansCoverageRequest.h:357
Aws::CostExplorer::Model::Expression
Definition: Expression.h:69
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CostExplorer::Model::GetSavingsPlansCoverageRequest::SetFilter
void SetFilter(Expression &&value)
Definition: GetSavingsPlansCoverageRequest.h:240
Aws::CostExplorer::Model::GetSavingsPlansCoverageRequest::GetSortBy
const SortDefinition & GetSortBy() const
Definition: GetSavingsPlansCoverageRequest.h:417
Aws::CostExplorer::Model::GetSavingsPlansCoverageRequest::WithFilter
GetSavingsPlansCoverageRequest & WithFilter(const Expression &value)
Definition: GetSavingsPlansCoverageRequest.h:253
Aws::CostExplorer::Model::GetSavingsPlansCoverageRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: GetSavingsPlansCoverageRequest.h:350
AWSVector.h
Aws::CostExplorer::Model::GetSavingsPlansCoverageRequest::WithGroupBy
GetSavingsPlansCoverageRequest & WithGroupBy(Aws::Vector< GroupDefinition > &&value)
Definition: GetSavingsPlansCoverageRequest.h:126
Aws::CostExplorer::Model::GetSavingsPlansCoverageRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CostExplorer::Model::GroupDefinition
Definition: GroupDefinition.h:34
Aws::CostExplorer::Model::GetSavingsPlansCoverageRequest::WithMetrics
GetSavingsPlansCoverageRequest & WithMetrics(Aws::Vector< Aws::String > &&value)
Definition: GetSavingsPlansCoverageRequest.h:303
SortDefinition.h
Aws::CostExplorer::Model::GetSavingsPlansCoverageRequest::WithSortBy
GetSavingsPlansCoverageRequest & WithSortBy(const SortDefinition &value)
Definition: GetSavingsPlansCoverageRequest.h:469
CostExplorer_EXPORTS.h
Aws::CostExplorer::Model::GetSavingsPlansCoverageRequest::AddGroupBy
GetSavingsPlansCoverageRequest & AddGroupBy(GroupDefinition &&value)
Definition: GetSavingsPlansCoverageRequest.h:138
Aws::CostExplorer::Model::GetSavingsPlansCoverageRequest::WithTimePeriod
GetSavingsPlansCoverageRequest & WithTimePeriod(DateInterval &&value)
Definition: GetSavingsPlansCoverageRequest.h:89
Aws::CostExplorer::Model::GetSavingsPlansCoverageRequest::GranularityHasBeenSet
bool GranularityHasBeenSet() const
Definition: GetSavingsPlansCoverageRequest.h:155
Aws::CostExplorer::Model::GetSavingsPlansCoverageRequest::GetTimePeriod
const DateInterval & GetTimePeriod() const
Definition: GetSavingsPlansCoverageRequest.h:49
Aws::CostExplorer::Model::GetSavingsPlansCoverageRequest::GroupByHasBeenSet
bool GroupByHasBeenSet() const
Definition: GetSavingsPlansCoverageRequest.h:102
Aws::CostExplorer::Model::GetSavingsPlansCoverageRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetSavingsPlansCoverageRequest.h:36
Aws::CostExplorer::Model::GetSavingsPlansCoverageRequest::MetricsHasBeenSet
bool MetricsHasBeenSet() const
Definition: GetSavingsPlansCoverageRequest.h:279
Aws::CostExplorer::Model::GetSavingsPlansCoverageRequest::WithGranularity
GetSavingsPlansCoverageRequest & WithGranularity(const Granularity &value)
Definition: GetSavingsPlansCoverageRequest.h:179
AWSString.h
Aws::CostExplorer::Model::GetSavingsPlansCoverageRequest::SetSortBy
void SetSortBy(const SortDefinition &value)
Definition: GetSavingsPlansCoverageRequest.h:443
Aws::CostExplorer::Model::GetSavingsPlansCoverageRequest::GetMetrics
const Aws::Vector< Aws::String > & GetMetrics() const
Definition: GetSavingsPlansCoverageRequest.h:273
Aws::CostExplorer::Model::GetSavingsPlansCoverageRequest::SetTimePeriod
void SetTimePeriod(const DateInterval &value)
Definition: GetSavingsPlansCoverageRequest.h:65
AWS_COSTEXPLORER_API
#define AWS_COSTEXPLORER_API
Definition: CostExplorer_EXPORTS.h:28
Aws::CostExplorer::Model::GetSavingsPlansCoverageRequest::SortByHasBeenSet
bool SortByHasBeenSet() const
Definition: GetSavingsPlansCoverageRequest.h:430
Aws::CostExplorer::Model::GetSavingsPlansCoverageRequest::WithSortBy
GetSavingsPlansCoverageRequest & WithSortBy(SortDefinition &&value)
Definition: GetSavingsPlansCoverageRequest.h:482
Aws::CostExplorer::Model::GetSavingsPlansCoverageRequest::SetMetrics
void SetMetrics(const Aws::Vector< Aws::String > &value)
Definition: GetSavingsPlansCoverageRequest.h:285
Aws::CostExplorer::Model::GetSavingsPlansCoverageRequest::WithMaxResults
GetSavingsPlansCoverageRequest & WithMaxResults(int value)
Definition: GetSavingsPlansCoverageRequest.h:403
Aws::CostExplorer::Model::GetSavingsPlansCoverageRequest::WithGroupBy
GetSavingsPlansCoverageRequest & WithGroupBy(const Aws::Vector< GroupDefinition > &value)
Definition: GetSavingsPlansCoverageRequest.h:120
Aws::CostExplorer::Model::GetSavingsPlansCoverageRequest::SetTimePeriod
void SetTimePeriod(DateInterval &&value)
Definition: GetSavingsPlansCoverageRequest.h:73
Aws::CostExplorer::Model::GetSavingsPlansCoverageRequest::AddMetrics
GetSavingsPlansCoverageRequest & AddMetrics(const Aws::String &value)
Definition: GetSavingsPlansCoverageRequest.h:309
Aws
Definition: AccessManagementClient.h:15
Aws::CostExplorer::Model::GetSavingsPlansCoverageRequest::AddGroupBy
GetSavingsPlansCoverageRequest & AddGroupBy(const GroupDefinition &value)
Definition: GetSavingsPlansCoverageRequest.h:132
GroupDefinition.h
Aws::CostExplorer::Model::GetSavingsPlansCoverageRequest
Definition: GetSavingsPlansCoverageRequest.h:28
Aws::CostExplorer::Model::SortDefinition
Definition: SortDefinition.h:33
Aws::CostExplorer::Model::GetSavingsPlansCoverageRequest::SetGroupBy
void SetGroupBy(const Aws::Vector< GroupDefinition > &value)
Definition: GetSavingsPlansCoverageRequest.h:108
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Expression.h
Aws::CostExplorer::Model::GetSavingsPlansCoverageRequest::GetSavingsPlansCoverageRequest
GetSavingsPlansCoverageRequest()
Aws::CostExplorer::Model::GetSavingsPlansCoverageRequest::WithTimePeriod
GetSavingsPlansCoverageRequest & WithTimePeriod(const DateInterval &value)
Definition: GetSavingsPlansCoverageRequest.h:81
Aws::CostExplorer::Model::GetSavingsPlansCoverageRequest::SetGranularity
void SetGranularity(Granularity &&value)
Definition: GetSavingsPlansCoverageRequest.h:171
Aws::CostExplorer::Model::GetSavingsPlansCoverageRequest::GetGroupBy
const Aws::Vector< GroupDefinition > & GetGroupBy() const
Definition: GetSavingsPlansCoverageRequest.h:96
Aws::CostExplorer::Model::GetSavingsPlansCoverageRequest::WithNextToken
GetSavingsPlansCoverageRequest & WithNextToken(const Aws::String &value)
Definition: GetSavingsPlansCoverageRequest.h:364
Aws::CostExplorer::Model::GetSavingsPlansCoverageRequest::AddMetrics
GetSavingsPlansCoverageRequest & AddMetrics(const char *value)
Definition: GetSavingsPlansCoverageRequest.h:321
Aws::CostExplorer::Model::GetSavingsPlansCoverageRequest::WithNextToken
GetSavingsPlansCoverageRequest & WithNextToken(Aws::String &&value)
Definition: GetSavingsPlansCoverageRequest.h:371
Aws::CostExplorer::Model::GetSavingsPlansCoverageRequest::SetGranularity
void SetGranularity(const Granularity &value)
Definition: GetSavingsPlansCoverageRequest.h:163
Aws::CostExplorer::Model::GetSavingsPlansCoverageRequest::WithNextToken
GetSavingsPlansCoverageRequest & WithNextToken(const char *value)
Definition: GetSavingsPlansCoverageRequest.h:378
Aws::CostExplorer::Model::GetSavingsPlansCoverageRequest::SetGroupBy
void SetGroupBy(Aws::Vector< GroupDefinition > &&value)
Definition: GetSavingsPlansCoverageRequest.h:114
Granularity.h
Aws::CostExplorer::Model::GetSavingsPlansCoverageRequest::GetGranularity
const Granularity & GetGranularity() const
Definition: GetSavingsPlansCoverageRequest.h:147
Aws::CostExplorer::Model::GetSavingsPlansCoverageRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: GetSavingsPlansCoverageRequest.h:336