/* * Copyright 2018-2023 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. */ package com.amazonaws.services.glue.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* 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. *
** The error code for an error that occurred when registering partition indexes for an existing table. *
*/ private String code; /** ** A list of a limited number of partitions in the response. *
*/ private java.util.List* The error code for an error that occurred when registering partition indexes for an existing table. *
* * @param code * The error code for an error that occurred when registering partition indexes for an existing table. * @see BackfillErrorCode */ public void setCode(String code) { this.code = code; } /** ** The error code for an error that occurred when registering partition indexes for an existing table. *
* * @return The error code for an error that occurred when registering partition indexes for an existing table. * @see BackfillErrorCode */ public String getCode() { return this.code; } /** ** The error code for an error that occurred when registering partition indexes for an existing table. *
* * @param code * The error code for an error that occurred when registering partition indexes for an existing table. * @return Returns a reference to this object so that method calls can be chained together. * @see BackfillErrorCode */ public BackfillError withCode(String code) { setCode(code); return this; } /** ** The error code for an error that occurred when registering partition indexes for an existing table. *
* * @param code * The error code for an error that occurred when registering partition indexes for an existing table. * @return Returns a reference to this object so that method calls can be chained together. * @see BackfillErrorCode */ public BackfillError withCode(BackfillErrorCode code) { this.code = code.toString(); return this; } /** ** A list of a limited number of partitions in the response. *
* * @return A list of a limited number of partitions in the response. */ public java.util.List* A list of a limited number of partitions in the response. *
* * @param partitions * A list of a limited number of partitions in the response. */ public void setPartitions(java.util.Collection* A list of a limited number of partitions in the response. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setPartitions(java.util.Collection)} or {@link #withPartitions(java.util.Collection)} if you want to * override the existing values. *
* * @param partitions * A list of a limited number of partitions in the response. * @return Returns a reference to this object so that method calls can be chained together. */ public BackfillError withPartitions(PartitionValueList... partitions) { if (this.partitions == null) { setPartitions(new java.util.ArrayList* A list of a limited number of partitions in the response. *
* * @param partitions * A list of a limited number of partitions in the response. * @return Returns a reference to this object so that method calls can be chained together. */ public BackfillError withPartitions(java.util.Collection