AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
WindowSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/forecast/ForecastService_EXPORTS.h>
9#include <aws/forecast/model/EvaluationType.h>
10#include <aws/forecast/model/Metrics.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ForecastService {
22namespace Model {
23
34 public:
35 AWS_FORECASTSERVICE_API WindowSummary() = default;
36 AWS_FORECASTSERVICE_API WindowSummary(Aws::Utils::Json::JsonView jsonValue);
37 AWS_FORECASTSERVICE_API WindowSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_FORECASTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::Utils::DateTime& GetTestWindowStart() const { return m_testWindowStart; }
45 inline bool TestWindowStartHasBeenSet() const { return m_testWindowStartHasBeenSet; }
46 template <typename TestWindowStartT = Aws::Utils::DateTime>
47 void SetTestWindowStart(TestWindowStartT&& value) {
48 m_testWindowStartHasBeenSet = true;
49 m_testWindowStart = std::forward<TestWindowStartT>(value);
50 }
51 template <typename TestWindowStartT = Aws::Utils::DateTime>
52 WindowSummary& WithTestWindowStart(TestWindowStartT&& value) {
53 SetTestWindowStart(std::forward<TestWindowStartT>(value));
54 return *this;
55 }
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) {
66 m_testWindowEndHasBeenSet = true;
67 m_testWindowEnd = std::forward<TestWindowEndT>(value);
68 }
69 template <typename TestWindowEndT = Aws::Utils::DateTime>
70 WindowSummary& WithTestWindowEnd(TestWindowEndT&& value) {
71 SetTestWindowEnd(std::forward<TestWindowEndT>(value));
72 return *this;
73 }
75
77
80 inline int GetItemCount() const { return m_itemCount; }
81 inline bool ItemCountHasBeenSet() const { return m_itemCountHasBeenSet; }
82 inline void SetItemCount(int value) {
83 m_itemCountHasBeenSet = true;
84 m_itemCount = value;
85 }
86 inline WindowSummary& WithItemCount(int value) {
87 SetItemCount(value);
88 return *this;
89 }
91
93
98 inline EvaluationType GetEvaluationType() const { return m_evaluationType; }
99 inline bool EvaluationTypeHasBeenSet() const { return m_evaluationTypeHasBeenSet; }
101 m_evaluationTypeHasBeenSet = true;
102 m_evaluationType = value;
103 }
105 SetEvaluationType(value);
106 return *this;
107 }
109
111
114 inline const Metrics& GetMetrics() const { return m_metrics; }
115 inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
116 template <typename MetricsT = Metrics>
117 void SetMetrics(MetricsT&& value) {
118 m_metricsHasBeenSet = true;
119 m_metrics = std::forward<MetricsT>(value);
120 }
121 template <typename MetricsT = Metrics>
122 WindowSummary& WithMetrics(MetricsT&& value) {
123 SetMetrics(std::forward<MetricsT>(value));
124 return *this;
125 }
127 private:
128 Aws::Utils::DateTime m_testWindowStart{};
129
130 Aws::Utils::DateTime m_testWindowEnd{};
131
132 int m_itemCount{0};
133
134 EvaluationType m_evaluationType{EvaluationType::NOT_SET};
135
136 Metrics m_metrics;
137 bool m_testWindowStartHasBeenSet = false;
138 bool m_testWindowEndHasBeenSet = false;
139 bool m_itemCountHasBeenSet = false;
140 bool m_evaluationTypeHasBeenSet = false;
141 bool m_metricsHasBeenSet = false;
142};
143
144} // namespace Model
145} // namespace ForecastService
146} // 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