AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
ForecastComputation.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/quicksight/QuickSight_EXPORTS.h>
9#include <aws/quicksight/model/DimensionField.h>
10#include <aws/quicksight/model/ForecastComputationSeasonality.h>
11#include <aws/quicksight/model/MeasureField.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace QuickSight {
23namespace Model {
24
31 public:
32 AWS_QUICKSIGHT_API ForecastComputation() = default;
33 AWS_QUICKSIGHT_API ForecastComputation(Aws::Utils::Json::JsonView jsonValue);
35 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetComputationId() const { return m_computationId; }
42 inline bool ComputationIdHasBeenSet() const { return m_computationIdHasBeenSet; }
43 template <typename ComputationIdT = Aws::String>
44 void SetComputationId(ComputationIdT&& value) {
45 m_computationIdHasBeenSet = true;
46 m_computationId = std::forward<ComputationIdT>(value);
47 }
48 template <typename ComputationIdT = Aws::String>
49 ForecastComputation& WithComputationId(ComputationIdT&& value) {
50 SetComputationId(std::forward<ComputationIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template <typename NameT = Aws::String>
62 void SetName(NameT&& value) {
63 m_nameHasBeenSet = true;
64 m_name = std::forward<NameT>(value);
65 }
66 template <typename NameT = Aws::String>
67 ForecastComputation& WithName(NameT&& value) {
68 SetName(std::forward<NameT>(value));
69 return *this;
70 }
72
74
77 inline const DimensionField& GetTime() const { return m_time; }
78 inline bool TimeHasBeenSet() const { return m_timeHasBeenSet; }
79 template <typename TimeT = DimensionField>
80 void SetTime(TimeT&& value) {
81 m_timeHasBeenSet = true;
82 m_time = std::forward<TimeT>(value);
83 }
84 template <typename TimeT = DimensionField>
85 ForecastComputation& WithTime(TimeT&& value) {
86 SetTime(std::forward<TimeT>(value));
87 return *this;
88 }
90
92
95 inline const MeasureField& GetValue() const { return m_value; }
96 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
97 template <typename ValueT = MeasureField>
98 void SetValue(ValueT&& value) {
99 m_valueHasBeenSet = true;
100 m_value = std::forward<ValueT>(value);
101 }
102 template <typename ValueT = MeasureField>
104 SetValue(std::forward<ValueT>(value));
105 return *this;
106 }
108
110
113 inline int GetPeriodsForward() const { return m_periodsForward; }
114 inline bool PeriodsForwardHasBeenSet() const { return m_periodsForwardHasBeenSet; }
115 inline void SetPeriodsForward(int value) {
116 m_periodsForwardHasBeenSet = true;
117 m_periodsForward = value;
118 }
120 SetPeriodsForward(value);
121 return *this;
122 }
124
126
129 inline int GetPeriodsBackward() const { return m_periodsBackward; }
130 inline bool PeriodsBackwardHasBeenSet() const { return m_periodsBackwardHasBeenSet; }
131 inline void SetPeriodsBackward(int value) {
132 m_periodsBackwardHasBeenSet = true;
133 m_periodsBackward = value;
134 }
136 SetPeriodsBackward(value);
137 return *this;
138 }
140
142
145 inline double GetUpperBoundary() const { return m_upperBoundary; }
146 inline bool UpperBoundaryHasBeenSet() const { return m_upperBoundaryHasBeenSet; }
147 inline void SetUpperBoundary(double value) {
148 m_upperBoundaryHasBeenSet = true;
149 m_upperBoundary = value;
150 }
152 SetUpperBoundary(value);
153 return *this;
154 }
156
158
161 inline double GetLowerBoundary() const { return m_lowerBoundary; }
162 inline bool LowerBoundaryHasBeenSet() const { return m_lowerBoundaryHasBeenSet; }
163 inline void SetLowerBoundary(double value) {
164 m_lowerBoundaryHasBeenSet = true;
165 m_lowerBoundary = value;
166 }
168 SetLowerBoundary(value);
169 return *this;
170 }
172
174
177 inline int GetPredictionInterval() const { return m_predictionInterval; }
178 inline bool PredictionIntervalHasBeenSet() const { return m_predictionIntervalHasBeenSet; }
179 inline void SetPredictionInterval(int value) {
180 m_predictionIntervalHasBeenSet = true;
181 m_predictionInterval = value;
182 }
185 return *this;
186 }
188
190
195 inline ForecastComputationSeasonality GetSeasonality() const { return m_seasonality; }
196 inline bool SeasonalityHasBeenSet() const { return m_seasonalityHasBeenSet; }
198 m_seasonalityHasBeenSet = true;
199 m_seasonality = value;
200 }
202 SetSeasonality(value);
203 return *this;
204 }
206
208
211 inline int GetCustomSeasonalityValue() const { return m_customSeasonalityValue; }
212 inline bool CustomSeasonalityValueHasBeenSet() const { return m_customSeasonalityValueHasBeenSet; }
213 inline void SetCustomSeasonalityValue(int value) {
214 m_customSeasonalityValueHasBeenSet = true;
215 m_customSeasonalityValue = value;
216 }
219 return *this;
220 }
222 private:
223 Aws::String m_computationId;
224
225 Aws::String m_name;
226
227 DimensionField m_time;
228
229 MeasureField m_value;
230
231 int m_periodsForward{0};
232
233 int m_periodsBackward{0};
234
235 double m_upperBoundary{0.0};
236
237 double m_lowerBoundary{0.0};
238
239 int m_predictionInterval{0};
240
242
243 int m_customSeasonalityValue{0};
244 bool m_computationIdHasBeenSet = false;
245 bool m_nameHasBeenSet = false;
246 bool m_timeHasBeenSet = false;
247 bool m_valueHasBeenSet = false;
248 bool m_periodsForwardHasBeenSet = false;
249 bool m_periodsBackwardHasBeenSet = false;
250 bool m_upperBoundaryHasBeenSet = false;
251 bool m_lowerBoundaryHasBeenSet = false;
252 bool m_predictionIntervalHasBeenSet = false;
253 bool m_seasonalityHasBeenSet = false;
254 bool m_customSeasonalityValueHasBeenSet = false;
255};
256
257} // namespace Model
258} // namespace QuickSight
259} // namespace Aws
ForecastComputation & WithLowerBoundary(double value)
ForecastComputation & WithCustomSeasonalityValue(int value)
ForecastComputation & WithValue(ValueT &&value)
ForecastComputation & WithPeriodsForward(int value)
AWS_QUICKSIGHT_API ForecastComputation & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_QUICKSIGHT_API ForecastComputation()=default
ForecastComputation & WithSeasonality(ForecastComputationSeasonality value)
ForecastComputationSeasonality GetSeasonality() const
ForecastComputation & WithPredictionInterval(int value)
ForecastComputation & WithComputationId(ComputationIdT &&value)
ForecastComputation & WithTime(TimeT &&value)
ForecastComputation & WithPeriodsBackward(int value)
ForecastComputation & WithUpperBoundary(double value)
AWS_QUICKSIGHT_API ForecastComputation(Aws::Utils::Json::JsonView jsonValue)
ForecastComputation & WithName(NameT &&value)
void SetSeasonality(ForecastComputationSeasonality value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue