AWS SDK for C++  1.8.153
AWS SDK for C++
GetReservationUtilizationRequest.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 "GetReservationUtilization"; }
37 
38  Aws::String SerializePayload() const override;
39 
41 
42 
51  inline const DateInterval& GetTimePeriod() const{ return m_timePeriod; }
52 
61  inline bool TimePeriodHasBeenSet() const { return m_timePeriodHasBeenSet; }
62 
71  inline void SetTimePeriod(const DateInterval& value) { m_timePeriodHasBeenSet = true; m_timePeriod = value; }
72 
81  inline void SetTimePeriod(DateInterval&& value) { m_timePeriodHasBeenSet = true; m_timePeriod = std::move(value); }
82 
91  inline GetReservationUtilizationRequest& WithTimePeriod(const DateInterval& value) { SetTimePeriod(value); return *this;}
92 
101  inline GetReservationUtilizationRequest& WithTimePeriod(DateInterval&& value) { SetTimePeriod(std::move(value)); return *this;}
102 
103 
107  inline const Aws::Vector<GroupDefinition>& GetGroupBy() const{ return m_groupBy; }
108 
112  inline bool GroupByHasBeenSet() const { return m_groupByHasBeenSet; }
113 
117  inline void SetGroupBy(const Aws::Vector<GroupDefinition>& value) { m_groupByHasBeenSet = true; m_groupBy = value; }
118 
122  inline void SetGroupBy(Aws::Vector<GroupDefinition>&& value) { m_groupByHasBeenSet = true; m_groupBy = std::move(value); }
123 
127  inline GetReservationUtilizationRequest& WithGroupBy(const Aws::Vector<GroupDefinition>& value) { SetGroupBy(value); return *this;}
128 
132  inline GetReservationUtilizationRequest& WithGroupBy(Aws::Vector<GroupDefinition>&& value) { SetGroupBy(std::move(value)); return *this;}
133 
137  inline GetReservationUtilizationRequest& AddGroupBy(const GroupDefinition& value) { m_groupByHasBeenSet = true; m_groupBy.push_back(value); return *this; }
138 
142  inline GetReservationUtilizationRequest& AddGroupBy(GroupDefinition&& value) { m_groupByHasBeenSet = true; m_groupBy.push_back(std::move(value)); return *this; }
143 
144 
154  inline const Granularity& GetGranularity() const{ return m_granularity; }
155 
165  inline bool GranularityHasBeenSet() const { return m_granularityHasBeenSet; }
166 
176  inline void SetGranularity(const Granularity& value) { m_granularityHasBeenSet = true; m_granularity = value; }
177 
187  inline void SetGranularity(Granularity&& value) { m_granularityHasBeenSet = true; m_granularity = std::move(value); }
188 
198  inline GetReservationUtilizationRequest& WithGranularity(const Granularity& value) { SetGranularity(value); return *this;}
199 
209  inline GetReservationUtilizationRequest& WithGranularity(Granularity&& value) { SetGranularity(std::move(value)); return *this;}
210 
211 
225  inline const Expression& GetFilter() const{ return m_filter; }
226 
240  inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
241 
255  inline void SetFilter(const Expression& value) { m_filterHasBeenSet = true; m_filter = value; }
256 
270  inline void SetFilter(Expression&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
271 
285  inline GetReservationUtilizationRequest& WithFilter(const Expression& value) { SetFilter(value); return *this;}
286 
300  inline GetReservationUtilizationRequest& WithFilter(Expression&& value) { SetFilter(std::move(value)); return *this;}
301 
302 
323  inline const SortDefinition& GetSortBy() const{ return m_sortBy; }
324 
345  inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
346 
367  inline void SetSortBy(const SortDefinition& value) { m_sortByHasBeenSet = true; m_sortBy = value; }
368 
389  inline void SetSortBy(SortDefinition&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); }
390 
411  inline GetReservationUtilizationRequest& WithSortBy(const SortDefinition& value) { SetSortBy(value); return *this;}
412 
433  inline GetReservationUtilizationRequest& WithSortBy(SortDefinition&& value) { SetSortBy(std::move(value)); return *this;}
434 
435 
441  inline const Aws::String& GetNextPageToken() const{ return m_nextPageToken; }
442 
448  inline bool NextPageTokenHasBeenSet() const { return m_nextPageTokenHasBeenSet; }
449 
455  inline void SetNextPageToken(const Aws::String& value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken = value; }
456 
462  inline void SetNextPageToken(Aws::String&& value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken = std::move(value); }
463 
469  inline void SetNextPageToken(const char* value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken.assign(value); }
470 
476  inline GetReservationUtilizationRequest& WithNextPageToken(const Aws::String& value) { SetNextPageToken(value); return *this;}
477 
483  inline GetReservationUtilizationRequest& WithNextPageToken(Aws::String&& value) { SetNextPageToken(std::move(value)); return *this;}
484 
490  inline GetReservationUtilizationRequest& WithNextPageToken(const char* value) { SetNextPageToken(value); return *this;}
491 
492 
498  inline int GetMaxResults() const{ return m_maxResults; }
499 
505  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
506 
512  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
513 
519  inline GetReservationUtilizationRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
520 
521  private:
522 
523  DateInterval m_timePeriod;
524  bool m_timePeriodHasBeenSet;
525 
527  bool m_groupByHasBeenSet;
528 
529  Granularity m_granularity;
530  bool m_granularityHasBeenSet;
531 
532  Expression m_filter;
533  bool m_filterHasBeenSet;
534 
535  SortDefinition m_sortBy;
536  bool m_sortByHasBeenSet;
537 
538  Aws::String m_nextPageToken;
539  bool m_nextPageTokenHasBeenSet;
540 
541  int m_maxResults;
542  bool m_maxResultsHasBeenSet;
543  };
544 
545 } // namespace Model
546 } // namespace CostExplorer
547 } // namespace Aws
Aws::CostExplorer::Model::GetReservationUtilizationRequest::SetNextPageToken
void SetNextPageToken(const char *value)
Definition: GetReservationUtilizationRequest.h:469
Aws::CostExplorer::Model::GetReservationUtilizationRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: GetReservationUtilizationRequest.h:505
Aws::CostExplorer::Model::GetReservationUtilizationRequest::SetSortBy
void SetSortBy(SortDefinition &&value)
Definition: GetReservationUtilizationRequest.h:389
Aws::CostExplorer::CostExplorerRequest
Definition: CostExplorerRequest.h:17
Aws::CostExplorer::Model::DateInterval
Definition: DateInterval.h:32
Aws::CostExplorer::Model::GetReservationUtilizationRequest::SetTimePeriod
void SetTimePeriod(const DateInterval &value)
Definition: GetReservationUtilizationRequest.h:71
Aws::CostExplorer::Model::Granularity
Granularity
Definition: Granularity.h:17
Aws::CostExplorer::Model::GetReservationUtilizationRequest::GroupByHasBeenSet
bool GroupByHasBeenSet() const
Definition: GetReservationUtilizationRequest.h:112
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::CostExplorer::Model::GetReservationUtilizationRequest::SetNextPageToken
void SetNextPageToken(const Aws::String &value)
Definition: GetReservationUtilizationRequest.h:455
Aws::CostExplorer::Model::GetReservationUtilizationRequest::SetSortBy
void SetSortBy(const SortDefinition &value)
Definition: GetReservationUtilizationRequest.h:367
Aws::CostExplorer::Model::GetReservationUtilizationRequest::GetNextPageToken
const Aws::String & GetNextPageToken() const
Definition: GetReservationUtilizationRequest.h:441
Aws::CostExplorer::Model::GetReservationUtilizationRequest::WithFilter
GetReservationUtilizationRequest & WithFilter(Expression &&value)
Definition: GetReservationUtilizationRequest.h:300
Aws::CostExplorer::Model::GetReservationUtilizationRequest::SortByHasBeenSet
bool SortByHasBeenSet() const
Definition: GetReservationUtilizationRequest.h:345
Aws::CostExplorer::Model::GetReservationUtilizationRequest::SetGranularity
void SetGranularity(const Granularity &value)
Definition: GetReservationUtilizationRequest.h:176
Aws::CostExplorer::Model::GetReservationUtilizationRequest::AddGroupBy
GetReservationUtilizationRequest & AddGroupBy(const GroupDefinition &value)
Definition: GetReservationUtilizationRequest.h:137
Aws::CostExplorer::Model::GetReservationUtilizationRequest::WithSortBy
GetReservationUtilizationRequest & WithSortBy(const SortDefinition &value)
Definition: GetReservationUtilizationRequest.h:411
CostExplorerRequest.h
Aws::CostExplorer::Model::GetReservationUtilizationRequest::WithTimePeriod
GetReservationUtilizationRequest & WithTimePeriod(const DateInterval &value)
Definition: GetReservationUtilizationRequest.h:91
Aws::CostExplorer::Model::GetReservationUtilizationRequest::WithNextPageToken
GetReservationUtilizationRequest & WithNextPageToken(Aws::String &&value)
Definition: GetReservationUtilizationRequest.h:483
Aws::CostExplorer::Model::GetReservationUtilizationRequest::SetMaxResults
void SetMaxResults(int value)
Definition: GetReservationUtilizationRequest.h:512
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::GetReservationUtilizationRequest::FilterHasBeenSet
bool FilterHasBeenSet() const
Definition: GetReservationUtilizationRequest.h:240
Aws::CostExplorer::Model::GetReservationUtilizationRequest::SetFilter
void SetFilter(Expression &&value)
Definition: GetReservationUtilizationRequest.h:270
Aws::CostExplorer::Model::GetReservationUtilizationRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetReservationUtilizationRequest.h:36
Aws::CostExplorer::Model::GetReservationUtilizationRequest::WithNextPageToken
GetReservationUtilizationRequest & WithNextPageToken(const Aws::String &value)
Definition: GetReservationUtilizationRequest.h:476
AWSVector.h
Aws::CostExplorer::Model::GroupDefinition
Definition: GroupDefinition.h:34
Aws::CostExplorer::Model::GetReservationUtilizationRequest
Definition: GetReservationUtilizationRequest.h:28
SortDefinition.h
CostExplorer_EXPORTS.h
Aws::CostExplorer::Model::GetReservationUtilizationRequest::GetTimePeriod
const DateInterval & GetTimePeriod() const
Definition: GetReservationUtilizationRequest.h:51
Aws::CostExplorer::Model::GetReservationUtilizationRequest::WithMaxResults
GetReservationUtilizationRequest & WithMaxResults(int value)
Definition: GetReservationUtilizationRequest.h:519
Aws::CostExplorer::Model::GetReservationUtilizationRequest::SetGranularity
void SetGranularity(Granularity &&value)
Definition: GetReservationUtilizationRequest.h:187
Aws::CostExplorer::Model::GetReservationUtilizationRequest::SetGroupBy
void SetGroupBy(Aws::Vector< GroupDefinition > &&value)
Definition: GetReservationUtilizationRequest.h:122
Aws::CostExplorer::Model::GetReservationUtilizationRequest::WithTimePeriod
GetReservationUtilizationRequest & WithTimePeriod(DateInterval &&value)
Definition: GetReservationUtilizationRequest.h:101
Aws::CostExplorer::Model::GetReservationUtilizationRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::CostExplorer::Model::GetReservationUtilizationRequest::TimePeriodHasBeenSet
bool TimePeriodHasBeenSet() const
Definition: GetReservationUtilizationRequest.h:61
Aws::CostExplorer::Model::GetReservationUtilizationRequest::SetNextPageToken
void SetNextPageToken(Aws::String &&value)
Definition: GetReservationUtilizationRequest.h:462
AWSString.h
Aws::CostExplorer::Model::GetReservationUtilizationRequest::WithFilter
GetReservationUtilizationRequest & WithFilter(const Expression &value)
Definition: GetReservationUtilizationRequest.h:285
Aws::CostExplorer::Model::GetReservationUtilizationRequest::GetMaxResults
int GetMaxResults() const
Definition: GetReservationUtilizationRequest.h:498
Aws::CostExplorer::Model::GetReservationUtilizationRequest::AddGroupBy
GetReservationUtilizationRequest & AddGroupBy(GroupDefinition &&value)
Definition: GetReservationUtilizationRequest.h:142
AWS_COSTEXPLORER_API
#define AWS_COSTEXPLORER_API
Definition: CostExplorer_EXPORTS.h:28
Aws::CostExplorer::Model::GetReservationUtilizationRequest::SetFilter
void SetFilter(const Expression &value)
Definition: GetReservationUtilizationRequest.h:255
Aws::CostExplorer::Model::GetReservationUtilizationRequest::WithGroupBy
GetReservationUtilizationRequest & WithGroupBy(Aws::Vector< GroupDefinition > &&value)
Definition: GetReservationUtilizationRequest.h:132
Aws::CostExplorer::Model::GetReservationUtilizationRequest::SetTimePeriod
void SetTimePeriod(DateInterval &&value)
Definition: GetReservationUtilizationRequest.h:81
Aws::CostExplorer::Model::GetReservationUtilizationRequest::WithNextPageToken
GetReservationUtilizationRequest & WithNextPageToken(const char *value)
Definition: GetReservationUtilizationRequest.h:490
Aws::CostExplorer::Model::GetReservationUtilizationRequest::GetSortBy
const SortDefinition & GetSortBy() const
Definition: GetReservationUtilizationRequest.h:323
Aws::CostExplorer::Model::GetReservationUtilizationRequest::SerializePayload
Aws::String SerializePayload() const override
Aws
Definition: AccessManagementClient.h:15
GroupDefinition.h
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::GetReservationUtilizationRequest::GetGranularity
const Granularity & GetGranularity() const
Definition: GetReservationUtilizationRequest.h:154
Expression.h
Aws::CostExplorer::Model::GetReservationUtilizationRequest::NextPageTokenHasBeenSet
bool NextPageTokenHasBeenSet() const
Definition: GetReservationUtilizationRequest.h:448
Aws::CostExplorer::Model::GetReservationUtilizationRequest::GetFilter
const Expression & GetFilter() const
Definition: GetReservationUtilizationRequest.h:225
Aws::CostExplorer::Model::GetReservationUtilizationRequest::WithGroupBy
GetReservationUtilizationRequest & WithGroupBy(const Aws::Vector< GroupDefinition > &value)
Definition: GetReservationUtilizationRequest.h:127
Aws::CostExplorer::Model::GetReservationUtilizationRequest::GetGroupBy
const Aws::Vector< GroupDefinition > & GetGroupBy() const
Definition: GetReservationUtilizationRequest.h:107
Aws::CostExplorer::Model::GetReservationUtilizationRequest::WithGranularity
GetReservationUtilizationRequest & WithGranularity(Granularity &&value)
Definition: GetReservationUtilizationRequest.h:209
Aws::CostExplorer::Model::GetReservationUtilizationRequest::WithGranularity
GetReservationUtilizationRequest & WithGranularity(const Granularity &value)
Definition: GetReservationUtilizationRequest.h:198
Aws::CostExplorer::Model::GetReservationUtilizationRequest::GetReservationUtilizationRequest
GetReservationUtilizationRequest()
Aws::CostExplorer::Model::GetReservationUtilizationRequest::GranularityHasBeenSet
bool GranularityHasBeenSet() const
Definition: GetReservationUtilizationRequest.h:165
Aws::CostExplorer::Model::GetReservationUtilizationRequest::SetGroupBy
void SetGroupBy(const Aws::Vector< GroupDefinition > &value)
Definition: GetReservationUtilizationRequest.h:117
Granularity.h
Aws::CostExplorer::Model::GetReservationUtilizationRequest::WithSortBy
GetReservationUtilizationRequest & WithSortBy(SortDefinition &&value)
Definition: GetReservationUtilizationRequest.h:433