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

A list of errors that can occur when registering partition indexes for an * existing table.

These errors give the details about why an index * registration failed and provide a limited number of partitions in the response, * so that you can fix the partitions at fault and try registering the index again. * The most common set of errors that can occur are categorized as follows:

*
  • EncryptedPartitionError: The partitions are encrypted.

  • *
  • InvalidPartitionTypeDataError: The partition value doesn't match the * data type for that partition column.

  • *

    MissingPartitionValueError: The partitions are encrypted.

  • *

    UnsupportedPartitionCharacterError: Characters inside the partition value are * not supported. For example: U+0000 , U+0001, U+0002.

  • *

    InternalError: Any error which does not belong to other error codes.

    *

See Also:

AWS * API Reference

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

The error code for an error that occurred when registering partition indexes * for an existing table.

*/ inline const BackfillErrorCode& GetCode() const{ return m_code; } /** *

The error code for an error that occurred when registering partition indexes * for an existing table.

*/ inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; } /** *

The error code for an error that occurred when registering partition indexes * for an existing table.

*/ inline void SetCode(const BackfillErrorCode& value) { m_codeHasBeenSet = true; m_code = value; } /** *

The error code for an error that occurred when registering partition indexes * for an existing table.

*/ inline void SetCode(BackfillErrorCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); } /** *

The error code for an error that occurred when registering partition indexes * for an existing table.

*/ inline BackfillError& WithCode(const BackfillErrorCode& value) { SetCode(value); return *this;} /** *

The error code for an error that occurred when registering partition indexes * for an existing table.

*/ inline BackfillError& WithCode(BackfillErrorCode&& value) { SetCode(std::move(value)); return *this;} /** *

A list of a limited number of partitions in the response.

*/ inline const Aws::Vector& GetPartitions() const{ return m_partitions; } /** *

A list of a limited number of partitions in the response.

*/ inline bool PartitionsHasBeenSet() const { return m_partitionsHasBeenSet; } /** *

A list of a limited number of partitions in the response.

*/ inline void SetPartitions(const Aws::Vector& value) { m_partitionsHasBeenSet = true; m_partitions = value; } /** *

A list of a limited number of partitions in the response.

*/ inline void SetPartitions(Aws::Vector&& value) { m_partitionsHasBeenSet = true; m_partitions = std::move(value); } /** *

A list of a limited number of partitions in the response.

*/ inline BackfillError& WithPartitions(const Aws::Vector& value) { SetPartitions(value); return *this;} /** *

A list of a limited number of partitions in the response.

*/ inline BackfillError& WithPartitions(Aws::Vector&& value) { SetPartitions(std::move(value)); return *this;} /** *

A list of a limited number of partitions in the response.

*/ inline BackfillError& AddPartitions(const PartitionValueList& value) { m_partitionsHasBeenSet = true; m_partitions.push_back(value); return *this; } /** *

A list of a limited number of partitions in the response.

*/ inline BackfillError& AddPartitions(PartitionValueList&& value) { m_partitionsHasBeenSet = true; m_partitions.push_back(std::move(value)); return *this; } private: BackfillErrorCode m_code; bool m_codeHasBeenSet = false; Aws::Vector m_partitions; bool m_partitionsHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws