/* 
 * TSE Cloud - CO
 *
 * This is Swagger Docs for Document WebApi Teamsystemn Enterprise Cloud, more detail at [https://swagger.io](https://swagger.io).
 *
 * OpenAPI spec version: v2025.3000
 * 
 * Generated by: https://github.com/swagger-api/swagger-codegen.git
 */
using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
using SwaggerDateConverter = IO.Swagger.Client.SwaggerDateConverter;
namespace IO.Swagger.Model
{
    /// <summary>
    /// IE25_TRACCIATI - IELayoutCO&lt;br&gt;Proprietà chiave:&lt;ul&gt;&lt;li&gt;&lt;b&gt;CodLayout&lt;/b&gt;&lt;/li&gt;&lt;li&gt;&lt;b&gt;CodStructureType&lt;/b&gt;&lt;/li&gt;&lt;/ul&gt;
    /// </summary>
    [DataContract]
        public partial class IELayoutCODTO :  IEquatable<IELayoutCODTO>, IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="IELayoutCODTO" /> class.
        /// </summary>
        /// <param name="bytesToExclude">IE25_BYTEDAESCL - Bytes da escludere.</param>
        /// <param name="codLayout">IE25_TRACCIATO - Tracciato (required).</param>
        /// <param name="codStructureSubType">IE25_SOTTOTIPO_IE37 - Sottotipo struttura (required).</param>
        /// <param name="codStructureType">IE25_STRUTTURA_IE21 - Struttura (required).</param>
        /// <param name="description">IE25_DESCRIZIONE - Descrizione tracciato (required).</param>
        /// <param name="filePath">IE25_NOMEFILE - Percorso e nome file.</param>
        /// <param name="headerWithFieldNames">IE25_FLGINTESTAZIONE - Intestazione con nomi campi&lt;br&gt;&lt;ul&gt;&lt;li&gt;&lt;i&gt;0&lt;/i&gt; - No&lt;/li&gt;&lt;li&gt;&lt;i&gt;1&lt;/i&gt; - Si&lt;/li&gt;&lt;/ul&gt;.</param>
        /// <param name="note">IE25_NOTE - Note.</param>
        /// <param name="rowLength">IE25_LENREC - Lunghezza riga.</param>
        /// <param name="tableFile">IE25_TABELLAFILE - Tabella file.</param>
        /// <param name="tableSingle">IE25_TABELLA - Tabella.</param>
        /// <param name="typeCharset">IE25_INDCHARSET - Codifica&lt;br&gt;&lt;ul&gt;&lt;li&gt;&lt;i&gt;0&lt;/i&gt; - Ansi&lt;/li&gt;&lt;li&gt;&lt;i&gt;1&lt;/i&gt; - Utf-8&lt;/li&gt;&lt;/ul&gt;.</param>
        /// <param name="typeEndRow">IE25_INDFINERIGA - Indicatore fine riga&lt;br&gt;&lt;ul&gt;&lt;li&gt;&lt;i&gt;0&lt;/i&gt; - CR+LF&lt;/li&gt;&lt;li&gt;&lt;i&gt;1&lt;/i&gt; - CR&lt;/li&gt;&lt;li&gt;&lt;i&gt;2&lt;/i&gt; - LF&lt;/li&gt;&lt;li&gt;&lt;i&gt;3&lt;/i&gt; - Nessuno&lt;/li&gt;&lt;/ul&gt;.</param>
        /// <param name="typeFile">IE25_INDTIPOFILE - Tipo file&lt;br&gt;&lt;ul&gt;&lt;li&gt;&lt;i&gt;0&lt;/i&gt; - Testo&lt;/li&gt;&lt;li&gt;&lt;i&gt;1&lt;/i&gt; - Testo delimitato&lt;/li&gt;&lt;li&gt;&lt;i&gt;2&lt;/i&gt; - Binario&lt;/li&gt;&lt;li&gt;&lt;i&gt;3&lt;/i&gt; - Excel(Xls)&lt;/li&gt;&lt;li&gt;&lt;i&gt;4&lt;/i&gt; - XML&lt;/li&gt;&lt;li&gt;&lt;i&gt;5&lt;/i&gt; - Tabella&lt;/li&gt;&lt;li&gt;&lt;i&gt;6&lt;/i&gt; - Excel(Xlsx)&lt;/li&gt;&lt;/ul&gt;.</param>
        /// <param name="typeImpExp">IE25_INDIMPEXP - Modalità Import/Export&lt;br&gt;&lt;ul&gt;&lt;li&gt;&lt;i&gt;0&lt;/i&gt; - Import/Export&lt;/li&gt;&lt;li&gt;&lt;i&gt;1&lt;/i&gt; - Import&lt;/li&gt;&lt;li&gt;&lt;i&gt;2&lt;/i&gt; - Export&lt;/li&gt;&lt;/ul&gt;.</param>
        /// <param name="typeRecord">IE25_INDGESTTIPIREC - Gestione tipi record&lt;br&gt;&lt;ul&gt;&lt;li&gt;&lt;i&gt;0&lt;/i&gt; - No&lt;/li&gt;&lt;li&gt;&lt;i&gt;1&lt;/i&gt; - Si&lt;/li&gt;&lt;/ul&gt;.</param>
        /// <param name="typeSeparation">IE25_INDSEPARATORE - Separatore&lt;br&gt;&lt;ul&gt;&lt;li&gt;&lt;i&gt;0&lt;/i&gt; - Nessuno&lt;/li&gt;&lt;li&gt;&lt;i&gt;1&lt;/i&gt; - ,&lt;/li&gt;&lt;li&gt;&lt;i&gt;2&lt;/i&gt; - Punto (.)&lt;/li&gt;&lt;li&gt;&lt;i&gt;3&lt;/i&gt; - Barra (/)&lt;/li&gt;&lt;li&gt;&lt;i&gt;4&lt;/i&gt; - Tab&lt;/li&gt;&lt;li&gt;&lt;i&gt;5&lt;/i&gt; - !&lt;/li&gt;&lt;/ul&gt;.</param>
        /// <param name="typeTextQualification">IE25_INDQUALIFICATESTO - Qualificatore di testo&lt;br&gt;&lt;ul&gt;&lt;li&gt;&lt;i&gt;0&lt;/i&gt; - Nessuno&lt;/li&gt;&lt;li&gt;&lt;i&gt;1&lt;/i&gt; - Virgolette (\&quot;)&lt;/li&gt;&lt;li&gt;&lt;i&gt;2&lt;/i&gt; - Apice (&#x27;)&lt;/li&gt;&lt;li&gt;&lt;i&gt;3&lt;/i&gt; - Virgolette (\&quot;) e raddoppio virgolette presenti&lt;/li&gt;&lt;li&gt;&lt;i&gt;4&lt;/i&gt; - Apice (&#x27;) e raddoppio apici presenti&lt;/li&gt;&lt;/ul&gt;.</param>
        /// <param name="structureSubType">structureSubType (required).</param>
        /// <param name="structureType">structureType (required).</param>
        /// <param name="additionalData">additionalData.</param>
        /// <param name="pluginData">pluginData.</param>
        public IELayoutCODTO(double? bytesToExclude = default(double?), string codLayout = default(string), double? codStructureSubType = default(double?), int? codStructureType = default(int?), string description = default(string), string filePath = default(string), double? headerWithFieldNames = default(double?), string note = default(string), double? rowLength = default(double?), string tableFile = default(string), string tableSingle = default(string), int? typeCharset = default(int?), double? typeEndRow = default(double?), double? typeFile = default(double?), double? typeImpExp = default(double?), double? typeRecord = default(double?), double? typeSeparation = default(double?), int? typeTextQualification = default(int?), IEStructureSubTypeCODTO structureSubType = default(IEStructureSubTypeCODTO), IEStructureTypeCODTO structureType = default(IEStructureTypeCODTO), Dictionary<string, Object> additionalData = default(Dictionary<string, Object>), Dictionary<string, Object> pluginData = default(Dictionary<string, Object>))
        {
            // to ensure "codLayout" is required (not null)
            if (codLayout == null)
            {
                throw new InvalidDataException("codLayout is a required property for IELayoutCODTO and cannot be null");
            }
            else
            {
                this.CodLayout = codLayout;
            }
            // to ensure "codStructureSubType" is required (not null)
            if (codStructureSubType == null)
            {
                throw new InvalidDataException("codStructureSubType is a required property for IELayoutCODTO and cannot be null");
            }
            else
            {
                this.CodStructureSubType = codStructureSubType;
            }
            // to ensure "codStructureType" is required (not null)
            if (codStructureType == null)
            {
                throw new InvalidDataException("codStructureType is a required property for IELayoutCODTO and cannot be null");
            }
            else
            {
                this.CodStructureType = codStructureType;
            }
            // to ensure "description" is required (not null)
            if (description == null)
            {
                throw new InvalidDataException("description is a required property for IELayoutCODTO and cannot be null");
            }
            else
            {
                this.Description = description;
            }
            // to ensure "structureSubType" is required (not null)
            if (structureSubType == null)
            {
                throw new InvalidDataException("structureSubType is a required property for IELayoutCODTO and cannot be null");
            }
            else
            {
                this.StructureSubType = structureSubType;
            }
            // to ensure "structureType" is required (not null)
            if (structureType == null)
            {
                throw new InvalidDataException("structureType is a required property for IELayoutCODTO and cannot be null");
            }
            else
            {
                this.StructureType = structureType;
            }
            this.BytesToExclude = bytesToExclude;
            this.FilePath = filePath;
            this.HeaderWithFieldNames = headerWithFieldNames;
            this.Note = note;
            this.RowLength = rowLength;
            this.TableFile = tableFile;
            this.TableSingle = tableSingle;
            this.TypeCharset = typeCharset;
            this.TypeEndRow = typeEndRow;
            this.TypeFile = typeFile;
            this.TypeImpExp = typeImpExp;
            this.TypeRecord = typeRecord;
            this.TypeSeparation = typeSeparation;
            this.TypeTextQualification = typeTextQualification;
            this.AdditionalData = additionalData;
            this.PluginData = pluginData;
        }
        
        /// <summary>
        /// IE25_BYTEDAESCL - Bytes da escludere
        /// </summary>
        /// <value>IE25_BYTEDAESCL - Bytes da escludere</value>
        [DataMember(Name="bytesToExclude", EmitDefaultValue=false)]
        public double? BytesToExclude { get; set; }

        /// <summary>
        /// IE25_TRACCIATO - Tracciato
        /// </summary>
        /// <value>IE25_TRACCIATO - Tracciato</value>
        [DataMember(Name="codLayout", EmitDefaultValue=false)]
        public string CodLayout { get; set; }

        /// <summary>
        /// IE25_SOTTOTIPO_IE37 - Sottotipo struttura
        /// </summary>
        /// <value>IE25_SOTTOTIPO_IE37 - Sottotipo struttura</value>
        [DataMember(Name="codStructureSubType", EmitDefaultValue=false)]
        public double? CodStructureSubType { get; set; }

        /// <summary>
        /// IE25_STRUTTURA_IE21 - Struttura
        /// </summary>
        /// <value>IE25_STRUTTURA_IE21 - Struttura</value>
        [DataMember(Name="codStructureType", EmitDefaultValue=false)]
        public int? CodStructureType { get; set; }

        /// <summary>
        /// IE25_DESCRIZIONE - Descrizione tracciato
        /// </summary>
        /// <value>IE25_DESCRIZIONE - Descrizione tracciato</value>
        [DataMember(Name="description", EmitDefaultValue=false)]
        public string Description { get; set; }

        /// <summary>
        /// IE25_NOMEFILE - Percorso e nome file
        /// </summary>
        /// <value>IE25_NOMEFILE - Percorso e nome file</value>
        [DataMember(Name="filePath", EmitDefaultValue=false)]
        public string FilePath { get; set; }

        /// <summary>
        /// IE25_FLGINTESTAZIONE - Intestazione con nomi campi&lt;br&gt;&lt;ul&gt;&lt;li&gt;&lt;i&gt;0&lt;/i&gt; - No&lt;/li&gt;&lt;li&gt;&lt;i&gt;1&lt;/i&gt; - Si&lt;/li&gt;&lt;/ul&gt;
        /// </summary>
        /// <value>IE25_FLGINTESTAZIONE - Intestazione con nomi campi&lt;br&gt;&lt;ul&gt;&lt;li&gt;&lt;i&gt;0&lt;/i&gt; - No&lt;/li&gt;&lt;li&gt;&lt;i&gt;1&lt;/i&gt; - Si&lt;/li&gt;&lt;/ul&gt;</value>
        [DataMember(Name="headerWithFieldNames", EmitDefaultValue=false)]
        public double? HeaderWithFieldNames { get; set; }

        /// <summary>
        /// IE25_NOTE - Note
        /// </summary>
        /// <value>IE25_NOTE - Note</value>
        [DataMember(Name="note", EmitDefaultValue=false)]
        public string Note { get; set; }

        /// <summary>
        /// IE25_LENREC - Lunghezza riga
        /// </summary>
        /// <value>IE25_LENREC - Lunghezza riga</value>
        [DataMember(Name="rowLength", EmitDefaultValue=false)]
        public double? RowLength { get; set; }

        /// <summary>
        /// IE25_TABELLAFILE - Tabella file
        /// </summary>
        /// <value>IE25_TABELLAFILE - Tabella file</value>
        [DataMember(Name="tableFile", EmitDefaultValue=false)]
        public string TableFile { get; set; }

        /// <summary>
        /// IE25_TABELLA - Tabella
        /// </summary>
        /// <value>IE25_TABELLA - Tabella</value>
        [DataMember(Name="tableSingle", EmitDefaultValue=false)]
        public string TableSingle { get; set; }

        /// <summary>
        /// IE25_INDCHARSET - Codifica&lt;br&gt;&lt;ul&gt;&lt;li&gt;&lt;i&gt;0&lt;/i&gt; - Ansi&lt;/li&gt;&lt;li&gt;&lt;i&gt;1&lt;/i&gt; - Utf-8&lt;/li&gt;&lt;/ul&gt;
        /// </summary>
        /// <value>IE25_INDCHARSET - Codifica&lt;br&gt;&lt;ul&gt;&lt;li&gt;&lt;i&gt;0&lt;/i&gt; - Ansi&lt;/li&gt;&lt;li&gt;&lt;i&gt;1&lt;/i&gt; - Utf-8&lt;/li&gt;&lt;/ul&gt;</value>
        [DataMember(Name="typeCharset", EmitDefaultValue=false)]
        public int? TypeCharset { get; set; }

        /// <summary>
        /// IE25_INDFINERIGA - Indicatore fine riga&lt;br&gt;&lt;ul&gt;&lt;li&gt;&lt;i&gt;0&lt;/i&gt; - CR+LF&lt;/li&gt;&lt;li&gt;&lt;i&gt;1&lt;/i&gt; - CR&lt;/li&gt;&lt;li&gt;&lt;i&gt;2&lt;/i&gt; - LF&lt;/li&gt;&lt;li&gt;&lt;i&gt;3&lt;/i&gt; - Nessuno&lt;/li&gt;&lt;/ul&gt;
        /// </summary>
        /// <value>IE25_INDFINERIGA - Indicatore fine riga&lt;br&gt;&lt;ul&gt;&lt;li&gt;&lt;i&gt;0&lt;/i&gt; - CR+LF&lt;/li&gt;&lt;li&gt;&lt;i&gt;1&lt;/i&gt; - CR&lt;/li&gt;&lt;li&gt;&lt;i&gt;2&lt;/i&gt; - LF&lt;/li&gt;&lt;li&gt;&lt;i&gt;3&lt;/i&gt; - Nessuno&lt;/li&gt;&lt;/ul&gt;</value>
        [DataMember(Name="typeEndRow", EmitDefaultValue=false)]
        public double? TypeEndRow { get; set; }

        /// <summary>
        /// IE25_INDTIPOFILE - Tipo file&lt;br&gt;&lt;ul&gt;&lt;li&gt;&lt;i&gt;0&lt;/i&gt; - Testo&lt;/li&gt;&lt;li&gt;&lt;i&gt;1&lt;/i&gt; - Testo delimitato&lt;/li&gt;&lt;li&gt;&lt;i&gt;2&lt;/i&gt; - Binario&lt;/li&gt;&lt;li&gt;&lt;i&gt;3&lt;/i&gt; - Excel(Xls)&lt;/li&gt;&lt;li&gt;&lt;i&gt;4&lt;/i&gt; - XML&lt;/li&gt;&lt;li&gt;&lt;i&gt;5&lt;/i&gt; - Tabella&lt;/li&gt;&lt;li&gt;&lt;i&gt;6&lt;/i&gt; - Excel(Xlsx)&lt;/li&gt;&lt;/ul&gt;
        /// </summary>
        /// <value>IE25_INDTIPOFILE - Tipo file&lt;br&gt;&lt;ul&gt;&lt;li&gt;&lt;i&gt;0&lt;/i&gt; - Testo&lt;/li&gt;&lt;li&gt;&lt;i&gt;1&lt;/i&gt; - Testo delimitato&lt;/li&gt;&lt;li&gt;&lt;i&gt;2&lt;/i&gt; - Binario&lt;/li&gt;&lt;li&gt;&lt;i&gt;3&lt;/i&gt; - Excel(Xls)&lt;/li&gt;&lt;li&gt;&lt;i&gt;4&lt;/i&gt; - XML&lt;/li&gt;&lt;li&gt;&lt;i&gt;5&lt;/i&gt; - Tabella&lt;/li&gt;&lt;li&gt;&lt;i&gt;6&lt;/i&gt; - Excel(Xlsx)&lt;/li&gt;&lt;/ul&gt;</value>
        [DataMember(Name="typeFile", EmitDefaultValue=false)]
        public double? TypeFile { get; set; }

        /// <summary>
        /// IE25_INDIMPEXP - Modalità Import/Export&lt;br&gt;&lt;ul&gt;&lt;li&gt;&lt;i&gt;0&lt;/i&gt; - Import/Export&lt;/li&gt;&lt;li&gt;&lt;i&gt;1&lt;/i&gt; - Import&lt;/li&gt;&lt;li&gt;&lt;i&gt;2&lt;/i&gt; - Export&lt;/li&gt;&lt;/ul&gt;
        /// </summary>
        /// <value>IE25_INDIMPEXP - Modalità Import/Export&lt;br&gt;&lt;ul&gt;&lt;li&gt;&lt;i&gt;0&lt;/i&gt; - Import/Export&lt;/li&gt;&lt;li&gt;&lt;i&gt;1&lt;/i&gt; - Import&lt;/li&gt;&lt;li&gt;&lt;i&gt;2&lt;/i&gt; - Export&lt;/li&gt;&lt;/ul&gt;</value>
        [DataMember(Name="typeImpExp", EmitDefaultValue=false)]
        public double? TypeImpExp { get; set; }

        /// <summary>
        /// IE25_INDGESTTIPIREC - Gestione tipi record&lt;br&gt;&lt;ul&gt;&lt;li&gt;&lt;i&gt;0&lt;/i&gt; - No&lt;/li&gt;&lt;li&gt;&lt;i&gt;1&lt;/i&gt; - Si&lt;/li&gt;&lt;/ul&gt;
        /// </summary>
        /// <value>IE25_INDGESTTIPIREC - Gestione tipi record&lt;br&gt;&lt;ul&gt;&lt;li&gt;&lt;i&gt;0&lt;/i&gt; - No&lt;/li&gt;&lt;li&gt;&lt;i&gt;1&lt;/i&gt; - Si&lt;/li&gt;&lt;/ul&gt;</value>
        [DataMember(Name="typeRecord", EmitDefaultValue=false)]
        public double? TypeRecord { get; set; }

        /// <summary>
        /// IE25_INDSEPARATORE - Separatore&lt;br&gt;&lt;ul&gt;&lt;li&gt;&lt;i&gt;0&lt;/i&gt; - Nessuno&lt;/li&gt;&lt;li&gt;&lt;i&gt;1&lt;/i&gt; - ,&lt;/li&gt;&lt;li&gt;&lt;i&gt;2&lt;/i&gt; - Punto (.)&lt;/li&gt;&lt;li&gt;&lt;i&gt;3&lt;/i&gt; - Barra (/)&lt;/li&gt;&lt;li&gt;&lt;i&gt;4&lt;/i&gt; - Tab&lt;/li&gt;&lt;li&gt;&lt;i&gt;5&lt;/i&gt; - !&lt;/li&gt;&lt;/ul&gt;
        /// </summary>
        /// <value>IE25_INDSEPARATORE - Separatore&lt;br&gt;&lt;ul&gt;&lt;li&gt;&lt;i&gt;0&lt;/i&gt; - Nessuno&lt;/li&gt;&lt;li&gt;&lt;i&gt;1&lt;/i&gt; - ,&lt;/li&gt;&lt;li&gt;&lt;i&gt;2&lt;/i&gt; - Punto (.)&lt;/li&gt;&lt;li&gt;&lt;i&gt;3&lt;/i&gt; - Barra (/)&lt;/li&gt;&lt;li&gt;&lt;i&gt;4&lt;/i&gt; - Tab&lt;/li&gt;&lt;li&gt;&lt;i&gt;5&lt;/i&gt; - !&lt;/li&gt;&lt;/ul&gt;</value>
        [DataMember(Name="typeSeparation", EmitDefaultValue=false)]
        public double? TypeSeparation { get; set; }

