AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetUsageForecastRequest.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/ce/model/Metric.h>
11#include <aws/ce/model/Granularity.h>
12#include <aws/ce/model/Expression.h>
13#include <utility>
14
15namespace Aws
16{
17namespace CostExplorer
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_COSTEXPLORER_API GetUsageForecastRequest();
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_COSTEXPLORER_API Aws::String SerializePayload() const override;
36
37 AWS_COSTEXPLORER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
51 inline const DateInterval& GetTimePeriod() const{ return m_timePeriod; }
52 inline bool TimePeriodHasBeenSet() const { return m_timePeriodHasBeenSet; }
53 inline void SetTimePeriod(const DateInterval& value) { m_timePeriodHasBeenSet = true; m_timePeriod = value; }
54 inline void SetTimePeriod(DateInterval&& value) { m_timePeriodHasBeenSet = true; m_timePeriod = std::move(value); }
55 inline GetUsageForecastRequest& WithTimePeriod(const DateInterval& value) { SetTimePeriod(value); return *this;}
56 inline GetUsageForecastRequest& WithTimePeriod(DateInterval&& value) { SetTimePeriod(std::move(value)); return *this;}
58
60
65 inline const Metric& GetMetric() const{ return m_metric; }
66 inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
67 inline void SetMetric(const Metric& value) { m_metricHasBeenSet = true; m_metric = value; }
68 inline void SetMetric(Metric&& value) { m_metricHasBeenSet = true; m_metric = std::move(value); }
69 inline GetUsageForecastRequest& WithMetric(const Metric& value) { SetMetric(value); return *this;}
70 inline GetUsageForecastRequest& WithMetric(Metric&& value) { SetMetric(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 GetUsageForecastRequest& WithGranularity(const Granularity& value) { SetGranularity(value); return *this;}
85 inline GetUsageForecastRequest& WithGranularity(Granularity&& value) { SetGranularity(std::move(value)); return *this;}
87
89
108 inline const Expression& GetFilter() const{ return m_filter; }
109 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
110 inline void SetFilter(const Expression& value) { m_filterHasBeenSet = true; m_filter = value; }
111 inline void SetFilter(Expression&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
112 inline GetUsageForecastRequest& WithFilter(const Expression& value) { SetFilter(value); return *this;}
113 inline GetUsageForecastRequest& WithFilter(Expression&& value) { SetFilter(std::move(value)); return *this;}
115
117
124 inline int GetPredictionIntervalLevel() const{ return m_predictionIntervalLevel; }
125 inline bool PredictionIntervalLevelHasBeenSet() const { return m_predictionIntervalLevelHasBeenSet; }
126 inline void SetPredictionIntervalLevel(int value) { m_predictionIntervalLevelHasBeenSet = true; m_predictionIntervalLevel = value; }
129 private:
130
131 DateInterval m_timePeriod;
132 bool m_timePeriodHasBeenSet = false;
133
134 Metric m_metric;
135 bool m_metricHasBeenSet = false;
136
137 Granularity m_granularity;
138 bool m_granularityHasBeenSet = false;
139
140 Expression m_filter;
141 bool m_filterHasBeenSet = false;
142
143 int m_predictionIntervalLevel;
144 bool m_predictionIntervalLevelHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace CostExplorer
149} // namespace Aws
GetUsageForecastRequest & WithTimePeriod(DateInterval &&value)
GetUsageForecastRequest & WithTimePeriod(const DateInterval &value)
GetUsageForecastRequest & WithMetric(Metric &&value)
virtual const char * GetServiceRequestName() const override
AWS_COSTEXPLORER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetUsageForecastRequest & WithMetric(const Metric &value)
GetUsageForecastRequest & WithPredictionIntervalLevel(int value)
AWS_COSTEXPLORER_API Aws::String SerializePayload() const override
GetUsageForecastRequest & WithGranularity(Granularity &&value)
GetUsageForecastRequest & WithFilter(Expression &&value)
GetUsageForecastRequest & WithGranularity(const Granularity &value)
GetUsageForecastRequest & WithFilter(const Expression &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String