/// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (ExcerptProperties != null)
         {
             hashCode = hashCode * 59 + ExcerptProperties.GetHashCode();
         }
         if (CacheMaxEntries != null)
         {
             hashCode = hashCode * 59 + CacheMaxEntries.GetHashCode();
         }
         if (CacheEntryLifetime != null)
         {
             hashCode = hashCode * 59 + CacheEntryLifetime.GetHashCode();
         }
         if (XpathUnion != null)
         {
             hashCode = hashCode * 59 + XpathUnion.GetHashCode();
         }
         return(hashCode);
     }
 }
        /// <summary>
        /// Returns true if ComDayCqSearchImplBuilderQueryBuilderImplProperties instances are equal
        /// </summary>
        /// <param name="other">Instance of ComDayCqSearchImplBuilderQueryBuilderImplProperties to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ComDayCqSearchImplBuilderQueryBuilderImplProperties other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     ExcerptProperties == other.ExcerptProperties ||
                     ExcerptProperties != null &&
                     ExcerptProperties.Equals(other.ExcerptProperties)
                     ) &&
                 (
                     CacheMaxEntries == other.CacheMaxEntries ||
                     CacheMaxEntries != null &&
                     CacheMaxEntries.Equals(other.CacheMaxEntries)
                 ) &&
                 (
                     CacheEntryLifetime == other.CacheEntryLifetime ||
                     CacheEntryLifetime != null &&
                     CacheEntryLifetime.Equals(other.CacheEntryLifetime)
                 ) &&
                 (
                     XpathUnion == other.XpathUnion ||
                     XpathUnion != null &&
                     XpathUnion.Equals(other.XpathUnion)
                 ));
        }