/** * 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 { /** *

An error record for table operations.

See Also:

AWS API * Reference

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

The name of the table. For Hive compatibility, this must be entirely * lowercase.

*/ inline const Aws::String& GetTableName() const{ return m_tableName; } /** *

The name of the table. For Hive compatibility, this must be entirely * lowercase.

*/ inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; } /** *

The name of the table. For Hive compatibility, this must be entirely * lowercase.

*/ inline void SetTableName(const Aws::String& value) { m_tableNameHasBeenSet = true; m_tableName = value; } /** *

The name of the table. For Hive compatibility, this must be entirely * lowercase.

*/ inline void SetTableName(Aws::String&& value) { m_tableNameHasBeenSet = true; m_tableName = std::move(value); } /** *

The name of the table. For Hive compatibility, this must be entirely * lowercase.

*/ inline void SetTableName(const char* value) { m_tableNameHasBeenSet = true; m_tableName.assign(value); } /** *

The name of the table. For Hive compatibility, this must be entirely * lowercase.

*/ inline TableError& WithTableName(const Aws::String& value) { SetTableName(value); return *this;} /** *

The name of the table. For Hive compatibility, this must be entirely * lowercase.

*/ inline TableError& WithTableName(Aws::String&& value) { SetTableName(std::move(value)); return *this;} /** *

The name of the table. For Hive compatibility, this must be entirely * lowercase.

*/ inline TableError& WithTableName(const char* value) { SetTableName(value); return *this;} /** *

The details about the error.

*/ inline const ErrorDetail& GetErrorDetail() const{ return m_errorDetail; } /** *

The details about the error.

*/ inline bool ErrorDetailHasBeenSet() const { return m_errorDetailHasBeenSet; } /** *

The details about the error.

*/ inline void SetErrorDetail(const ErrorDetail& value) { m_errorDetailHasBeenSet = true; m_errorDetail = value; } /** *

The details about the error.

*/ inline void SetErrorDetail(ErrorDetail&& value) { m_errorDetailHasBeenSet = true; m_errorDetail = std::move(value); } /** *

The details about the error.

*/ inline TableError& WithErrorDetail(const ErrorDetail& value) { SetErrorDetail(value); return *this;} /** *

The details about the error.

*/ inline TableError& WithErrorDetail(ErrorDetail&& value) { SetErrorDetail(std::move(value)); return *this;} private: Aws::String m_tableName; bool m_tableNameHasBeenSet = false; ErrorDetail m_errorDetail; bool m_errorDetailHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws