/* * 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 { /// /// Specifies a custom CSV classifier for CreateClassifier to create. /// public partial class CreateCsvClassifierRequest { private bool? _allowSingleColumn; private CsvHeaderOption _containsHeader; private bool? _customDatatypeConfigured; private List _customDatatypes = new List(); private string _delimiter; private bool? _disableValueTrimming; private List _header = new List(); private string _name; private string _quoteSymbol; /// /// Gets and sets the property AllowSingleColumn. /// /// Enables the processing of files that contain only one column. /// /// public bool AllowSingleColumn { get { return this._allowSingleColumn.GetValueOrDefault(); } set { this._allowSingleColumn = value; } } // Check to see if AllowSingleColumn property is set internal bool IsSetAllowSingleColumn() { return this._allowSingleColumn.HasValue; } /// /// Gets and sets the property ContainsHeader. /// /// Indicates whether the CSV file contains a header. /// /// public CsvHeaderOption ContainsHeader { get { return this._containsHeader; } set { this._containsHeader = value; } } // Check to see if ContainsHeader property is set internal bool IsSetContainsHeader() { return this._containsHeader != null; } /// /// Gets and sets the property CustomDatatypeConfigured. /// /// Enables the configuration of custom datatypes. /// /// public bool CustomDatatypeConfigured { get { return this._customDatatypeConfigured.GetValueOrDefault(); } set { this._customDatatypeConfigured = value; } } // Check to see if CustomDatatypeConfigured property is set internal bool IsSetCustomDatatypeConfigured() { return this._customDatatypeConfigured.HasValue; } /// /// Gets and sets the property CustomDatatypes. /// /// Creates a list of supported custom datatypes. /// /// public List CustomDatatypes { get { return this._customDatatypes; } set { this._customDatatypes = value; } } // Check to see if CustomDatatypes property is set internal bool IsSetCustomDatatypes() { return this._customDatatypes != null && this._customDatatypes.Count > 0; } /// /// Gets and sets the property Delimiter. /// /// A custom symbol to denote what separates each column entry in the row. /// /// [AWSProperty(Min=1, Max=1)] public string Delimiter { get { return this._delimiter; } set { this._delimiter = value; } } // Check to see if Delimiter property is set internal bool IsSetDelimiter() { return this._delimiter != null; } /// /// Gets and sets the property DisableValueTrimming. /// /// Specifies not to trim values before identifying the type of column values. The default /// value is true. /// /// public bool DisableValueTrimming { get { return this._disableValueTrimming.GetValueOrDefault(); } set { this._disableValueTrimming = value; } } // Check to see if DisableValueTrimming property is set internal bool IsSetDisableValueTrimming() { return this._disableValueTrimming.HasValue; } /// /// Gets and sets the property Header. /// /// A list of strings representing column names. /// /// public List Header { get { return this._header; } set { this._header = value; } } // Check to see if Header property is set internal bool IsSetHeader() { return this._header != null && this._header.Count > 0; } /// /// Gets and sets the property Name. /// /// The name of the classifier. /// /// [AWSProperty(Required=true, Min=1, Max=255)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// /// Gets and sets the property QuoteSymbol. /// /// A custom symbol to denote what combines content into a single column value. Must be /// different from the column delimiter. /// /// [AWSProperty(Min=1, Max=1)] public string QuoteSymbol { get { return this._quoteSymbol; } set { this._quoteSymbol = value; } } // Check to see if QuoteSymbol property is set internal bool IsSetQuoteSymbol() { return this._quoteSymbol != null; } } }