/** * 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 Glue { namespace Model { /** *

Defines column statistics supported for fixed-point number data * columns.

See Also:

AWS * API Reference

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

The lowest value in the column.

*/ inline const DecimalNumber& GetMinimumValue() const{ return m_minimumValue; } /** *

The lowest value in the column.

*/ inline bool MinimumValueHasBeenSet() const { return m_minimumValueHasBeenSet; } /** *

The lowest value in the column.

*/ inline void SetMinimumValue(const DecimalNumber& value) { m_minimumValueHasBeenSet = true; m_minimumValue = value; } /** *

The lowest value in the column.

*/ inline void SetMinimumValue(DecimalNumber&& value) { m_minimumValueHasBeenSet = true; m_minimumValue = std::move(value); } /** *

The lowest value in the column.

*/ inline DecimalColumnStatisticsData& WithMinimumValue(const DecimalNumber& value) { SetMinimumValue(value); return *this;} /** *

The lowest value in the column.

*/ inline DecimalColumnStatisticsData& WithMinimumValue(DecimalNumber&& value) { SetMinimumValue(std::move(value)); return *this;} /** *

The highest value in the column.

*/ inline const DecimalNumber& GetMaximumValue() const{ return m_maximumValue; } /** *

The highest value in the column.

*/ inline bool MaximumValueHasBeenSet() const { return m_maximumValueHasBeenSet; } /** *

The highest value in the column.

*/ inline void SetMaximumValue(const DecimalNumber& value) { m_maximumValueHasBeenSet = true; m_maximumValue = value; } /** *

The highest value in the column.

*/ inline void SetMaximumValue(DecimalNumber&& value) { m_maximumValueHasBeenSet = true; m_maximumValue = std::move(value); } /** *

The highest value in the column.

*/ inline DecimalColumnStatisticsData& WithMaximumValue(const DecimalNumber& value) { SetMaximumValue(value); return *this;} /** *

The highest value in the column.

*/ inline DecimalColumnStatisticsData& WithMaximumValue(DecimalNumber&& value) { SetMaximumValue(std::move(value)); return *this;} /** *

The number of null values in the column.

*/ inline long long GetNumberOfNulls() const{ return m_numberOfNulls; } /** *

The number of null values in the column.

*/ inline bool NumberOfNullsHasBeenSet() const { return m_numberOfNullsHasBeenSet; } /** *

The number of null values in the column.

*/ inline void SetNumberOfNulls(long long value) { m_numberOfNullsHasBeenSet = true; m_numberOfNulls = value; } /** *

The number of null values in the column.

*/ inline DecimalColumnStatisticsData& WithNumberOfNulls(long long value) { SetNumberOfNulls(value); return *this;} /** *

The number of distinct values in a column.

*/ inline long long GetNumberOfDistinctValues() const{ return m_numberOfDistinctValues; } /** *

The number of distinct values in a column.

*/ inline bool NumberOfDistinctValuesHasBeenSet() const { return m_numberOfDistinctValuesHasBeenSet; } /** *

The number of distinct values in a column.

*/ inline void SetNumberOfDistinctValues(long long value) { m_numberOfDistinctValuesHasBeenSet = true; m_numberOfDistinctValues = value; } /** *

The number of distinct values in a column.

*/ inline DecimalColumnStatisticsData& WithNumberOfDistinctValues(long long value) { SetNumberOfDistinctValues(value); return *this;} private: DecimalNumber m_minimumValue; bool m_minimumValueHasBeenSet = false; DecimalNumber m_maximumValue; bool m_maximumValueHasBeenSet = false; long long m_numberOfNulls; bool m_numberOfNullsHasBeenSet = false; long long m_numberOfDistinctValues; bool m_numberOfDistinctValuesHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws