/* * 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.dynamodbv2.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Processing options for the CSV file being imported. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CsvOptions implements Serializable, Cloneable, StructuredPojo { /** ** The delimiter used for separating items in the CSV file being imported. *
*/ private String delimiter; /** ** List of the headers used to specify a common header for all source CSV files being imported. If this field is * specified then the first line of each CSV file is treated as data instead of the header. If this field is not * specified the the first line of each CSV file is treated as the header. *
*/ private java.util.List* The delimiter used for separating items in the CSV file being imported. *
* * @param delimiter * The delimiter used for separating items in the CSV file being imported. */ public void setDelimiter(String delimiter) { this.delimiter = delimiter; } /** ** The delimiter used for separating items in the CSV file being imported. *
* * @return The delimiter used for separating items in the CSV file being imported. */ public String getDelimiter() { return this.delimiter; } /** ** The delimiter used for separating items in the CSV file being imported. *
* * @param delimiter * The delimiter used for separating items in the CSV file being imported. * @return Returns a reference to this object so that method calls can be chained together. */ public CsvOptions withDelimiter(String delimiter) { setDelimiter(delimiter); return this; } /** ** List of the headers used to specify a common header for all source CSV files being imported. If this field is * specified then the first line of each CSV file is treated as data instead of the header. If this field is not * specified the the first line of each CSV file is treated as the header. *
* * @return List of the headers used to specify a common header for all source CSV files being imported. If this * field is specified then the first line of each CSV file is treated as data instead of the header. If this * field is not specified the the first line of each CSV file is treated as the header. */ public java.util.List* List of the headers used to specify a common header for all source CSV files being imported. If this field is * specified then the first line of each CSV file is treated as data instead of the header. If this field is not * specified the the first line of each CSV file is treated as the header. *
* * @param headerList * List of the headers used to specify a common header for all source CSV files being imported. If this field * is specified then the first line of each CSV file is treated as data instead of the header. If this field * is not specified the the first line of each CSV file is treated as the header. */ public void setHeaderList(java.util.Collection* List of the headers used to specify a common header for all source CSV files being imported. If this field is * specified then the first line of each CSV file is treated as data instead of the header. If this field is not * specified the the first line of each CSV file is treated as the header. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setHeaderList(java.util.Collection)} or {@link #withHeaderList(java.util.Collection)} if you want to * override the existing values. *
* * @param headerList * List of the headers used to specify a common header for all source CSV files being imported. If this field * is specified then the first line of each CSV file is treated as data instead of the header. If this field * is not specified the the first line of each CSV file is treated as the header. * @return Returns a reference to this object so that method calls can be chained together. */ public CsvOptions withHeaderList(String... headerList) { if (this.headerList == null) { setHeaderList(new java.util.ArrayList* List of the headers used to specify a common header for all source CSV files being imported. If this field is * specified then the first line of each CSV file is treated as data instead of the header. If this field is not * specified the the first line of each CSV file is treated as the header. *
* * @param headerList * List of the headers used to specify a common header for all source CSV files being imported. If this field * is specified then the first line of each CSV file is treated as data instead of the header. If this field * is not specified the the first line of each CSV file is treated as the header. * @return Returns a reference to this object so that method calls can be chained together. */ public CsvOptions withHeaderList(java.util.Collection