/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ForecastService { namespace Model { /** *

Provides statistics for each data field imported into to an Amazon Forecast * dataset with the CreateDatasetImportJob * operation.

See Also:

AWS * API Reference

*/ class Statistics { public: AWS_FORECASTSERVICE_API Statistics(); AWS_FORECASTSERVICE_API Statistics(Aws::Utils::Json::JsonView jsonValue); AWS_FORECASTSERVICE_API Statistics& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_FORECASTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The number of values in the field. If the response value is -1, refer to * CountLong.

*/ inline int GetCount() const{ return m_count; } /** *

The number of values in the field. If the response value is -1, refer to * CountLong.

*/ inline bool CountHasBeenSet() const { return m_countHasBeenSet; } /** *

The number of values in the field. If the response value is -1, refer to * CountLong.

*/ inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; } /** *

The number of values in the field. If the response value is -1, refer to * CountLong.

*/ inline Statistics& WithCount(int value) { SetCount(value); return *this;} /** *

The number of distinct values in the field. If the response value is -1, * refer to CountDistinctLong.

*/ inline int GetCountDistinct() const{ return m_countDistinct; } /** *

The number of distinct values in the field. If the response value is -1, * refer to CountDistinctLong.

*/ inline bool CountDistinctHasBeenSet() const { return m_countDistinctHasBeenSet; } /** *

The number of distinct values in the field. If the response value is -1, * refer to CountDistinctLong.

*/ inline void SetCountDistinct(int value) { m_countDistinctHasBeenSet = true; m_countDistinct = value; } /** *

The number of distinct values in the field. If the response value is -1, * refer to CountDistinctLong.

*/ inline Statistics& WithCountDistinct(int value) { SetCountDistinct(value); return *this;} /** *

The number of null values in the field. If the response value is -1, refer to * CountNullLong.

*/ inline int GetCountNull() const{ return m_countNull; } /** *

The number of null values in the field. If the response value is -1, refer to * CountNullLong.

*/ inline bool CountNullHasBeenSet() const { return m_countNullHasBeenSet; } /** *

The number of null values in the field. If the response value is -1, refer to * CountNullLong.

*/ inline void SetCountNull(int value) { m_countNullHasBeenSet = true; m_countNull = value; } /** *

The number of null values in the field. If the response value is -1, refer to * CountNullLong.

*/ inline Statistics& WithCountNull(int value) { SetCountNull(value); return *this;} /** *

The number of NAN (not a number) values in the field. If the response value * is -1, refer to CountNanLong.

*/ inline int GetCountNan() const{ return m_countNan; } /** *

The number of NAN (not a number) values in the field. If the response value * is -1, refer to CountNanLong.

*/ inline bool CountNanHasBeenSet() const { return m_countNanHasBeenSet; } /** *

The number of NAN (not a number) values in the field. If the response value * is -1, refer to CountNanLong.

*/ inline void SetCountNan(int value) { m_countNanHasBeenSet = true; m_countNan = value; } /** *

The number of NAN (not a number) values in the field. If the response value * is -1, refer to CountNanLong.

*/ inline Statistics& WithCountNan(int value) { SetCountNan(value); return *this;} /** *

For a numeric field, the minimum value in the field.

*/ inline const Aws::String& GetMin() const{ return m_min; } /** *

For a numeric field, the minimum value in the field.

*/ inline bool MinHasBeenSet() const { return m_minHasBeenSet; } /** *

For a numeric field, the minimum value in the field.

*/ inline void SetMin(const Aws::String& value) { m_minHasBeenSet = true; m_min = value; } /** *

For a numeric field, the minimum value in the field.

*/ inline void SetMin(Aws::String&& value) { m_minHasBeenSet = true; m_min = std::move(value); } /** *

For a numeric field, the minimum value in the field.

*/ inline void SetMin(const char* value) { m_minHasBeenSet = true; m_min.assign(value); } /** *

For a numeric field, the minimum value in the field.

*/ inline Statistics& WithMin(const Aws::String& value) { SetMin(value); return *this;} /** *

For a numeric field, the minimum value in the field.

*/ inline Statistics& WithMin(Aws::String&& value) { SetMin(std::move(value)); return *this;} /** *

For a numeric field, the minimum value in the field.

*/ inline Statistics& WithMin(const char* value) { SetMin(value); return *this;} /** *

For a numeric field, the maximum value in the field.

*/ inline const Aws::String& GetMax() const{ return m_max; } /** *

For a numeric field, the maximum value in the field.

*/ inline bool MaxHasBeenSet() const { return m_maxHasBeenSet; } /** *

For a numeric field, the maximum value in the field.

*/ inline void SetMax(const Aws::String& value) { m_maxHasBeenSet = true; m_max = value; } /** *

For a numeric field, the maximum value in the field.

*/ inline void SetMax(Aws::String&& value) { m_maxHasBeenSet = true; m_max = std::move(value); } /** *

For a numeric field, the maximum value in the field.

*/ inline void SetMax(const char* value) { m_maxHasBeenSet = true; m_max.assign(value); } /** *

For a numeric field, the maximum value in the field.

*/ inline Statistics& WithMax(const Aws::String& value) { SetMax(value); return *this;} /** *

For a numeric field, the maximum value in the field.

*/ inline Statistics& WithMax(Aws::String&& value) { SetMax(std::move(value)); return *this;} /** *

For a numeric field, the maximum value in the field.

*/ inline Statistics& WithMax(const char* value) { SetMax(value); return *this;} /** *

For a numeric field, the average value in the field.

*/ inline double GetAvg() const{ return m_avg; } /** *

For a numeric field, the average value in the field.

*/ inline bool AvgHasBeenSet() const { return m_avgHasBeenSet; } /** *

For a numeric field, the average value in the field.

*/ inline void SetAvg(double value) { m_avgHasBeenSet = true; m_avg = value; } /** *

For a numeric field, the average value in the field.

*/ inline Statistics& WithAvg(double value) { SetAvg(value); return *this;} /** *

For a numeric field, the standard deviation.

*/ inline double GetStddev() const{ return m_stddev; } /** *

For a numeric field, the standard deviation.

*/ inline bool StddevHasBeenSet() const { return m_stddevHasBeenSet; } /** *

For a numeric field, the standard deviation.

*/ inline void SetStddev(double value) { m_stddevHasBeenSet = true; m_stddev = value; } /** *

For a numeric field, the standard deviation.

*/ inline Statistics& WithStddev(double value) { SetStddev(value); return *this;} /** *

The number of values in the field. CountLong is used instead of * Count if the value is greater than 2,147,483,647.

*/ inline long long GetCountLong() const{ return m_countLong; } /** *

The number of values in the field. CountLong is used instead of * Count if the value is greater than 2,147,483,647.

*/ inline bool CountLongHasBeenSet() const { return m_countLongHasBeenSet; } /** *

The number of values in the field. CountLong is used instead of * Count if the value is greater than 2,147,483,647.

*/ inline void SetCountLong(long long value) { m_countLongHasBeenSet = true; m_countLong = value; } /** *

The number of values in the field. CountLong is used instead of * Count if the value is greater than 2,147,483,647.

*/ inline Statistics& WithCountLong(long long value) { SetCountLong(value); return *this;} /** *

The number of distinct values in the field. CountDistinctLong is * used instead of CountDistinct if the value is greater than * 2,147,483,647.

*/ inline long long GetCountDistinctLong() const{ return m_countDistinctLong; } /** *

The number of distinct values in the field. CountDistinctLong is * used instead of CountDistinct if the value is greater than * 2,147,483,647.

*/ inline bool CountDistinctLongHasBeenSet() const { return m_countDistinctLongHasBeenSet; } /** *

The number of distinct values in the field. CountDistinctLong is * used instead of CountDistinct if the value is greater than * 2,147,483,647.

*/ inline void SetCountDistinctLong(long long value) { m_countDistinctLongHasBeenSet = true; m_countDistinctLong = value; } /** *

The number of distinct values in the field. CountDistinctLong is * used instead of CountDistinct if the value is greater than * 2,147,483,647.

*/ inline Statistics& WithCountDistinctLong(long long value) { SetCountDistinctLong(value); return *this;} /** *

The number of null values in the field. CountNullLong is used * instead of CountNull if the value is greater than * 2,147,483,647.

*/ inline long long GetCountNullLong() const{ return m_countNullLong; } /** *

The number of null values in the field. CountNullLong is used * instead of CountNull if the value is greater than * 2,147,483,647.

*/ inline bool CountNullLongHasBeenSet() const { return m_countNullLongHasBeenSet; } /** *

The number of null values in the field. CountNullLong is used * instead of CountNull if the value is greater than * 2,147,483,647.

*/ inline void SetCountNullLong(long long value) { m_countNullLongHasBeenSet = true; m_countNullLong = value; } /** *

The number of null values in the field. CountNullLong is used * instead of CountNull if the value is greater than * 2,147,483,647.

*/ inline Statistics& WithCountNullLong(long long value) { SetCountNullLong(value); return *this;} /** *

The number of NAN (not a number) values in the field. * CountNanLong is used instead of CountNan if the value * is greater than 2,147,483,647.

*/ inline long long GetCountNanLong() const{ return m_countNanLong; } /** *

The number of NAN (not a number) values in the field. * CountNanLong is used instead of CountNan if the value * is greater than 2,147,483,647.

*/ inline bool CountNanLongHasBeenSet() const { return m_countNanLongHasBeenSet; } /** *

The number of NAN (not a number) values in the field. * CountNanLong is used instead of CountNan if the value * is greater than 2,147,483,647.

*/ inline void SetCountNanLong(long long value) { m_countNanLongHasBeenSet = true; m_countNanLong = value; } /** *

The number of NAN (not a number) values in the field. * CountNanLong is used instead of CountNan if the value * is greater than 2,147,483,647.

*/ inline Statistics& WithCountNanLong(long long value) { SetCountNanLong(value); return *this;} private: int m_count; bool m_countHasBeenSet = false; int m_countDistinct; bool m_countDistinctHasBeenSet = false; int m_countNull; bool m_countNullHasBeenSet = false; int m_countNan; bool m_countNanHasBeenSet = false; Aws::String m_min; bool m_minHasBeenSet = false; Aws::String m_max; bool m_maxHasBeenSet = false; double m_avg; bool m_avgHasBeenSet = false; double m_stddev; bool m_stddevHasBeenSet = false; long long m_countLong; bool m_countLongHasBeenSet = false; long long m_countDistinctLong; bool m_countDistinctLongHasBeenSet = false; long long m_countNullLong; bool m_countNullLongHasBeenSet = false; long long m_countNanLong; bool m_countNanLongHasBeenSet = false; }; } // namespace Model } // namespace ForecastService } // namespace Aws