AWS SDK for C++  1.9.1
AWS SDK for C++
GetReservationCoverageRequest.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 
32  {
33  public:
35 
36  // Service request name is the Operation name which will send this request out,
37  // each operation should has unique request name, so that we can get operation's name from this request.
38  // Note: this is not true for response, multiple operations may have the same response name,
39  // so we can not get operation's name from response.
40  inline virtual const char* GetServiceRequestName() const override { return "GetReservationCoverage"; }
41 
42  Aws::String SerializePayload() const override;
43 
45 
46 
56  inline const DateInterval& GetTimePeriod() const{ return m_timePeriod; }
57 
67  inline bool TimePeriodHasBeenSet() const { return m_timePeriodHasBeenSet; }
68 
78  inline void SetTimePeriod(const DateInterval& value) { m_timePeriodHasBeenSet = true; m_timePeriod = value; }
79 
89  inline void SetTimePeriod(DateInterval&& value) { m_timePeriodHasBeenSet = true; m_timePeriod = std::move(value); }
90 
100  inline GetReservationCoverageRequest& WithTimePeriod(const DateInterval& value) { SetTimePeriod(value); return *this;}
101 
111  inline GetReservationCoverageRequest& WithTimePeriod(DateInterval&& value) { SetTimePeriod(std::move(value)); return *this;}
112 
113 
121  inline const Aws::Vector<GroupDefinition>& GetGroupBy() const{ return m_groupBy; }
122 
130  inline bool GroupByHasBeenSet() const { return m_groupByHasBeenSet; }
131 
139  inline void SetGroupBy(const Aws::Vector<GroupDefinition>& value) { m_groupByHasBeenSet = true; m_groupBy = value; }
140 
148  inline void SetGroupBy(Aws::Vector<GroupDefinition>&& value) { m_groupByHasBeenSet = true; m_groupBy = std::move(value); }
149 
157  inline GetReservationCoverageRequest& WithGroupBy(const Aws::Vector<GroupDefinition>& value) { SetGroupBy(value); return *this;}
158 
166  inline GetReservationCoverageRequest& WithGroupBy(Aws::Vector<GroupDefinition>&& value) { SetGroupBy(std::move(value)); return *this;}
167 
175  inline GetReservationCoverageRequest& AddGroupBy(const GroupDefinition& value) { m_groupByHasBeenSet = true; m_groupBy.push_back(value); return *this; }
176 
184  inline GetReservationCoverageRequest& AddGroupBy(GroupDefinition&& value) { m_groupByHasBeenSet = true; m_groupBy.push_back(std::move(value)); return *this; }
185 
186 
196  inline const Granularity& GetGranularity() const{ return m_granularity; }
197 
207  inline bool GranularityHasBeenSet() const { return m_granularityHasBeenSet; }
208 
218  inline void SetGranularity(const Granularity& value) { m_granularityHasBeenSet = true; m_granularity = value; }
219 
229  inline void SetGranularity(Granularity&& value) { m_granularityHasBeenSet = true; m_granularity = std::move(value); }
230 
240  inline GetReservationCoverageRequest& WithGranularity(const Granularity& value) { SetGranularity(value); return *this;}
241 
251  inline GetReservationCoverageRequest& WithGranularity(Granularity&& value) { SetGranularity(std::move(value)); return *this;}
252 
253 
269  inline const Expression& GetFilter() const{ return m_filter; }
270 
286  inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
287 
303  inline void SetFilter(const Expression& value) { m_filterHasBeenSet = true; m_filter = value; }
304 
320  inline void SetFilter(Expression&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
321 
337  inline GetReservationCoverageRequest& WithFilter(const Expression& value) { SetFilter(value); return *this;}
338 
354  inline GetReservationCoverageRequest& WithFilter(Expression&& value) { SetFilter(std::move(value)); return *this;}
355 
356 
362  inline const Aws::Vector<Aws::String>& GetMetrics() const{ return m_metrics; }
363 
369  inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
370 
376  inline void SetMetrics(const Aws::Vector<Aws::String>& value) { m_metricsHasBeenSet = true; m_metrics = value; }
377 
383  inline void SetMetrics(Aws::Vector<Aws::String>&& value) { m_metricsHasBeenSet = true; m_metrics = std::move(value); }
384 
390  inline GetReservationCoverageRequest& WithMetrics(const Aws::Vector<Aws::String>& value) { SetMetrics(value); return *this;}
391 
397  inline GetReservationCoverageRequest& WithMetrics(Aws::Vector<Aws::String>&& value) { SetMetrics(std::move(value)); return *this;}
398 
404  inline GetReservationCoverageRequest& AddMetrics(const Aws::String& value) { m_metricsHasBeenSet = true; m_metrics.push_back(value); return *this; }
405 
411  inline GetReservationCoverageRequest& AddMetrics(Aws::String&& value) { m_metricsHasBeenSet = true; m_metrics.push_back(std::move(value)); return *this; }
412 
418  inline GetReservationCoverageRequest& AddMetrics(const char* value) { m_metricsHasBeenSet = true; m_metrics.push_back(value); return *this; }
419 
420 
426  inline const Aws::String& GetNextPageToken() const{ return m_nextPageToken; }
427 
433  inline bool NextPageTokenHasBeenSet() const { return m_nextPageTokenHasBeenSet; }
434 
440  inline void SetNextPageToken(const Aws::String& value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken = value; }
441 
447  inline void SetNextPageToken(Aws::String&& value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken = std::move(value); }
448 
454  inline void SetNextPageToken(const char* value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken.assign(value); }
455 
461  inline GetReservationCoverageRequest& WithNextPageToken(const Aws::String& value) { SetNextPageToken(value); return *this;}
462 
468  inline GetReservationCoverageRequest& WithNextPageToken(Aws::String&& value) { SetNextPageToken(std::move(value)); return *this;}
469 
475  inline GetReservationCoverageRequest& WithNextPageToken(const char* value) { SetNextPageToken(value); return *this;}
476 
477 
491  inline const SortDefinition& GetSortBy() const{ return m_sortBy; }
492 
506  inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
507 
521  inline void SetSortBy(const SortDefinition& value) { m_sortByHasBeenSet = true; m_sortBy = value; }
522 
536  inline void SetSortBy(SortDefinition&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); }
537 
551  inline GetReservationCoverageRequest& WithSortBy(const SortDefinition& value) { SetSortBy(value); return *this;}
552 
566  inline GetReservationCoverageRequest& WithSortBy(SortDefinition&& value) { SetSortBy(std::move(value)); return *this;}
567 
568 
574  inline int GetMaxResults() const{ return m_maxResults; }
575 
581  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
582 
588  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
589 
595  inline GetReservationCoverageRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
596 
597  private:
598 
599  DateInterval m_timePeriod;
600  bool m_timePeriodHasBeenSet;
601 
603  bool m_groupByHasBeenSet;
604 
605  Granularity m_granularity;
606  bool m_granularityHasBeenSet;
607 
608  Expression m_filter;
609  bool m_filterHasBeenSet;
610 
611  Aws::Vector<Aws::String> m_metrics;
612  bool m_metricsHasBeenSet;
613 
614  Aws::String m_nextPageToken;
615  bool m_nextPageTokenHasBeenSet;
616 
617  SortDefinition m_sortBy;
618  bool m_sortByHasBeenSet;
619 
620  int m_maxResults;
621  bool m_maxResultsHasBeenSet;
622  };
623 
624 } // namespace Model
625 } // namespace CostExplorer
626 } // namespace Aws
Aws::CostExplorer::CostExplorerRequest
Definition: CostExplorerRequest.h:17
Aws::CostExplorer::Model::DateInterval
Definition: DateInterval.h:32
Aws::CostExplorer::Model::GetReservationCoverageRequest::WithMetrics
GetReservationCoverageRequest & WithMetrics(const Aws::Vector< Aws::String > &value)
Definition: GetReservationCoverageRequest.h:390
Aws::CostExplorer::Model::GetReservationCoverageRequest::SetGranularity
void SetGranularity(const Granularity &value)
Definition: GetReservationCoverageRequest.h:218
Aws::CostExplorer::Model::Granularity
Granularity
Definition: Granularity.h:17
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::CostExplorer::Model::GetReservationCoverageRequest::GetGranularity
const Granularity & GetGranularity() const
Definition: GetReservationCoverageRequest.h:196
Aws::CostExplorer::Model::GetReservationCoverageRequest::GetTimePeriod
const DateInterval & GetTimePeriod() const
Definition: GetReservationCoverageRequest.h:56
Aws::CostExplorer::Model::GetReservationCoverageRequest::FilterHasBeenSet
bool FilterHasBeenSet() const
Definition: GetReservationCoverageRequest.h:286
Aws::CostExplorer::Model::GetReservationCoverageRequest::SetFilter
void SetFilter(const Expression &value)
Definition: GetReservationCoverageRequest.h:303
Aws::CostExplorer::Model::GetReservationCoverageRequest::AddMetrics
GetReservationCoverageRequest & AddMetrics(const Aws::String &value)
Definition: GetReservationCoverageRequest.h:404
Aws::CostExplorer::Model::GetReservationCoverageRequest::AddGroupBy
GetReservationCoverageRequest & AddGroupBy(const GroupDefinition &value)
Definition: GetReservationCoverageRequest.h:175
Aws::CostExplorer::Model::GetReservationCoverageRequest::WithTimePeriod
GetReservationCoverageRequest & WithTimePeriod(const DateInterval &value)
Definition: GetReservationCoverageRequest.h:100
Aws::CostExplorer::Model::GetReservationCoverageRequest::WithFilter
GetReservationCoverageRequest & WithFilter(Expression &&value)
Definition: GetReservationCoverageRequest.h:354
Aws::CostExplorer::Model::GetReservationCoverageRequest::WithGranularity
GetReservationCoverageRequest & WithGranularity(const Granularity &value)
Definition: GetReservationCoverageRequest.h:240
Aws::CostExplorer::Model::GetReservationCoverageRequest::SetGroupBy
void SetGroupBy(Aws::Vector< GroupDefinition > &&value)
Definition: GetReservationCoverageRequest.h:148
CostExplorerRequest.h
Aws::CostExplorer::Model::GetReservationCoverageRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetReservationCoverageRequest.h:40
Aws::CostExplorer::Model::GetReservationCoverageRequest::WithNextPageToken
GetReservationCoverageRequest & WithNextPageToken(const Aws::String &value)
Definition: GetReservationCoverageRequest.h:461
Aws::CostExplorer::Model::GetReservationCoverageRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: GetReservationCoverageRequest.h:581
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::GetReservationCoverageRequest::GetGroupBy
const Aws::Vector< GroupDefinition > & GetGroupBy() const
Definition: GetReservationCoverageRequest.h:121
AWSVector.h
Aws::CostExplorer::Model::GetReservationCoverageRequest::WithNextPageToken
GetReservationCoverageRequest & WithNextPageToken(const char *value)
Definition: GetReservationCoverageRequest.h:475
Aws::CostExplorer::Model::GetReservationCoverageRequest::SetSortBy
void SetSortBy(const SortDefinition &value)
Definition: GetReservationCoverageRequest.h:521
Aws::CostExplorer::Model::GetReservationCoverageRequest::GetFilter
const Expression & GetFilter() const
Definition: GetReservationCoverageRequest.h:269
Aws::CostExplorer::Model::GetReservationCoverageRequest::WithGranularity
GetReservationCoverageRequest & WithGranularity(Granularity &&value)
Definition: GetReservationCoverageRequest.h:251
Aws::CostExplorer::Model::GroupDefinition
Definition: GroupDefinition.h:34
Aws::CostExplorer::Model::GetReservationCoverageRequest::GranularityHasBeenSet
bool GranularityHasBeenSet() const
Definition: GetReservationCoverageRequest.h:207
Aws::CostExplorer::Model::GetReservationCoverageRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::CostExplorer::Model::GetReservationCoverageRequest::GetReservationCoverageRequest
GetReservationCoverageRequest()
SortDefinition.h
Aws::CostExplorer::Model::GetReservationCoverageRequest::TimePeriodHasBeenSet
bool TimePeriodHasBeenSet() const
Definition: GetReservationCoverageRequest.h:67
CostExplorer_EXPORTS.h
Aws::CostExplorer::Model::GetReservationCoverageRequest::SortByHasBeenSet
bool SortByHasBeenSet() const
Definition: GetReservationCoverageRequest.h:506
Aws::CostExplorer::Model::GetReservationCoverageRequest::SetMaxResults
void SetMaxResults(int value)
Definition: GetReservationCoverageRequest.h:588
Aws::CostExplorer::Model::GetReservationCoverageRequest::WithGroupBy
GetReservationCoverageRequest & WithGroupBy(Aws::Vector< GroupDefinition > &&value)
Definition: GetReservationCoverageRequest.h:166
Aws::CostExplorer::Model::GetReservationCoverageRequest::AddGroupBy
GetReservationCoverageRequest & AddGroupBy(GroupDefinition &&value)
Definition: GetReservationCoverageRequest.h:184
Aws::CostExplorer::Model::GetReservationCoverageRequest::SetSortBy
void SetSortBy(SortDefinition &&value)
Definition: GetReservationCoverageRequest.h:536
Aws::CostExplorer::Model::GetReservationCoverageRequest::SetFilter
void SetFilter(Expression &&value)
Definition: GetReservationCoverageRequest.h:320
Aws::CostExplorer::Model::GetReservationCoverageRequest::WithSortBy
GetReservationCoverageRequest & WithSortBy(SortDefinition &&value)
Definition: GetReservationCoverageRequest.h:566
Aws::CostExplorer::Model::GetReservationCoverageRequest::SetNextPageToken
void SetNextPageToken(const Aws::String &value)
Definition: GetReservationCoverageRequest.h:440
Aws::CostExplorer::Model::GetReservationCoverageRequest::SetGranularity
void SetGranularity(Granularity &&value)
Definition: GetReservationCoverageRequest.h:229
Aws::CostExplorer::Model::GetReservationCoverageRequest::WithTimePeriod
GetReservationCoverageRequest & WithTimePeriod(DateInterval &&value)
Definition: GetReservationCoverageRequest.h:111
Aws::CostExplorer::Model::GetReservationCoverageRequest::GetMaxResults
int GetMaxResults() const
Definition: GetReservationCoverageRequest.h:574
Aws::CostExplorer::Model::GetReservationCoverageRequest::GetSortBy
const SortDefinition & GetSortBy() const
Definition: GetReservationCoverageRequest.h:491
AWSString.h
Aws::CostExplorer::Model::GetReservationCoverageRequest::SetMetrics
void SetMetrics(const Aws::Vector< Aws::String > &value)
Definition: GetReservationCoverageRequest.h:376
AWS_COSTEXPLORER_API
#define AWS_COSTEXPLORER_API
Definition: CostExplorer_EXPORTS.h:28
Aws::CostExplorer::Model::GetReservationCoverageRequest::SetTimePeriod
void SetTimePeriod(DateInterval &&value)
Definition: GetReservationCoverageRequest.h:89
Aws::CostExplorer::Model::GetReservationCoverageRequest::SetMetrics
void SetMetrics(Aws::Vector< Aws::String > &&value)
Definition: GetReservationCoverageRequest.h:383
Aws::CostExplorer::Model::GetReservationCoverageRequest::SetNextPageToken
void SetNextPageToken(const char *value)
Definition: GetReservationCoverageRequest.h:454
Aws::CostExplorer::Model::GetReservationCoverageRequest::GroupByHasBeenSet
bool GroupByHasBeenSet() const
Definition: GetReservationCoverageRequest.h:130
Aws::CostExplorer::Model::GetReservationCoverageRequest::WithMaxResults
GetReservationCoverageRequest & WithMaxResults(int value)
Definition: GetReservationCoverageRequest.h:595
Aws
Definition: AccessManagementClient.h:15
Aws::CostExplorer::Model::GetReservationCoverageRequest::WithSortBy
GetReservationCoverageRequest & WithSortBy(const SortDefinition &value)
Definition: GetReservationCoverageRequest.h:551
GroupDefinition.h
Aws::CostExplorer::Model::GetReservationCoverageRequest::NextPageTokenHasBeenSet
bool NextPageTokenHasBeenSet() const
Definition: GetReservationCoverageRequest.h:433
Aws::CostExplorer::Model::GetReservationCoverageRequest
Definition: GetReservationCoverageRequest.h:32
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::GetReservationCoverageRequest::SetTimePeriod
void SetTimePeriod(const DateInterval &value)
Definition: GetReservationCoverageRequest.h:78
Expression.h
Aws::CostExplorer::Model::GetReservationCoverageRequest::WithNextPageToken
GetReservationCoverageRequest & WithNextPageToken(Aws::String &&value)
Definition: GetReservationCoverageRequest.h:468
Aws::CostExplorer::Model::GetReservationCoverageRequest::GetMetrics
const Aws::Vector< Aws::String > & GetMetrics() const
Definition: GetReservationCoverageRequest.h:362
Aws::CostExplorer::Model::GetReservationCoverageRequest::WithGroupBy
GetReservationCoverageRequest & WithGroupBy(const Aws::Vector< GroupDefinition > &value)
Definition: GetReservationCoverageRequest.h:157
Aws::CostExplorer::Model::GetReservationCoverageRequest::SetGroupBy
void SetGroupBy(const Aws::Vector< GroupDefinition > &value)
Definition: GetReservationCoverageRequest.h:139
Aws::CostExplorer::Model::GetReservationCoverageRequest::MetricsHasBeenSet
bool MetricsHasBeenSet() const
Definition: GetReservationCoverageRequest.h:369
Aws::CostExplorer::Model::GetReservationCoverageRequest::AddMetrics
GetReservationCoverageRequest & AddMetrics(const char *value)
Definition: GetReservationCoverageRequest.h:418
Aws::CostExplorer::Model::GetReservationCoverageRequest::GetNextPageToken
const Aws::String & GetNextPageToken() const
Definition: GetReservationCoverageRequest.h:426
Aws::CostExplorer::Model::GetReservationCoverageRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CostExplorer::Model::GetReservationCoverageRequest::WithFilter
GetReservationCoverageRequest & WithFilter(const Expression &value)
Definition: GetReservationCoverageRequest.h:337
Aws::CostExplorer::Model::GetReservationCoverageRequest::AddMetrics
GetReservationCoverageRequest & AddMetrics(Aws::String &&value)
Definition: GetReservationCoverageRequest.h:411
Granularity.h
Aws::CostExplorer::Model::GetReservationCoverageRequest::WithMetrics
GetReservationCoverageRequest & WithMetrics(Aws::Vector< Aws::String > &&value)
Definition: GetReservationCoverageRequest.h:397
Aws::CostExplorer::Model::GetReservationCoverageRequest::SetNextPageToken
void SetNextPageToken(Aws::String &&value)
Definition: GetReservationCoverageRequest.h:447