/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the glue-2017-03-31.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Glue.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.
///
///
///
public partial class BackfillError
{
private BackfillErrorCode _code;
private List _partitions = new List();
///
/// Gets and sets the property Code.
///
/// The error code for an error that occurred when registering partition indexes for an
/// existing table.
///
///
public BackfillErrorCode Code
{
get { return this._code; }
set { this._code = value; }
}
// Check to see if Code property is set
internal bool IsSetCode()
{
return this._code != null;
}
///
/// Gets and sets the property Partitions.
///
/// A list of a limited number of partitions in the response.
///
///
public List Partitions
{
get { return this._partitions; }
set { this._partitions = value; }
}
// Check to see if Partitions property is set
internal bool IsSetPartitions()
{
return this._partitions != null && this._partitions.Count > 0;
}
}
}