/* 
 * GK application - OmniPOS Service API
 *
 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
 *
 * OpenAPI spec version: 5.21.1-b03
 * 
 * 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>
    /// DynamicTableauItemListViewCriteria &lt;p&gt;Search criteria&lt;br /&gt;&lt;/p&gt;
    /// </summary>
    [DataContract]
    public partial class ComGkSoftwareGkrApiServerMdDynamicTableauDtoDomDynamicTableauItemListViewCriteria :  IEquatable<ComGkSoftwareGkrApiServerMdDynamicTableauDtoDomDynamicTableauItemListViewCriteria>, IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdDynamicTableauDtoDomDynamicTableauItemListViewCriteria" /> class.
        /// </summary>
        [JsonConstructorAttribute]
        protected ComGkSoftwareGkrApiServerMdDynamicTableauDtoDomDynamicTableauItemListViewCriteria() { }
        /// <summary>
        /// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdDynamicTableauDtoDomDynamicTableauItemListViewCriteria" /> class.
        /// </summary>
        /// <param name="businessUnitGroupId">&lt;p&gt;A unique system assigned identifier for a group of BusinessUnits.&lt;br /&gt;&lt;/p&gt; (required).</param>
        /// <param name="itemListIdList">&lt;p&gt;The list of qualifiers for the name of the dynamic item list. E.g. &#39;Vegetable&#39;.&lt;br /&gt;&lt;/p&gt;.</param>
        /// <param name="languageIdList">&lt;p&gt;List of language ids.&lt;br /&gt;&lt;/p&gt;.</param>
        /// <param name="textClassList">&lt;p&gt;List of text classes.&lt;br /&gt;&lt;/p&gt;.</param>
        public ComGkSoftwareGkrApiServerMdDynamicTableauDtoDomDynamicTableauItemListViewCriteria(string businessUnitGroupId = default(string), List<string> itemListIdList = default(List<string>), List<string> languageIdList = default(List<string>), List<string> textClassList = default(List<string>))
        {
            // to ensure "businessUnitGroupId" is required (not null)
            if (businessUnitGroupId == null)
            {
                throw new InvalidDataException("businessUnitGroupId is a required property for ComGkSoftwareGkrApiServerMdDynamicTableauDtoDomDynamicTableauItemListViewCriteria and cannot be null");
            }
            else
            {
                this.BusinessUnitGroupId = businessUnitGroupId;
            }
            this.ItemListIdList = itemListIdList;
            this.LanguageIdList = languageIdList;
            this.TextClassList = textClassList;
        }
        
        /// <summary>
        /// &lt;p&gt;A unique system assigned identifier for a group of BusinessUnits.&lt;br /&gt;&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;A unique system assigned identifier for a group of BusinessUnits.&lt;br /&gt;&lt;/p&gt;</value>
        [DataMember(Name="businessUnitGroupId", EmitDefaultValue=false)]
        public string BusinessUnitGroupId { get; set; }

        /// <summary>
        /// &lt;p&gt;The list of qualifiers for the name of the dynamic item list. E.g. &#39;Vegetable&#39;.&lt;br /&gt;&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;The list of qualifiers for the name of the dynamic item list. E.g. &#39;Vegetable&#39;.&lt;br /&gt;&lt;/p&gt;</value>
        [DataMember(Name="itemListIdList", EmitDefaultValue=false)]
        public List<string> ItemListIdList { get; set; }

        /// <summary>
        /// &lt;p&gt;List of language ids.&lt;br /&gt;&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;List of language ids.&lt;br /&gt;&lt;/p&gt;</value>
        [DataMember(Name="languageIdList", EmitDefaultValue=false)]
        public List<string> LanguageIdList { get; set; }

        /// <summary>
        /// &lt;p&gt;List of text classes.&lt;br /&gt;&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;List of text classes.&lt;br /&gt;&lt;/p&gt;</value>
        [DataMember(Name="textClassList", EmitDefaultValue=false)]
        public List<string> TextClassList { 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 ComGkSoftwareGkrApiServerMdDynamicTableauDtoDomDynamicTableauItemListViewCriteria {\n");
            sb.Append("  BusinessUnitGroupId: ").Append(BusinessUnitGroupId).Append("\n");
            sb.Append("  ItemListIdList: ").Append(ItemListIdList).Append("\n");
            sb.Append("  LanguageIdList: ").Append(LanguageIdList).Append("\n");
            sb.Append("  TextClassList: ").Append(TextClassList).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 ComGkSoftwareGkrApiServerMdDynamicTableauDtoDomDynamicTableauItemListViewCriteria);
        }

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

            return 
                (
                    this.BusinessUnitGroupId == input.BusinessUnitGroupId ||
                    (this.BusinessUnitGroupId != null &&
                    this.BusinessUnitGroupId.Equals(input.BusinessUnitGroupId))
                ) && 
                (
                    this.ItemListIdList == input.ItemListIdList ||
                    this.ItemListIdList != null &&
                    this.ItemListIdList.SequenceEqual(input.ItemListIdList)
                ) && 
                (
                    this.LanguageIdList == input.LanguageIdList ||
                    this.LanguageIdList != null &&
                    this.LanguageIdList.SequenceEqual(input.LanguageIdList)
                ) && 
                (
                    this.TextClassList == input.TextClassList ||
                    this.TextClassList != null &&
                    this.TextClassList.SequenceEqual(input.TextClassList)
                );
        }

        /// <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.BusinessUnitGroupId != null)
                    hashCode = hashCode * 59 + this.BusinessUnitGroupId.GetHashCode();
                if (this.ItemListIdList != null)
                    hashCode = hashCode * 59 + this.ItemListIdList.GetHashCode();
                if (this.LanguageIdList != null)
                    hashCode = hashCode * 59 + this.LanguageIdList.GetHashCode();
                if (this.TextClassList != null)
                    hashCode = hashCode * 59 + this.TextClassList.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;
        }
    }

}
