AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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 <aws/core/utils/memory/stl/AWSString.h>
14#include <utility>
15
16namespace Aws
17{
18namespace CostExplorer
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_COSTEXPLORER_API GetCostForecastRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "GetCostForecast"; }
35
36 AWS_COSTEXPLORER_API Aws::String SerializePayload() const override;
37
38 AWS_COSTEXPLORER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
40
42
46 inline const DateInterval& GetTimePeriod() const { return m_timePeriod; }
47 inline bool TimePeriodHasBeenSet() const { return m_timePeriodHasBeenSet; }
48 template<typename TimePeriodT = DateInterval>
49 void SetTimePeriod(TimePeriodT&& value) { m_timePeriodHasBeenSet = true; m_timePeriod = std::forward<TimePeriodT>(value); }
50 template<typename TimePeriodT = DateInterval>
51 GetCostForecastRequest& WithTimePeriod(TimePeriodT&& value) { SetTimePeriod(std::forward<TimePeriodT>(value)); return *this;}
53
55
65 inline Metric GetMetric() const { return m_metric; }
66 inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
67 inline void SetMetric(Metric value) { m_metricHasBeenSet = true; m_metric = value; }
68 inline GetCostForecastRequest& WithMetric(Metric value) { SetMetric(value); return *this;}
70
72
78 inline Granularity GetGranularity() const { return m_granularity; }
79 inline bool GranularityHasBeenSet() const { return m_granularityHasBeenSet; }
80 inline void SetGranularity(Granularity value) { m_granularityHasBeenSet = true; m_granularity = value; }
81 inline GetCostForecastRequest& WithGranularity(Granularity value) { SetGranularity(value); return *this;}
83
85
104 inline const Expression& GetFilter() const { return m_filter; }
105 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
106 template<typename FilterT = Expression>
107 void SetFilter(FilterT&& value) { m_filterHasBeenSet = true; m_filter = std::forward<FilterT>(value); }
108 template<typename FilterT = Expression>
109 GetCostForecastRequest& WithFilter(FilterT&& value) { SetFilter(std::forward<FilterT>(value)); return *this;}
111
113
120 inline const Aws::String& GetBillingViewArn() const { return m_billingViewArn; }
121 inline bool BillingViewArnHasBeenSet() const { return m_billingViewArnHasBeenSet; }
122 template<typename BillingViewArnT = Aws::String>
123 void SetBillingViewArn(BillingViewArnT&& value) { m_billingViewArnHasBeenSet = true; m_billingViewArn = std::forward<BillingViewArnT>(value); }
124 template<typename BillingViewArnT = Aws::String>
125 GetCostForecastRequest& WithBillingViewArn(BillingViewArnT&& value) { SetBillingViewArn(std::forward<BillingViewArnT>(value)); return *this;}
127
129
136 inline int GetPredictionIntervalLevel() const { return m_predictionIntervalLevel; }
137 inline bool PredictionIntervalLevelHasBeenSet() const { return m_predictionIntervalLevelHasBeenSet; }
138 inline void SetPredictionIntervalLevel(int value) { m_predictionIntervalLevelHasBeenSet = true; m_predictionIntervalLevel = value; }
141 private:
142
143 DateInterval m_timePeriod;
144 bool m_timePeriodHasBeenSet = false;
145
146 Metric m_metric{Metric::NOT_SET};
147 bool m_metricHasBeenSet = false;
148
149 Granularity m_granularity{Granularity::NOT_SET};
150 bool m_granularityHasBeenSet = false;
151
152 Expression m_filter;
153 bool m_filterHasBeenSet = false;
154
155 Aws::String m_billingViewArn;
156 bool m_billingViewArnHasBeenSet = false;
157
158 int m_predictionIntervalLevel{0};
159 bool m_predictionIntervalLevelHasBeenSet = false;
160 };
161
162} // namespace Model
163} // namespace CostExplorer
164} // namespace Aws
GetCostForecastRequest & WithBillingViewArn(BillingViewArnT &&value)
AWS_COSTEXPLORER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetCostForecastRequest & WithMetric(Metric value)
GetCostForecastRequest & WithTimePeriod(TimePeriodT &&value)
virtual const char * GetServiceRequestName() const override
AWS_COSTEXPLORER_API GetCostForecastRequest()=default
GetCostForecastRequest & WithGranularity(Granularity value)
GetCostForecastRequest & WithFilter(FilterT &&value)
GetCostForecastRequest & WithPredictionIntervalLevel(int 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