/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include 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
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::VectorA 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::VectorA list of a limited number of partitions in the response.
*/ inline void SetPartitions(Aws::VectorA list of a limited number of partitions in the response.
*/ inline BackfillError& WithPartitions(const Aws::VectorA list of a limited number of partitions in the response.
*/ inline BackfillError& WithPartitions(Aws::VectorA 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