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

Defines column statistics supported for character sequence data * values.

See Also:

AWS * API Reference

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

The size of the longest string in the column.

*/ inline long long GetMaximumLength() const{ return m_maximumLength; } /** *

The size of the longest string in the column.

*/ inline bool MaximumLengthHasBeenSet() const { return m_maximumLengthHasBeenSet; } /** *

The size of the longest string in the column.

*/ inline void SetMaximumLength(long long value) { m_maximumLengthHasBeenSet = true; m_maximumLength = value; } /** *

The size of the longest string in the column.

*/ inline StringColumnStatisticsData& WithMaximumLength(long long value) { SetMaximumLength(value); return *this;} /** *

The average string length in the column.

*/ inline double GetAverageLength() const{ return m_averageLength; } /** *

The average string length in the column.

*/ inline bool AverageLengthHasBeenSet() const { return m_averageLengthHasBeenSet; } /** *

The average string length in the column.

*/ inline void SetAverageLength(double value) { m_averageLengthHasBeenSet = true; m_averageLength = value; } /** *

The average string length in the column.

*/ inline StringColumnStatisticsData& WithAverageLength(double value) { SetAverageLength(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 StringColumnStatisticsData& 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 StringColumnStatisticsData& WithNumberOfDistinctValues(long long value) { SetNumberOfDistinctValues(value); return *this;} private: long long m_maximumLength; bool m_maximumLengthHasBeenSet = false; double m_averageLength; bool m_averageLengthHasBeenSet = false; long long m_numberOfNulls; bool m_numberOfNullsHasBeenSet = false; long long m_numberOfDistinctValues; bool m_numberOfDistinctValuesHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws