/* * 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; /** *
* Specifies a custom CSV classifier for CreateClassifier
to create.
*
* The name of the classifier. *
*/ private String name; /** ** A custom symbol to denote what separates each column entry in the row. *
*/ private String delimiter; /** ** A custom symbol to denote what combines content into a single column value. Must be different from the column * delimiter. *
*/ private String quoteSymbol; /** ** Indicates whether the CSV file contains a header. *
*/ private String containsHeader; /** ** A list of strings representing column names. *
*/ private java.util.List* Specifies not to trim values before identifying the type of column values. The default value is true. *
*/ private Boolean disableValueTrimming; /** ** Enables the processing of files that contain only one column. *
*/ private Boolean allowSingleColumn; /** ** Enables the configuration of custom datatypes. *
*/ private Boolean customDatatypeConfigured; /** ** Creates a list of supported custom datatypes. *
*/ private java.util.List* The name of the classifier. *
* * @param name * The name of the classifier. */ public void setName(String name) { this.name = name; } /** ** The name of the classifier. *
* * @return The name of the classifier. */ public String getName() { return this.name; } /** ** The name of the classifier. *
* * @param name * The name of the classifier. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateCsvClassifierRequest withName(String name) { setName(name); return this; } /** ** A custom symbol to denote what separates each column entry in the row. *
* * @param delimiter * A custom symbol to denote what separates each column entry in the row. */ public void setDelimiter(String delimiter) { this.delimiter = delimiter; } /** ** A custom symbol to denote what separates each column entry in the row. *
* * @return A custom symbol to denote what separates each column entry in the row. */ public String getDelimiter() { return this.delimiter; } /** ** A custom symbol to denote what separates each column entry in the row. *
* * @param delimiter * A custom symbol to denote what separates each column entry in the row. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateCsvClassifierRequest withDelimiter(String delimiter) { setDelimiter(delimiter); return this; } /** ** A custom symbol to denote what combines content into a single column value. Must be different from the column * delimiter. *
* * @param quoteSymbol * A custom symbol to denote what combines content into a single column value. Must be different from the * column delimiter. */ public void setQuoteSymbol(String quoteSymbol) { this.quoteSymbol = quoteSymbol; } /** ** A custom symbol to denote what combines content into a single column value. Must be different from the column * delimiter. *
* * @return A custom symbol to denote what combines content into a single column value. Must be different from the * column delimiter. */ public String getQuoteSymbol() { return this.quoteSymbol; } /** ** A custom symbol to denote what combines content into a single column value. Must be different from the column * delimiter. *
* * @param quoteSymbol * A custom symbol to denote what combines content into a single column value. Must be different from the * column delimiter. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateCsvClassifierRequest withQuoteSymbol(String quoteSymbol) { setQuoteSymbol(quoteSymbol); return this; } /** ** Indicates whether the CSV file contains a header. *
* * @param containsHeader * Indicates whether the CSV file contains a header. * @see CsvHeaderOption */ public void setContainsHeader(String containsHeader) { this.containsHeader = containsHeader; } /** ** Indicates whether the CSV file contains a header. *
* * @return Indicates whether the CSV file contains a header. * @see CsvHeaderOption */ public String getContainsHeader() { return this.containsHeader; } /** ** Indicates whether the CSV file contains a header. *
* * @param containsHeader * Indicates whether the CSV file contains a header. * @return Returns a reference to this object so that method calls can be chained together. * @see CsvHeaderOption */ public CreateCsvClassifierRequest withContainsHeader(String containsHeader) { setContainsHeader(containsHeader); return this; } /** ** Indicates whether the CSV file contains a header. *
* * @param containsHeader * Indicates whether the CSV file contains a header. * @return Returns a reference to this object so that method calls can be chained together. * @see CsvHeaderOption */ public CreateCsvClassifierRequest withContainsHeader(CsvHeaderOption containsHeader) { this.containsHeader = containsHeader.toString(); return this; } /** ** A list of strings representing column names. *
* * @return A list of strings representing column names. */ public java.util.List* A list of strings representing column names. *
* * @param header * A list of strings representing column names. */ public void setHeader(java.util.Collection* A list of strings representing column names. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setHeader(java.util.Collection)} or {@link #withHeader(java.util.Collection)} if you want to override the * existing values. *
* * @param header * A list of strings representing column names. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateCsvClassifierRequest withHeader(String... header) { if (this.header == null) { setHeader(new java.util.ArrayList* A list of strings representing column names. *
* * @param header * A list of strings representing column names. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateCsvClassifierRequest withHeader(java.util.Collection* Specifies not to trim values before identifying the type of column values. The default value is true. *
* * @param disableValueTrimming * Specifies not to trim values before identifying the type of column values. The default value is true. */ public void setDisableValueTrimming(Boolean disableValueTrimming) { this.disableValueTrimming = disableValueTrimming; } /** ** Specifies not to trim values before identifying the type of column values. The default value is true. *
* * @return Specifies not to trim values before identifying the type of column values. The default value is true. */ public Boolean getDisableValueTrimming() { return this.disableValueTrimming; } /** ** Specifies not to trim values before identifying the type of column values. The default value is true. *
* * @param disableValueTrimming * Specifies not to trim values before identifying the type of column values. The default value is true. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateCsvClassifierRequest withDisableValueTrimming(Boolean disableValueTrimming) { setDisableValueTrimming(disableValueTrimming); return this; } /** ** Specifies not to trim values before identifying the type of column values. The default value is true. *
* * @return Specifies not to trim values before identifying the type of column values. The default value is true. */ public Boolean isDisableValueTrimming() { return this.disableValueTrimming; } /** ** Enables the processing of files that contain only one column. *
* * @param allowSingleColumn * Enables the processing of files that contain only one column. */ public void setAllowSingleColumn(Boolean allowSingleColumn) { this.allowSingleColumn = allowSingleColumn; } /** ** Enables the processing of files that contain only one column. *
* * @return Enables the processing of files that contain only one column. */ public Boolean getAllowSingleColumn() { return this.allowSingleColumn; } /** ** Enables the processing of files that contain only one column. *
* * @param allowSingleColumn * Enables the processing of files that contain only one column. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateCsvClassifierRequest withAllowSingleColumn(Boolean allowSingleColumn) { setAllowSingleColumn(allowSingleColumn); return this; } /** ** Enables the processing of files that contain only one column. *
* * @return Enables the processing of files that contain only one column. */ public Boolean isAllowSingleColumn() { return this.allowSingleColumn; } /** ** Enables the configuration of custom datatypes. *
* * @param customDatatypeConfigured * Enables the configuration of custom datatypes. */ public void setCustomDatatypeConfigured(Boolean customDatatypeConfigured) { this.customDatatypeConfigured = customDatatypeConfigured; } /** ** Enables the configuration of custom datatypes. *
* * @return Enables the configuration of custom datatypes. */ public Boolean getCustomDatatypeConfigured() { return this.customDatatypeConfigured; } /** ** Enables the configuration of custom datatypes. *
* * @param customDatatypeConfigured * Enables the configuration of custom datatypes. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateCsvClassifierRequest withCustomDatatypeConfigured(Boolean customDatatypeConfigured) { setCustomDatatypeConfigured(customDatatypeConfigured); return this; } /** ** Enables the configuration of custom datatypes. *
* * @return Enables the configuration of custom datatypes. */ public Boolean isCustomDatatypeConfigured() { return this.customDatatypeConfigured; } /** ** Creates a list of supported custom datatypes. *
* * @return Creates a list of supported custom datatypes. */ public java.util.List* Creates a list of supported custom datatypes. *
* * @param customDatatypes * Creates a list of supported custom datatypes. */ public void setCustomDatatypes(java.util.Collection* Creates a list of supported custom datatypes. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setCustomDatatypes(java.util.Collection)} or {@link #withCustomDatatypes(java.util.Collection)} if you * want to override the existing values. *
* * @param customDatatypes * Creates a list of supported custom datatypes. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateCsvClassifierRequest withCustomDatatypes(String... customDatatypes) { if (this.customDatatypes == null) { setCustomDatatypes(new java.util.ArrayList* Creates a list of supported custom datatypes. *
* * @param customDatatypes * Creates a list of supported custom datatypes. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateCsvClassifierRequest withCustomDatatypes(java.util.Collection