AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetReservationCoverageRequest.h
1
6#pragma once
7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/ce/CostExplorerRequest.h>
9#include <aws/ce/model/DateInterval.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ce/model/Granularity.h>
12#include <aws/ce/model/Expression.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/ce/model/SortDefinition.h>
15#include <aws/ce/model/GroupDefinition.h>
16#include <utility>
17
18namespace Aws
19{
20namespace CostExplorer
21{
22namespace Model
23{
24
32 {
33 public:
34 AWS_COSTEXPLORER_API GetReservationCoverageRequest();
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_COSTEXPLORER_API Aws::String SerializePayload() const override;
43
44 AWS_COSTEXPLORER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
45
46
48
57 inline const DateInterval& GetTimePeriod() const{ return m_timePeriod; }
58 inline bool TimePeriodHasBeenSet() const { return m_timePeriodHasBeenSet; }
59 inline void SetTimePeriod(const DateInterval& value) { m_timePeriodHasBeenSet = true; m_timePeriod = value; }
60 inline void SetTimePeriod(DateInterval&& value) { m_timePeriodHasBeenSet = true; m_timePeriod = std::move(value); }
61 inline GetReservationCoverageRequest& WithTimePeriod(const DateInterval& value) { SetTimePeriod(value); return *this;}
62 inline GetReservationCoverageRequest& WithTimePeriod(DateInterval&& value) { SetTimePeriod(std::move(value)); return *this;}
64
66
74 inline const Aws::Vector<GroupDefinition>& GetGroupBy() const{ return m_groupBy; }
75 inline bool GroupByHasBeenSet() const { return m_groupByHasBeenSet; }
76 inline void SetGroupBy(const Aws::Vector<GroupDefinition>& value) { m_groupByHasBeenSet = true; m_groupBy = value; }
77 inline void SetGroupBy(Aws::Vector<GroupDefinition>&& value) { m_groupByHasBeenSet = true; m_groupBy = std::move(value); }
79 inline GetReservationCoverageRequest& WithGroupBy(Aws::Vector<GroupDefinition>&& value) { SetGroupBy(std::move(value)); return *this;}
80 inline GetReservationCoverageRequest& AddGroupBy(const GroupDefinition& value) { m_groupByHasBeenSet = true; m_groupBy.push_back(value); return *this; }
81 inline GetReservationCoverageRequest& AddGroupBy(GroupDefinition&& value) { m_groupByHasBeenSet = true; m_groupBy.push_back(std::move(value)); return *this; }
83
85
94 inline const Granularity& GetGranularity() const{ return m_granularity; }
95 inline bool GranularityHasBeenSet() const { return m_granularityHasBeenSet; }
96 inline void SetGranularity(const Granularity& value) { m_granularityHasBeenSet = true; m_granularity = value; }
97 inline void SetGranularity(Granularity&& value) { m_granularityHasBeenSet = true; m_granularity = std::move(value); }
98 inline GetReservationCoverageRequest& WithGranularity(const Granularity& value) { SetGranularity(value); return *this;}
99 inline GetReservationCoverageRequest& WithGranularity(Granularity&& value) { SetGranularity(std::move(value)); return *this;}
101
103
118 inline const Expression& GetFilter() const{ return m_filter; }
119 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
120 inline void SetFilter(const Expression& value) { m_filterHasBeenSet = true; m_filter = value; }
121 inline void SetFilter(Expression&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
122 inline GetReservationCoverageRequest& WithFilter(const Expression& value) { SetFilter(value); return *this;}
123 inline GetReservationCoverageRequest& WithFilter(Expression&& value) { SetFilter(std::move(value)); return *this;}
125
127
132 inline const Aws::Vector<Aws::String>& GetMetrics() const{ return m_metrics; }
133 inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
134 inline void SetMetrics(const Aws::Vector<Aws::String>& value) { m_metricsHasBeenSet = true; m_metrics = value; }
135 inline void SetMetrics(Aws::Vector<Aws::String>&& value) { m_metricsHasBeenSet = true; m_metrics = std::move(value); }
137 inline GetReservationCoverageRequest& WithMetrics(Aws::Vector<Aws::String>&& value) { SetMetrics(std::move(value)); return *this;}
138 inline GetReservationCoverageRequest& AddMetrics(const Aws::String& value) { m_metricsHasBeenSet = true; m_metrics.push_back(value); return *this; }
139 inline GetReservationCoverageRequest& AddMetrics(Aws::String&& value) { m_metricsHasBeenSet = true; m_metrics.push_back(std::move(value)); return *this; }
140 inline GetReservationCoverageRequest& AddMetrics(const char* value) { m_metricsHasBeenSet = true; m_metrics.push_back(value); return *this; }
142
144
149 inline const Aws::String& GetNextPageToken() const{ return m_nextPageToken; }
150 inline bool NextPageTokenHasBeenSet() const { return m_nextPageTokenHasBeenSet; }
151 inline void SetNextPageToken(const Aws::String& value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken = value; }
152 inline void SetNextPageToken(Aws::String&& value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken = std::move(value); }
153 inline void SetNextPageToken(const char* value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken.assign(value); }
155 inline GetReservationCoverageRequest& WithNextPageToken(Aws::String&& value) { SetNextPageToken(std::move(value)); return *this;}
156 inline GetReservationCoverageRequest& WithNextPageToken(const char* value) { SetNextPageToken(value); return *this;}
158
160
173 inline const SortDefinition& GetSortBy() const{ return m_sortBy; }
174 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
175 inline void SetSortBy(const SortDefinition& value) { m_sortByHasBeenSet = true; m_sortBy = value; }
176 inline void SetSortBy(SortDefinition&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); }
177 inline GetReservationCoverageRequest& WithSortBy(const SortDefinition& value) { SetSortBy(value); return *this;}
178 inline GetReservationCoverageRequest& WithSortBy(SortDefinition&& value) { SetSortBy(std::move(value)); return *this;}
180
182
188 inline int GetMaxResults() const{ return m_maxResults; }
189 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
190 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
191 inline GetReservationCoverageRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
193 private:
194
195 DateInterval m_timePeriod;
196 bool m_timePeriodHasBeenSet = false;
197
199 bool m_groupByHasBeenSet = false;
200
201 Granularity m_granularity;
202 bool m_granularityHasBeenSet = false;
203
204 Expression m_filter;
205 bool m_filterHasBeenSet = false;
206
207 Aws::Vector<Aws::String> m_metrics;
208 bool m_metricsHasBeenSet = false;
209
210 Aws::String m_nextPageToken;
211 bool m_nextPageTokenHasBeenSet = false;
212
213 SortDefinition m_sortBy;
214 bool m_sortByHasBeenSet = false;
215
216 int m_maxResults;
217 bool m_maxResultsHasBeenSet = false;
218 };
219
220} // namespace Model
221} // namespace CostExplorer
222} // namespace Aws
GetReservationCoverageRequest & AddMetrics(const Aws::String &value)
void SetGroupBy(const Aws::Vector< GroupDefinition > &value)
GetReservationCoverageRequest & WithMetrics(Aws::Vector< Aws::String > &&value)
GetReservationCoverageRequest & WithGroupBy(const Aws::Vector< GroupDefinition > &value)
GetReservationCoverageRequest & WithTimePeriod(const DateInterval &value)
GetReservationCoverageRequest & WithGranularity(Granularity &&value)
GetReservationCoverageRequest & AddMetrics(const char *value)
GetReservationCoverageRequest & WithGroupBy(Aws::Vector< GroupDefinition > &&value)
GetReservationCoverageRequest & WithFilter(const Expression &value)
GetReservationCoverageRequest & AddGroupBy(const GroupDefinition &value)
GetReservationCoverageRequest & AddGroupBy(GroupDefinition &&value)
GetReservationCoverageRequest & WithNextPageToken(Aws::String &&value)
GetReservationCoverageRequest & WithNextPageToken(const Aws::String &value)
GetReservationCoverageRequest & WithFilter(Expression &&value)
GetReservationCoverageRequest & WithTimePeriod(DateInterval &&value)
AWS_COSTEXPLORER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_COSTEXPLORER_API Aws::String SerializePayload() const override
GetReservationCoverageRequest & WithNextPageToken(const char *value)
GetReservationCoverageRequest & WithMetrics(const Aws::Vector< Aws::String > &value)
GetReservationCoverageRequest & WithSortBy(SortDefinition &&value)
const Aws::Vector< GroupDefinition > & GetGroupBy() const
GetReservationCoverageRequest & WithGranularity(const Granularity &value)
GetReservationCoverageRequest & WithSortBy(const SortDefinition &value)
GetReservationCoverageRequest & AddMetrics(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector