AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
WindowSummary.h
1
6#pragma once
7#include <aws/forecast/ForecastService_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/forecast/model/EvaluationType.h>
10#include <aws/forecast/model/Metrics.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ForecastService
24{
25namespace Model
26{
27
38 {
39 public:
40 AWS_FORECASTSERVICE_API WindowSummary() = default;
41 AWS_FORECASTSERVICE_API WindowSummary(Aws::Utils::Json::JsonView jsonValue);
42 AWS_FORECASTSERVICE_API WindowSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_FORECASTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::Utils::DateTime& GetTestWindowStart() const { return m_testWindowStart; }
51 inline bool TestWindowStartHasBeenSet() const { return m_testWindowStartHasBeenSet; }
52 template<typename TestWindowStartT = Aws::Utils::DateTime>
53 void SetTestWindowStart(TestWindowStartT&& value) { m_testWindowStartHasBeenSet = true; m_testWindowStart = std::forward<TestWindowStartT>(value); }
54 template<typename TestWindowStartT = Aws::Utils::DateTime>
55 WindowSummary& WithTestWindowStart(TestWindowStartT&& value) { SetTestWindowStart(std::forward<TestWindowStartT>(value)); return *this;}
57
59
62 inline const Aws::Utils::DateTime& GetTestWindowEnd() const { return m_testWindowEnd; }
63 inline bool TestWindowEndHasBeenSet() const { return m_testWindowEndHasBeenSet; }
64 template<typename TestWindowEndT = Aws::Utils::DateTime>
65 void SetTestWindowEnd(TestWindowEndT&& value) { m_testWindowEndHasBeenSet = true; m_testWindowEnd = std::forward<TestWindowEndT>(value); }
66 template<typename TestWindowEndT = Aws::Utils::DateTime>
67 WindowSummary& WithTestWindowEnd(TestWindowEndT&& value) { SetTestWindowEnd(std::forward<TestWindowEndT>(value)); return *this;}
69
71
74 inline int GetItemCount() const { return m_itemCount; }
75 inline bool ItemCountHasBeenSet() const { return m_itemCountHasBeenSet; }
76 inline void SetItemCount(int value) { m_itemCountHasBeenSet = true; m_itemCount = value; }
77 inline WindowSummary& WithItemCount(int value) { SetItemCount(value); return *this;}
79
81
86 inline EvaluationType GetEvaluationType() const { return m_evaluationType; }
87 inline bool EvaluationTypeHasBeenSet() const { return m_evaluationTypeHasBeenSet; }
88 inline void SetEvaluationType(EvaluationType value) { m_evaluationTypeHasBeenSet = true; m_evaluationType = value; }
89 inline WindowSummary& WithEvaluationType(EvaluationType value) { SetEvaluationType(value); return *this;}
91
93
96 inline const Metrics& GetMetrics() const { return m_metrics; }
97 inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
98 template<typename MetricsT = Metrics>
99 void SetMetrics(MetricsT&& value) { m_metricsHasBeenSet = true; m_metrics = std::forward<MetricsT>(value); }
100 template<typename MetricsT = Metrics>
101 WindowSummary& WithMetrics(MetricsT&& value) { SetMetrics(std::forward<MetricsT>(value)); return *this;}
103 private:
104
105 Aws::Utils::DateTime m_testWindowStart{};
106 bool m_testWindowStartHasBeenSet = false;
107
108 Aws::Utils::DateTime m_testWindowEnd{};
109 bool m_testWindowEndHasBeenSet = false;
110
111 int m_itemCount{0};
112 bool m_itemCountHasBeenSet = false;
113
114 EvaluationType m_evaluationType{EvaluationType::NOT_SET};
115 bool m_evaluationTypeHasBeenSet = false;
116
117 Metrics m_metrics;
118 bool m_metricsHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace ForecastService
123} // namespace Aws
AWS_FORECASTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetEvaluationType(EvaluationType value)
void SetTestWindowStart(TestWindowStartT &&value)
const Aws::Utils::DateTime & GetTestWindowEnd() const
AWS_FORECASTSERVICE_API WindowSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_FORECASTSERVICE_API WindowSummary()=default
WindowSummary & WithMetrics(MetricsT &&value)
const Aws::Utils::DateTime & GetTestWindowStart() const
void SetTestWindowEnd(TestWindowEndT &&value)
WindowSummary & WithTestWindowEnd(TestWindowEndT &&value)
WindowSummary & WithEvaluationType(EvaluationType value)
AWS_FORECASTSERVICE_API WindowSummary(Aws::Utils::Json::JsonView jsonValue)
WindowSummary & WithItemCount(int value)
WindowSummary & WithTestWindowStart(TestWindowStartT &&value)
Aws::Utils::Json::JsonValue JsonValue