AWS SDK for C++  1.9.1
AWS SDK for C++
GetUsageForecastRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <aws/ce/model/Metric.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace CostExplorer
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "GetUsageForecast"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
49  inline const DateInterval& GetTimePeriod() const{ return m_timePeriod; }
50 
60  inline bool TimePeriodHasBeenSet() const { return m_timePeriodHasBeenSet; }
61 
71  inline void SetTimePeriod(const DateInterval& value) { m_timePeriodHasBeenSet = true; m_timePeriod = value; }
72 
82  inline void SetTimePeriod(DateInterval&& value) { m_timePeriodHasBeenSet = true; m_timePeriod = std::move(value); }
83 
93  inline GetUsageForecastRequest& WithTimePeriod(const DateInterval& value) { SetTimePeriod(value); return *this;}
94 
104  inline GetUsageForecastRequest& WithTimePeriod(DateInterval&& value) { SetTimePeriod(std::move(value)); return *this;}
105 
106 
112  inline const Metric& GetMetric() const{ return m_metric; }
113 
119  inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
120 
126  inline void SetMetric(const Metric& value) { m_metricHasBeenSet = true; m_metric = value; }
127 
133  inline void SetMetric(Metric&& value) { m_metricHasBeenSet = true; m_metric = std::move(value); }
134 
140  inline GetUsageForecastRequest& WithMetric(const Metric& value) { SetMetric(value); return *this;}
141 
147  inline GetUsageForecastRequest& WithMetric(Metric&& value) { SetMetric(std::move(value)); return *this;}
148 
149 
156  inline const Granularity& GetGranularity() const{ return m_granularity; }
157 
164  inline bool GranularityHasBeenSet() const { return m_granularityHasBeenSet; }
165 
172  inline void SetGranularity(const Granularity& value) { m_granularityHasBeenSet = true; m_granularity = value; }
173 
180  inline void SetGranularity(Granularity&& value) { m_granularityHasBeenSet = true; m_granularity = std::move(value); }
181 
188  inline GetUsageForecastRequest& WithGranularity(const Granularity& value) { SetGranularity(value); return *this;}
189 
196  inline GetUsageForecastRequest& WithGranularity(Granularity&& value) { SetGranularity(std::move(value)); return *this;}
197 
198 
218  inline const Expression& GetFilter() const{ return m_filter; }
219 
239  inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
240 
260  inline void SetFilter(const Expression& value) { m_filterHasBeenSet = true; m_filter = value; }
261 
281  inline void SetFilter(Expression&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
282 
302  inline GetUsageForecastRequest& WithFilter(const Expression& value) { SetFilter(value); return *this;}
303 
323  inline GetUsageForecastRequest& WithFilter(Expression&& value) { SetFilter(std::move(value)); return *this;}
324 
325 
333  inline int GetPredictionIntervalLevel() const{ return m_predictionIntervalLevel; }
334 
342  inline bool PredictionIntervalLevelHasBeenSet() const { return m_predictionIntervalLevelHasBeenSet; }
343 
351  inline void SetPredictionIntervalLevel(int value) { m_predictionIntervalLevelHasBeenSet = true; m_predictionIntervalLevel = value; }
352 
360  inline GetUsageForecastRequest& WithPredictionIntervalLevel(int value) { SetPredictionIntervalLevel(value); return *this;}
361 
362  private:
363 
364  DateInterval m_timePeriod;
365  bool m_timePeriodHasBeenSet;
366 
367  Metric m_metric;
368  bool m_metricHasBeenSet;
369 
370  Granularity m_granularity;
371  bool m_granularityHasBeenSet;
372 
373  Expression m_filter;
374  bool m_filterHasBeenSet;
375 
376  int m_predictionIntervalLevel;
377  bool m_predictionIntervalLevelHasBeenSet;
378  };
379 
380 } // namespace Model
381 } // namespace CostExplorer
382 } // namespace Aws
Aws::CostExplorer::CostExplorerRequest
Definition: CostExplorerRequest.h:17
Aws::CostExplorer::Model::GetUsageForecastRequest::FilterHasBeenSet
bool FilterHasBeenSet() const
Definition: GetUsageForecastRequest.h:239
Aws::CostExplorer::Model::DateInterval
Definition: DateInterval.h:32
Aws::CostExplorer::Model::GetUsageForecastRequest::GetMetric
const Metric & GetMetric() const
Definition: GetUsageForecastRequest.h:112
Aws::CostExplorer::Model::Granularity
Granularity
Definition: Granularity.h:17
Aws::CostExplorer::Model::GetUsageForecastRequest
Definition: GetUsageForecastRequest.h:25
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::CostExplorer::Model::GetUsageForecastRequest::WithGranularity
GetUsageForecastRequest & WithGranularity(const Granularity &value)
Definition: GetUsageForecastRequest.h:188
Aws::CostExplorer::Model::GetUsageForecastRequest::GranularityHasBeenSet
bool GranularityHasBeenSet() const
Definition: GetUsageForecastRequest.h:164
Aws::CostExplorer::Model::Metric
Metric
Definition: Metric.h:17
Aws::CostExplorer::Model::GetUsageForecastRequest::WithMetric
GetUsageForecastRequest & WithMetric(Metric &&value)
Definition: GetUsageForecastRequest.h:147
CostExplorerRequest.h
Aws::CostExplorer::Model::GetUsageForecastRequest::WithTimePeriod
GetUsageForecastRequest & WithTimePeriod(const DateInterval &value)
Definition: GetUsageForecastRequest.h:93
Aws::CostExplorer::Model::GetUsageForecastRequest::SetGranularity
void SetGranularity(Granularity &&value)
Definition: GetUsageForecastRequest.h:180
DateInterval.h
Metric.h
Aws::CostExplorer::Model::GetUsageForecastRequest::GetTimePeriod
const DateInterval & GetTimePeriod() const
Definition: GetUsageForecastRequest.h:49
Aws::CostExplorer::Model::GetUsageForecastRequest::WithFilter
GetUsageForecastRequest & WithFilter(const Expression &value)
Definition: GetUsageForecastRequest.h:302
Aws::CostExplorer::Model::Expression
Definition: Expression.h:69
Aws::CostExplorer::Model::GetUsageForecastRequest::SetGranularity
void SetGranularity(const Granularity &value)
Definition: GetUsageForecastRequest.h:172
Aws::CostExplorer::Model::GetUsageForecastRequest::SetTimePeriod
void SetTimePeriod(const DateInterval &value)
Definition: GetUsageForecastRequest.h:71
Aws::CostExplorer::Model::GetUsageForecastRequest::GetPredictionIntervalLevel
int GetPredictionIntervalLevel() const
Definition: GetUsageForecastRequest.h:333
Aws::CostExplorer::Model::GetUsageForecastRequest::WithFilter
GetUsageForecastRequest & WithFilter(Expression &&value)
Definition: GetUsageForecastRequest.h:323
CostExplorer_EXPORTS.h
Aws::CostExplorer::Model::GetUsageForecastRequest::WithTimePeriod
GetUsageForecastRequest & WithTimePeriod(DateInterval &&value)
Definition: GetUsageForecastRequest.h:104
Aws::CostExplorer::Model::GetUsageForecastRequest::SetFilter
void SetFilter(Expression &&value)
Definition: GetUsageForecastRequest.h:281
Aws::CostExplorer::Model::GetUsageForecastRequest::TimePeriodHasBeenSet
bool TimePeriodHasBeenSet() const
Definition: GetUsageForecastRequest.h:60
Aws::CostExplorer::Model::GetUsageForecastRequest::SetFilter
void SetFilter(const Expression &value)
Definition: GetUsageForecastRequest.h:260
Aws::CostExplorer::Model::GetUsageForecastRequest::WithGranularity
GetUsageForecastRequest & WithGranularity(Granularity &&value)
Definition: GetUsageForecastRequest.h:196
Aws::CostExplorer::Model::GetUsageForecastRequest::GetFilter
const Expression & GetFilter() const
Definition: GetUsageForecastRequest.h:218
Aws::CostExplorer::Model::GetUsageForecastRequest::SetPredictionIntervalLevel
void SetPredictionIntervalLevel(int value)
Definition: GetUsageForecastRequest.h:351
AWS_COSTEXPLORER_API
#define AWS_COSTEXPLORER_API
Definition: CostExplorer_EXPORTS.h:28
Aws::CostExplorer::Model::GetUsageForecastRequest::SetMetric
void SetMetric(Metric &&value)
Definition: GetUsageForecastRequest.h:133
Aws::CostExplorer::Model::GetUsageForecastRequest::GetGranularity
const Granularity & GetGranularity() const
Definition: GetUsageForecastRequest.h:156
Aws::CostExplorer::Model::GetUsageForecastRequest::WithMetric
GetUsageForecastRequest & WithMetric(const Metric &value)
Definition: GetUsageForecastRequest.h:140
Aws::CostExplorer::Model::GetUsageForecastRequest::PredictionIntervalLevelHasBeenSet
bool PredictionIntervalLevelHasBeenSet() const
Definition: GetUsageForecastRequest.h:342
Aws
Definition: AccessManagementClient.h:15
Aws::CostExplorer::Model::GetUsageForecastRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetUsageForecastRequest.h:33
Aws::CostExplorer::Model::GetUsageForecastRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CostExplorer::Model::GetUsageForecastRequest::SetTimePeriod
void SetTimePeriod(DateInterval &&value)
Definition: GetUsageForecastRequest.h:82
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Expression.h
Aws::CostExplorer::Model::GetUsageForecastRequest::SetMetric
void SetMetric(const Metric &value)
Definition: GetUsageForecastRequest.h:126
Aws::CostExplorer::Model::GetUsageForecastRequest::MetricHasBeenSet
bool MetricHasBeenSet() const
Definition: GetUsageForecastRequest.h:119
Aws::CostExplorer::Model::GetUsageForecastRequest::WithPredictionIntervalLevel
GetUsageForecastRequest & WithPredictionIntervalLevel(int value)
Definition: GetUsageForecastRequest.h:360
Aws::CostExplorer::Model::GetUsageForecastRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Granularity.h
Aws::CostExplorer::Model::GetUsageForecastRequest::GetUsageForecastRequest
GetUsageForecastRequest()