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

Encapsulates a ColumnStatistics object that failed and the * reason for failure.

See Also:

AWS * API Reference

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

The ColumnStatistics of the column.

*/ inline const ColumnStatistics& GetColumnStatistics() const{ return m_columnStatistics; } /** *

The ColumnStatistics of the column.

*/ inline bool ColumnStatisticsHasBeenSet() const { return m_columnStatisticsHasBeenSet; } /** *

The ColumnStatistics of the column.

*/ inline void SetColumnStatistics(const ColumnStatistics& value) { m_columnStatisticsHasBeenSet = true; m_columnStatistics = value; } /** *

The ColumnStatistics of the column.

*/ inline void SetColumnStatistics(ColumnStatistics&& value) { m_columnStatisticsHasBeenSet = true; m_columnStatistics = std::move(value); } /** *

The ColumnStatistics of the column.

*/ inline ColumnStatisticsError& WithColumnStatistics(const ColumnStatistics& value) { SetColumnStatistics(value); return *this;} /** *

The ColumnStatistics of the column.

*/ inline ColumnStatisticsError& WithColumnStatistics(ColumnStatistics&& value) { SetColumnStatistics(std::move(value)); return *this;} /** *

An error message with the reason for the failure of an operation.

*/ inline const ErrorDetail& GetError() const{ return m_error; } /** *

An error message with the reason for the failure of an operation.

*/ inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; } /** *

An error message with the reason for the failure of an operation.

*/ inline void SetError(const ErrorDetail& value) { m_errorHasBeenSet = true; m_error = value; } /** *

An error message with the reason for the failure of an operation.

*/ inline void SetError(ErrorDetail&& value) { m_errorHasBeenSet = true; m_error = std::move(value); } /** *

An error message with the reason for the failure of an operation.

*/ inline ColumnStatisticsError& WithError(const ErrorDetail& value) { SetError(value); return *this;} /** *

An error message with the reason for the failure of an operation.

*/ inline ColumnStatisticsError& WithError(ErrorDetail&& value) { SetError(std::move(value)); return *this;} private: ColumnStatistics m_columnStatistics; bool m_columnStatisticsHasBeenSet = false; ErrorDetail m_error; bool m_errorHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws