AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetSavingsPlansCoverageRequest.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
28 {
29 public:
30 AWS_COSTEXPLORER_API GetSavingsPlansCoverageRequest();
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_COSTEXPLORER_API Aws::String SerializePayload() const override;
39
40 AWS_COSTEXPLORER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
41
42
44
50 inline const DateInterval& GetTimePeriod() const{ return m_timePeriod; }
51 inline bool TimePeriodHasBeenSet() const { return m_timePeriodHasBeenSet; }
52 inline void SetTimePeriod(const DateInterval& value) { m_timePeriodHasBeenSet = true; m_timePeriod = value; }
53 inline void SetTimePeriod(DateInterval&& value) { m_timePeriodHasBeenSet = true; m_timePeriod = std::move(value); }
54 inline GetSavingsPlansCoverageRequest& WithTimePeriod(const DateInterval& value) { SetTimePeriod(value); return *this;}
55 inline GetSavingsPlansCoverageRequest& WithTimePeriod(DateInterval&& value) { SetTimePeriod(std::move(value)); return *this;}
57
59
63 inline const Aws::Vector<GroupDefinition>& GetGroupBy() const{ return m_groupBy; }
64 inline bool GroupByHasBeenSet() const { return m_groupByHasBeenSet; }
65 inline void SetGroupBy(const Aws::Vector<GroupDefinition>& value) { m_groupByHasBeenSet = true; m_groupBy = value; }
66 inline void SetGroupBy(Aws::Vector<GroupDefinition>&& value) { m_groupByHasBeenSet = true; m_groupBy = std::move(value); }
68 inline GetSavingsPlansCoverageRequest& WithGroupBy(Aws::Vector<GroupDefinition>&& value) { SetGroupBy(std::move(value)); return *this;}
69 inline GetSavingsPlansCoverageRequest& AddGroupBy(const GroupDefinition& value) { m_groupByHasBeenSet = true; m_groupBy.push_back(value); return *this; }
70 inline GetSavingsPlansCoverageRequest& AddGroupBy(GroupDefinition&& value) { m_groupByHasBeenSet = true; m_groupBy.push_back(std::move(value)); return *this; }
72
74
80 inline const Granularity& GetGranularity() const{ return m_granularity; }
81 inline bool GranularityHasBeenSet() const { return m_granularityHasBeenSet; }
82 inline void SetGranularity(const Granularity& value) { m_granularityHasBeenSet = true; m_granularity = value; }
83 inline void SetGranularity(Granularity&& value) { m_granularityHasBeenSet = true; m_granularity = std::move(value); }
84 inline GetSavingsPlansCoverageRequest& WithGranularity(const Granularity& value) { SetGranularity(value); return *this;}
85 inline GetSavingsPlansCoverageRequest& WithGranularity(Granularity&& value) { SetGranularity(std::move(value)); return *this;}
87
89
100 inline const Expression& GetFilter() const{ return m_filter; }
101 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
102 inline void SetFilter(const Expression& value) { m_filterHasBeenSet = true; m_filter = value; }
103 inline void SetFilter(Expression&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
104 inline GetSavingsPlansCoverageRequest& WithFilter(const Expression& value) { SetFilter(value); return *this;}
105 inline GetSavingsPlansCoverageRequest& WithFilter(Expression&& value) { SetFilter(std::move(value)); return *this;}
107
109
113 inline const Aws::Vector<Aws::String>& GetMetrics() const{ return m_metrics; }
114 inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
115 inline void SetMetrics(const Aws::Vector<Aws::String>& value) { m_metricsHasBeenSet = true; m_metrics = value; }
116 inline void SetMetrics(Aws::Vector<Aws::String>&& value) { m_metricsHasBeenSet = true; m_metrics = std::move(value); }
118 inline GetSavingsPlansCoverageRequest& WithMetrics(Aws::Vector<Aws::String>&& value) { SetMetrics(std::move(value)); return *this;}
119 inline GetSavingsPlansCoverageRequest& AddMetrics(const Aws::String& value) { m_metricsHasBeenSet = true; m_metrics.push_back(value); return *this; }
120 inline GetSavingsPlansCoverageRequest& AddMetrics(Aws::String&& value) { m_metricsHasBeenSet = true; m_metrics.push_back(std::move(value)); return *this; }
121 inline GetSavingsPlansCoverageRequest& AddMetrics(const char* value) { m_metricsHasBeenSet = true; m_metrics.push_back(value); return *this; }
123
125
130 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
131 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
132 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
133 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
134 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
135 inline GetSavingsPlansCoverageRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
136 inline GetSavingsPlansCoverageRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
137 inline GetSavingsPlansCoverageRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
139
141
145 inline int GetMaxResults() const{ return m_maxResults; }
146 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
147 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
148 inline GetSavingsPlansCoverageRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
150
152
163 inline const SortDefinition& GetSortBy() const{ return m_sortBy; }
164 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
165 inline void SetSortBy(const SortDefinition& value) { m_sortByHasBeenSet = true; m_sortBy = value; }
166 inline void SetSortBy(SortDefinition&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); }
167 inline GetSavingsPlansCoverageRequest& WithSortBy(const SortDefinition& value) { SetSortBy(value); return *this;}
168 inline GetSavingsPlansCoverageRequest& WithSortBy(SortDefinition&& value) { SetSortBy(std::move(value)); return *this;}
170 private:
171
172 DateInterval m_timePeriod;
173 bool m_timePeriodHasBeenSet = false;
174
176 bool m_groupByHasBeenSet = false;
177
178 Granularity m_granularity;
179 bool m_granularityHasBeenSet = false;
180
181 Expression m_filter;
182 bool m_filterHasBeenSet = false;
183
184 Aws::Vector<Aws::String> m_metrics;
185 bool m_metricsHasBeenSet = false;
186
187 Aws::String m_nextToken;
188 bool m_nextTokenHasBeenSet = false;
189
190 int m_maxResults;
191 bool m_maxResultsHasBeenSet = false;
192
193 SortDefinition m_sortBy;
194 bool m_sortByHasBeenSet = false;
195 };
196
197} // namespace Model
198} // namespace CostExplorer
199} // namespace Aws
AWS_COSTEXPLORER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetSavingsPlansCoverageRequest & WithFilter(Expression &&value)
GetSavingsPlansCoverageRequest & WithSortBy(const SortDefinition &value)
GetSavingsPlansCoverageRequest & WithTimePeriod(DateInterval &&value)
GetSavingsPlansCoverageRequest & AddMetrics(const Aws::String &value)
GetSavingsPlansCoverageRequest & WithGroupBy(Aws::Vector< GroupDefinition > &&value)
GetSavingsPlansCoverageRequest & AddMetrics(const char *value)
GetSavingsPlansCoverageRequest & WithTimePeriod(const DateInterval &value)
GetSavingsPlansCoverageRequest & AddGroupBy(GroupDefinition &&value)
GetSavingsPlansCoverageRequest & WithMetrics(Aws::Vector< Aws::String > &&value)
GetSavingsPlansCoverageRequest & AddGroupBy(const GroupDefinition &value)
GetSavingsPlansCoverageRequest & WithNextToken(const Aws::String &value)
GetSavingsPlansCoverageRequest & WithMetrics(const Aws::Vector< Aws::String > &value)
void SetGroupBy(const Aws::Vector< GroupDefinition > &value)
GetSavingsPlansCoverageRequest & AddMetrics(Aws::String &&value)
GetSavingsPlansCoverageRequest & WithGranularity(const Granularity &value)
GetSavingsPlansCoverageRequest & WithNextToken(const char *value)
GetSavingsPlansCoverageRequest & WithFilter(const Expression &value)
GetSavingsPlansCoverageRequest & WithNextToken(Aws::String &&value)
GetSavingsPlansCoverageRequest & WithSortBy(SortDefinition &&value)
GetSavingsPlansCoverageRequest & WithGroupBy(const Aws::Vector< GroupDefinition > &value)
GetSavingsPlansCoverageRequest & WithGranularity(Granularity &&value)
AWS_COSTEXPLORER_API Aws::String SerializePayload() const override
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