AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
GetUsageForecastRequest.h
1
6#pragma once
7#include <aws/ce/CostExplorerRequest.h>
8#include <aws/ce/CostExplorer_EXPORTS.h>
9#include <aws/ce/model/DateInterval.h>
10#include <aws/ce/model/Expression.h>
11#include <aws/ce/model/Granularity.h>
12#include <aws/ce/model/Metric.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14
15#include <utility>
16
17namespace Aws {
18namespace CostExplorer {
19namespace Model {
20
24 public:
25 AWS_COSTEXPLORER_API GetUsageForecastRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "GetUsageForecast"; }
32
33 AWS_COSTEXPLORER_API Aws::String SerializePayload() const override;
34
35 AWS_COSTEXPLORER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
38
48 inline const DateInterval& GetTimePeriod() const { return m_timePeriod; }
49 inline bool TimePeriodHasBeenSet() const { return m_timePeriodHasBeenSet; }
50 template <typename TimePeriodT = DateInterval>
51 void SetTimePeriod(TimePeriodT&& value) {
52 m_timePeriodHasBeenSet = true;
53 m_timePeriod = std::forward<TimePeriodT>(value);
54 }
55 template <typename TimePeriodT = DateInterval>
57 SetTimePeriod(std::forward<TimePeriodT>(value));
58 return *this;
59 }
61
63
68 inline Metric GetMetric() const { return m_metric; }
69 inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
70 inline void SetMetric(Metric value) {
71 m_metricHasBeenSet = true;
72 m_metric = value;
73 }
75 SetMetric(value);
76 return *this;
77 }
79
81
87 inline Granularity GetGranularity() const { return m_granularity; }
88 inline bool GranularityHasBeenSet() const { return m_granularityHasBeenSet; }
89 inline void SetGranularity(Granularity value) {
90 m_granularityHasBeenSet = true;
91 m_granularity = value;
92 }
94 SetGranularity(value);
95 return *this;
96 }
98
100
119 inline const Expression& GetFilter() const { return m_filter; }
120 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
121 template <typename FilterT = Expression>
122 void SetFilter(FilterT&& value) {
123 m_filterHasBeenSet = true;
124 m_filter = std::forward<FilterT>(value);
125 }
126 template <typename FilterT = Expression>
128 SetFilter(std::forward<FilterT>(value));
129 return *this;
130 }
132
134
141 inline const Aws::String& GetBillingViewArn() const { return m_billingViewArn; }
142 inline bool BillingViewArnHasBeenSet() const { return m_billingViewArnHasBeenSet; }
143 template <typename BillingViewArnT = Aws::String>
144 void SetBillingViewArn(BillingViewArnT&& value) {
145 m_billingViewArnHasBeenSet = true;
146 m_billingViewArn = std::forward<BillingViewArnT>(value);
147 }
148 template <typename BillingViewArnT = Aws::String>
149 GetUsageForecastRequest& WithBillingViewArn(BillingViewArnT&& value) {
150 SetBillingViewArn(std::forward<BillingViewArnT>(value));
151 return *this;
152 }
154
156
163 inline int GetPredictionIntervalLevel() const { return m_predictionIntervalLevel; }
164 inline bool PredictionIntervalLevelHasBeenSet() const { return m_predictionIntervalLevelHasBeenSet; }
165 inline void SetPredictionIntervalLevel(int value) {
166 m_predictionIntervalLevelHasBeenSet = true;
167 m_predictionIntervalLevel = value;
168 }
171 return *this;
172 }
174 private:
175 DateInterval m_timePeriod;
176
177 Metric m_metric{Metric::NOT_SET};
178
179 Granularity m_granularity{Granularity::NOT_SET};
180
181 Expression m_filter;
182
183 Aws::String m_billingViewArn;
184
185 int m_predictionIntervalLevel{0};
186 bool m_timePeriodHasBeenSet = false;
187 bool m_metricHasBeenSet = false;
188 bool m_granularityHasBeenSet = false;
189 bool m_filterHasBeenSet = false;
190 bool m_billingViewArnHasBeenSet = false;
191 bool m_predictionIntervalLevelHasBeenSet = false;
192};
193
194} // namespace Model
195} // namespace CostExplorer
196} // namespace Aws
GetUsageForecastRequest & WithTimePeriod(TimePeriodT &&value)
virtual const char * GetServiceRequestName() const override
GetUsageForecastRequest & WithGranularity(Granularity value)
AWS_COSTEXPLORER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_COSTEXPLORER_API GetUsageForecastRequest()=default
GetUsageForecastRequest & WithPredictionIntervalLevel(int value)
AWS_COSTEXPLORER_API Aws::String SerializePayload() const override
GetUsageForecastRequest & WithFilter(FilterT &&value)
GetUsageForecastRequest & WithMetric(Metric value)
GetUsageForecastRequest & WithBillingViewArn(BillingViewArnT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String