/* * 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 classifier for custom CSV
content.
*
* The name of the classifier. *
*/ private String name; /** ** The time that this classifier was registered. *
*/ private java.util.Date creationTime; /** ** The time that this classifier was last updated. *
*/ private java.util.Date lastUpdated; /** ** The version of this classifier. *
*/ private Long version; /** ** 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. It 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
* .
*
* Enables the processing of files that contain only one column. *
*/ private Boolean allowSingleColumn; /** ** Enables the custom datatype to be configured. *
*/ private Boolean customDatatypeConfigured; /** ** A list of custom datatypes including "BINARY", "BOOLEAN", "DATE", "DECIMAL", "DOUBLE", "FLOAT", "INT", "LONG", * "SHORT", "STRING", "TIMESTAMP". *
*/ 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 CsvClassifier withName(String name) { setName(name); return this; } /** ** The time that this classifier was registered. *
* * @param creationTime * The time that this classifier was registered. */ public void setCreationTime(java.util.Date creationTime) { this.creationTime = creationTime; } /** ** The time that this classifier was registered. *
* * @return The time that this classifier was registered. */ public java.util.Date getCreationTime() { return this.creationTime; } /** ** The time that this classifier was registered. *
* * @param creationTime * The time that this classifier was registered. * @return Returns a reference to this object so that method calls can be chained together. */ public CsvClassifier withCreationTime(java.util.Date creationTime) { setCreationTime(creationTime); return this; } /** ** The time that this classifier was last updated. *
* * @param lastUpdated * The time that this classifier was last updated. */ public void setLastUpdated(java.util.Date lastUpdated) { this.lastUpdated = lastUpdated; } /** ** The time that this classifier was last updated. *
* * @return The time that this classifier was last updated. */ public java.util.Date getLastUpdated() { return this.lastUpdated; } /** ** The time that this classifier was last updated. *
* * @param lastUpdated * The time that this classifier was last updated. * @return Returns a reference to this object so that method calls can be chained together. */ public CsvClassifier withLastUpdated(java.util.Date lastUpdated) { setLastUpdated(lastUpdated); return this; } /** ** The version of this classifier. *
* * @param version * The version of this classifier. */ public void setVersion(Long version) { this.version = version; } /** ** The version of this classifier. *
* * @return The version of this classifier. */ public Long getVersion() { return this.version; } /** ** The version of this classifier. *
* * @param version * The version of this classifier. * @return Returns a reference to this object so that method calls can be chained together. */ public CsvClassifier withVersion(Long version) { setVersion(version); 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 CsvClassifier withDelimiter(String delimiter) { setDelimiter(delimiter); return this; } /** ** A custom symbol to denote what combines content into a single column value. It must be different from the column * delimiter. *
* * @param quoteSymbol * A custom symbol to denote what combines content into a single column value. It 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. It must be different from the column * delimiter. *
* * @return A custom symbol to denote what combines content into a single column value. It 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. It must be different from the column * delimiter. *
* * @param quoteSymbol * A custom symbol to denote what combines content into a single column value. It must be different from the * column delimiter. * @return Returns a reference to this object so that method calls can be chained together. */ public CsvClassifier 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 CsvClassifier 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 CsvClassifier 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 CsvClassifier 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 CsvClassifier withHeader(java.util.Collection
* Specifies not to trim values before identifying the type of column values. The default value is true
* .
*
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
* .
*
true
.
*/
public Boolean getDisableValueTrimming() {
return this.disableValueTrimming;
}
/**
*
* Specifies not to trim values before identifying the type of column values. The default value is true
* .
*
true
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CsvClassifier withDisableValueTrimming(Boolean disableValueTrimming) {
setDisableValueTrimming(disableValueTrimming);
return this;
}
/**
*
* Specifies not to trim values before identifying the type of column values. The default value is true
* .
*
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 CsvClassifier 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 custom datatype to be configured. *
* * @param customDatatypeConfigured * Enables the custom datatype to be configured. */ public void setCustomDatatypeConfigured(Boolean customDatatypeConfigured) { this.customDatatypeConfigured = customDatatypeConfigured; } /** ** Enables the custom datatype to be configured. *
* * @return Enables the custom datatype to be configured. */ public Boolean getCustomDatatypeConfigured() { return this.customDatatypeConfigured; } /** ** Enables the custom datatype to be configured. *
* * @param customDatatypeConfigured * Enables the custom datatype to be configured. * @return Returns a reference to this object so that method calls can be chained together. */ public CsvClassifier withCustomDatatypeConfigured(Boolean customDatatypeConfigured) { setCustomDatatypeConfigured(customDatatypeConfigured); return this; } /** ** Enables the custom datatype to be configured. *
* * @return Enables the custom datatype to be configured. */ public Boolean isCustomDatatypeConfigured() { return this.customDatatypeConfigured; } /** ** A list of custom datatypes including "BINARY", "BOOLEAN", "DATE", "DECIMAL", "DOUBLE", "FLOAT", "INT", "LONG", * "SHORT", "STRING", "TIMESTAMP". *
* * @return A list of custom datatypes including "BINARY", "BOOLEAN", "DATE", "DECIMAL", "DOUBLE", "FLOAT", "INT", * "LONG", "SHORT", "STRING", "TIMESTAMP". */ public java.util.List* A list of custom datatypes including "BINARY", "BOOLEAN", "DATE", "DECIMAL", "DOUBLE", "FLOAT", "INT", "LONG", * "SHORT", "STRING", "TIMESTAMP". *
* * @param customDatatypes * A list of custom datatypes including "BINARY", "BOOLEAN", "DATE", "DECIMAL", "DOUBLE", "FLOAT", "INT", * "LONG", "SHORT", "STRING", "TIMESTAMP". */ public void setCustomDatatypes(java.util.Collection* A list of custom datatypes including "BINARY", "BOOLEAN", "DATE", "DECIMAL", "DOUBLE", "FLOAT", "INT", "LONG", * "SHORT", "STRING", "TIMESTAMP". *
** 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 * A list of custom datatypes including "BINARY", "BOOLEAN", "DATE", "DECIMAL", "DOUBLE", "FLOAT", "INT", * "LONG", "SHORT", "STRING", "TIMESTAMP". * @return Returns a reference to this object so that method calls can be chained together. */ public CsvClassifier withCustomDatatypes(String... customDatatypes) { if (this.customDatatypes == null) { setCustomDatatypes(new java.util.ArrayList* A list of custom datatypes including "BINARY", "BOOLEAN", "DATE", "DECIMAL", "DOUBLE", "FLOAT", "INT", "LONG", * "SHORT", "STRING", "TIMESTAMP". *
* * @param customDatatypes * A list of custom datatypes including "BINARY", "BOOLEAN", "DATE", "DECIMAL", "DOUBLE", "FLOAT", "INT", * "LONG", "SHORT", "STRING", "TIMESTAMP". * @return Returns a reference to this object so that method calls can be chained together. */ public CsvClassifier withCustomDatatypes(java.util.Collection