AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetCostForecastRequest.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 GetCostForecastRequest();
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 "GetCostForecast"; }
34
35 AWS_COSTEXPLORER_API Aws::String SerializePayload() const override;
36
37 AWS_COSTEXPLORER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
45 inline const DateInterval& GetTimePeriod() const{ return m_timePeriod; }
46 inline bool TimePeriodHasBeenSet() const { return m_timePeriodHasBeenSet; }
47 inline void SetTimePeriod(const DateInterval& value) { m_timePeriodHasBeenSet = true; m_timePeriod = value; }
48 inline void SetTimePeriod(DateInterval&& value) { m_timePeriodHasBeenSet = true; m_timePeriod = std::move(value); }
49 inline GetCostForecastRequest& WithTimePeriod(const DateInterval& value) { SetTimePeriod(value); return *this;}
50 inline GetCostForecastRequest& WithTimePeriod(DateInterval&& value) { SetTimePeriod(std::move(value)); return *this;}
52
54
64 inline const Metric& GetMetric() const{ return m_metric; }
65 inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
66 inline void SetMetric(const Metric& value) { m_metricHasBeenSet = true; m_metric = value; }
67 inline void SetMetric(Metric&& value) { m_metricHasBeenSet = true; m_metric = std::move(value); }
68 inline GetCostForecastRequest& WithMetric(const Metric& value) { SetMetric(value); return *this;}
69 inline GetCostForecastRequest& WithMetric(Metric&& value) { SetMetric(std::move(value)); return *this;}
71
73
79 inline const Granularity& GetGranularity() const{ return m_granularity; }
80 inline bool GranularityHasBeenSet() const { return m_granularityHasBeenSet; }
81 inline void SetGranularity(const Granularity& value) { m_granularityHasBeenSet = true; m_granularity = value; }
82 inline void SetGranularity(Granularity&& value) { m_granularityHasBeenSet = true; m_granularity = std::move(value); }
83 inline GetCostForecastRequest& WithGranularity(const Granularity& value) { SetGranularity(value); return *this;}
84 inline GetCostForecastRequest& WithGranularity(Granularity&& value) { SetGranularity(std::move(value)); return *this;}
86
88
107 inline const Expression& GetFilter() const{ return m_filter; }
108 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
109 inline void SetFilter(const Expression& value) { m_filterHasBeenSet = true; m_filter = value; }
110 inline void SetFilter(Expression&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
111 inline GetCostForecastRequest& WithFilter(const Expression& value) { SetFilter(value); return *this;}
112 inline GetCostForecastRequest& WithFilter(Expression&& value) { SetFilter(std::move(value)); return *this;}
114
116
123 inline int GetPredictionIntervalLevel() const{ return m_predictionIntervalLevel; }
124 inline bool PredictionIntervalLevelHasBeenSet() const { return m_predictionIntervalLevelHasBeenSet; }
125 inline void SetPredictionIntervalLevel(int value) { m_predictionIntervalLevelHasBeenSet = true; m_predictionIntervalLevel = value; }
128 private:
129
130 DateInterval m_timePeriod;
131 bool m_timePeriodHasBeenSet = false;
132
133 Metric m_metric;
134 bool m_metricHasBeenSet = false;
135
136 Granularity m_granularity;
137 bool m_granularityHasBeenSet = false;
138
139 Expression m_filter;
140 bool m_filterHasBeenSet = false;
141
142 int m_predictionIntervalLevel;
143 bool m_predictionIntervalLevelHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace CostExplorer
148} // namespace Aws
GetCostForecastRequest & WithTimePeriod(const DateInterval &value)
GetCostForecastRequest & WithMetric(Metric &&value)
GetCostForecastRequest & WithFilter(const Expression &value)
GetCostForecastRequest & WithFilter(Expression &&value)
AWS_COSTEXPLORER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
GetCostForecastRequest & WithTimePeriod(DateInterval &&value)
GetCostForecastRequest & WithGranularity(const Granularity &value)
GetCostForecastRequest & WithGranularity(Granularity &&value)
GetCostForecastRequest & WithPredictionIntervalLevel(int value)
AWS_COSTEXPLORER_API Aws::String SerializePayload() const override
GetCostForecastRequest & WithMetric(const Metric &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String