        /// <summary>
        /// IE25_INDQUALIFICATESTO - Qualificatore di testo&lt;br&gt;&lt;ul&gt;&lt;li&gt;&lt;i&gt;0&lt;/i&gt; - Nessuno&lt;/li&gt;&lt;li&gt;&lt;i&gt;1&lt;/i&gt; - Virgolette (\&quot;)&lt;/li&gt;&lt;li&gt;&lt;i&gt;2&lt;/i&gt; - Apice (&#x27;)&lt;/li&gt;&lt;li&gt;&lt;i&gt;3&lt;/i&gt; - Virgolette (\&quot;) e raddoppio virgolette presenti&lt;/li&gt;&lt;li&gt;&lt;i&gt;4&lt;/i&gt; - Apice (&#x27;) e raddoppio apici presenti&lt;/li&gt;&lt;/ul&gt;
        /// </summary>
        /// <value>IE25_INDQUALIFICATESTO - Qualificatore di testo&lt;br&gt;&lt;ul&gt;&lt;li&gt;&lt;i&gt;0&lt;/i&gt; - Nessuno&lt;/li&gt;&lt;li&gt;&lt;i&gt;1&lt;/i&gt; - Virgolette (\&quot;)&lt;/li&gt;&lt;li&gt;&lt;i&gt;2&lt;/i&gt; - Apice (&#x27;)&lt;/li&gt;&lt;li&gt;&lt;i&gt;3&lt;/i&gt; - Virgolette (\&quot;) e raddoppio virgolette presenti&lt;/li&gt;&lt;li&gt;&lt;i&gt;4&lt;/i&gt; - Apice (&#x27;) e raddoppio apici presenti&lt;/li&gt;&lt;/ul&gt;</value>
        [DataMember(Name="typeTextQualification", EmitDefaultValue=false)]
        public int? TypeTextQualification { get; set; }

        /// <summary>
        /// Gets or Sets StructureSubType
        /// </summary>
        [DataMember(Name="structureSubType", EmitDefaultValue=false)]
        public IEStructureSubTypeCODTO StructureSubType { get; set; }

        /// <summary>
        /// Gets or Sets StructureType
        /// </summary>
        [DataMember(Name="structureType", EmitDefaultValue=false)]
        public IEStructureTypeCODTO StructureType { get; set; }

        /// <summary>
        /// Gets or Sets AdditionalData
        /// </summary>
        [DataMember(Name="additionalData", EmitDefaultValue=false)]
        public Dictionary<string, Object> AdditionalData { get; set; }

        /// <summary>
        /// Gets or Sets PluginData
        /// </summary>
        [DataMember(Name="pluginData", EmitDefaultValue=false)]
        public Dictionary<string, Object> PluginData { get; set; }

        /// <summary>
        /// Returns the string presentation of the object
        /// </summary>
        /// <returns>String presentation of the object</returns>
        public override string ToString()
        {
            var sb = new StringBuilder();
            sb.Append("class IELayoutCODTO {\n");
            sb.Append("  BytesToExclude: ").Append(BytesToExclude).Append("\n");
            sb.Append("  CodLayout: ").Append(CodLayout).Append("\n");
            sb.Append("  CodStructureSubType: ").Append(CodStructureSubType).Append("\n");
            sb.Append("  CodStructureType: ").Append(CodStructureType).Append("\n");
            sb.Append("  Description: ").Append(Description).Append("\n");
            sb.Append("  FilePath: ").Append(FilePath).Append("\n");
            sb.Append("  HeaderWithFieldNames: ").Append(HeaderWithFieldNames).Append("\n");
            sb.Append("  Note: ").Append(Note).Append("\n");
            sb.Append("  RowLength: ").Append(RowLength).Append("\n");
            sb.Append("  TableFile: ").Append(TableFile).Append("\n");
            sb.Append("  TableSingle: ").Append(TableSingle).Append("\n");
            sb.Append("  TypeCharset: ").Append(TypeCharset).Append("\n");
            sb.Append("  TypeEndRow: ").Append(TypeEndRow).Append("\n");
            sb.Append("  TypeFile: ").Append(TypeFile).Append("\n");
            sb.Append("  TypeImpExp: ").Append(TypeImpExp).Append("\n");
            sb.Append("  TypeRecord: ").Append(TypeRecord).Append("\n");
            sb.Append("  TypeSeparation: ").Append(TypeSeparation).Append("\n");
            sb.Append("  TypeTextQualification: ").Append(TypeTextQualification).Append("\n");
            sb.Append("  StructureSubType: ").Append(StructureSubType).Append("\n");
            sb.Append("  StructureType: ").Append(StructureType).Append("\n");
            sb.Append("  AdditionalData: ").Append(AdditionalData).Append("\n");
            sb.Append("  PluginData: ").Append(PluginData).Append("\n");
            sb.Append("}\n");
            return sb.ToString();
        }
  
        /// <summary>
        /// Returns the JSON string presentation of the object
        /// </summary>
        /// <returns>JSON string presentation of the object</returns>
        public virtual string ToJson()
        {
            return JsonConvert.SerializeObject(this, Formatting.Indented);
        }

        /// <summary>
        /// Returns true if objects are equal
        /// </summary>
        /// <param name="input">Object to be compared</param>
        /// <returns>Boolean</returns>
        public override bool Equals(object input)
        {
            return this.Equals(input as IELayoutCODTO);
        }

        /// <summary>
        /// Returns true if IELayoutCODTO instances are equal
        /// </summary>
        /// <param name="input">Instance of IELayoutCODTO to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(IELayoutCODTO input)
        {
            if (input == null)
                return false;

            return 
                (
                    this.BytesToExclude == input.BytesToExclude ||
                    (this.BytesToExclude != null &&
                    this.BytesToExclude.Equals(input.BytesToExclude))
                ) && 
                (
                    this.CodLayout == input.CodLayout ||
                    (this.CodLayout != null &&
                    this.CodLayout.Equals(input.CodLayout))
                ) && 
                (
                    this.CodStructureSubType == input.CodStructureSubType ||
                    (this.CodStructureSubType != null &&
                    this.CodStructureSubType.Equals(input.CodStructureSubType))
                ) && 
                (
                    this.CodStructureType == input.CodStructureType ||
                    (this.CodStructureType != null &&
                    this.CodStructureType.Equals(input.CodStructureType))
                ) && 
                (
                    this.Description == input.Description ||
                    (this.Description != null &&
                    this.Description.Equals(input.Description))
                ) && 
                (
                    this.FilePath == input.FilePath ||
                    (this.FilePath != null &&
                    this.FilePath.Equals(input.FilePath))
                ) && 
                (
                    this.HeaderWithFieldNames == input.HeaderWithFieldNames ||
                    (this.HeaderWithFieldNames != null &&
                    this.HeaderWithFieldNames.Equals(input.HeaderWithFieldNames))
                ) && 
                (
                    this.Note == input.Note ||
                    (this.Note != null &&
                    this.Note.Equals(input.Note))
                ) && 
                (
                    this.RowLength == input.RowLength ||
                    (this.RowLength != null &&
                    this.RowLength.Equals(input.RowLength))
                ) && 
                (
                    this.TableFile == input.TableFile ||
                    (this.TableFile != null &&
                    this.TableFile.Equals(input.TableFile))
                ) && 
                (
                    this.TableSingle == input.TableSingle ||
                    (this.TableSingle != null &&
                    this.TableSingle.Equals(input.TableSingle))
                ) && 
                (
                    this.TypeCharset == input.TypeCharset ||
                    (this.TypeCharset != null &&
                    this.TypeCharset.Equals(input.TypeCharset))
                ) && 
                (
                    this.TypeEndRow == input.TypeEndRow ||
                    (this.TypeEndRow != null &&
                    this.TypeEndRow.Equals(input.TypeEndRow))
                ) && 
                (
                    this.TypeFile == input.TypeFile ||
                    (this.TypeFile != null &&
                    this.TypeFile.Equals(input.TypeFile))
                ) && 
                (
                    this.TypeImpExp == input.TypeImpExp ||
                    (this.TypeImpExp != null &&
                    this.TypeImpExp.Equals(input.TypeImpExp))
                ) && 
                (
                    this.TypeRecord == input.TypeRecord ||
                    (this.TypeRecord != null &&
                    this.TypeRecord.Equals(input.TypeRecord))
                ) && 
                (
                    this.TypeSeparation == input.TypeSeparation ||
                    (this.TypeSeparation != null &&
                    this.TypeSeparation.Equals(input.TypeSeparation))
                ) && 
                (
                    this.TypeTextQualification == input.TypeTextQualification ||
                    (this.TypeTextQualification != null &&
                    this.TypeTextQualification.Equals(input.TypeTextQualification))
                ) && 
                (
                    this.StructureSubType == input.StructureSubType ||
                    (this.StructureSubType != null &&
                    this.StructureSubType.Equals(input.StructureSubType))
                ) && 
                (
                    this.StructureType == input.StructureType ||
                    (this.StructureType != null &&
                    this.StructureType.Equals(input.StructureType))
                ) && 
                (
                    this.AdditionalData == input.AdditionalData ||
                    this.AdditionalData != null &&
                    input.AdditionalData != null &&
                    this.AdditionalData.SequenceEqual(input.AdditionalData)
                ) && 
                (
                    this.PluginData == input.PluginData ||
                    this.PluginData != null &&
                    input.PluginData != null &&
                    this.PluginData.SequenceEqual(input.PluginData)
                );
        }

        /// <summary>
        /// Gets the hash code
        /// </summary>
        /// <returns>Hash code</returns>
        public override int GetHashCode()
        {
            unchecked // Overflow is fine, just wrap
            {
                int hashCode = 41;
                if (this.BytesToExclude != null)
                    hashCode = hashCode * 59 + this.BytesToExclude.GetHashCode();
                if (this.CodLayout != null)
                    hashCode = hashCode * 59 + this.CodLayout.GetHashCode();
                if (this.CodStructureSubType != null)
                    hashCode = hashCode * 59 + this.CodStructureSubType.GetHashCode();
                if (this.CodStructureType != null)
                    hashCode = hashCode * 59 + this.CodStructureType.GetHashCode();
                if (this.Description != null)
                    hashCode = hashCode * 59 + this.Description.GetHashCode();
                if (this.FilePath != null)
                    hashCode = hashCode * 59 + this.FilePath.GetHashCode();
                if (this.HeaderWithFieldNames != null)
                    hashCode = hashCode * 59 + this.HeaderWithFieldNames.GetHashCode();
                if (this.Note != null)
                    hashCode = hashCode * 59 + this.Note.GetHashCode();
                if (this.RowLength != null)
                    hashCode = hashCode * 59 + this.RowLength.GetHashCode();
                if (this.TableFile != null)
                    hashCode = hashCode * 59 + this.TableFile.GetHashCode();
                if (this.TableSingle != null)
                    hashCode = hashCode * 59 + this.TableSingle.GetHashCode();
                if (this.TypeCharset != null)
                    hashCode = hashCode * 59 + this.TypeCharset.GetHashCode();
                if (this.TypeEndRow != null)
                    hashCode = hashCode * 59 + this.TypeEndRow.GetHashCode();
                if (this.TypeFile != null)
                    hashCode = hashCode * 59 + this.TypeFile.GetHashCode();
                if (this.TypeImpExp != null)
                    hashCode = hashCode * 59 + this.TypeImpExp.GetHashCode();
                if (this.TypeRecord != null)
                    hashCode = hashCode * 59 + this.TypeRecord.GetHashCode();
                if (this.TypeSeparation != null)
                    hashCode = hashCode * 59 + this.TypeSeparation.GetHashCode();
                if (this.TypeTextQualification != null)
                    hashCode = hashCode * 59 + this.TypeTextQualification.GetHashCode();
                if (this.StructureSubType != null)
                    hashCode = hashCode * 59 + this.StructureSubType.GetHashCode();
                if (this.StructureType != null)
                    hashCode = hashCode * 59 + this.StructureType.GetHashCode();
                if (this.AdditionalData != null)
                    hashCode = hashCode * 59 + this.AdditionalData.GetHashCode();
                if (this.PluginData != null)
                    hashCode = hashCode * 59 + this.PluginData.GetHashCode();
                return hashCode;
            }
        }

        /// <summary>
        /// To validate all properties of the instance
        /// </summary>
        /// <param name="validationContext">Validation context</param>
        /// <returns>Validation Result</returns>
        IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
        {
            yield break;
        }
    }
}
