/// <summary>
        /// Returns true if ComDayCqMailerDefaultMailServiceProperties instances are equal
        /// </summary>
        /// <param name="other">Instance of ComDayCqMailerDefaultMailServiceProperties to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ComDayCqMailerDefaultMailServiceProperties other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     SmtpHost == other.SmtpHost ||
                     SmtpHost != null &&
                     SmtpHost.Equals(other.SmtpHost)
                     ) &&
                 (
                     SmtpPort == other.SmtpPort ||
                     SmtpPort != null &&
                     SmtpPort.Equals(other.SmtpPort)
                 ) &&
                 (
                     SmtpUser == other.SmtpUser ||
                     SmtpUser != null &&
                     SmtpUser.Equals(other.SmtpUser)
                 ) &&
                 (
                     SmtpPassword == other.SmtpPassword ||
                     SmtpPassword != null &&
                     SmtpPassword.Equals(other.SmtpPassword)
                 ) &&
                 (
                     FromAddress == other.FromAddress ||
                     FromAddress != null &&
                     FromAddress.Equals(other.FromAddress)
                 ) &&
                 (
                     SmtpSsl == other.SmtpSsl ||
                     SmtpSsl != null &&
                     SmtpSsl.Equals(other.SmtpSsl)
                 ) &&
                 (
                     SmtpStarttls == other.SmtpStarttls ||
                     SmtpStarttls != null &&
                     SmtpStarttls.Equals(other.SmtpStarttls)
                 ) &&
                 (
                     DebugEmail == other.DebugEmail ||
                     DebugEmail != null &&
                     DebugEmail.Equals(other.DebugEmail)
                 ));
        }
 /// <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 (SmtpHost != null)
         {
             hashCode = hashCode * 59 + SmtpHost.GetHashCode();
         }
         if (SmtpPort != null)
         {
             hashCode = hashCode * 59 + SmtpPort.GetHashCode();
         }
         if (SmtpUser != null)
         {
             hashCode = hashCode * 59 + SmtpUser.GetHashCode();
         }
         if (SmtpPassword != null)
         {
             hashCode = hashCode * 59 + SmtpPassword.GetHashCode();
         }
         if (FromAddress != null)
         {
             hashCode = hashCode * 59 + FromAddress.GetHashCode();
         }
         if (SmtpSsl != null)
         {
             hashCode = hashCode * 59 + SmtpSsl.GetHashCode();
         }
         if (SmtpStarttls != null)
         {
             hashCode = hashCode * 59 + SmtpStarttls.GetHashCode();
         }
         if (DebugEmail != null)
         {
             hashCode = hashCode * 59 + DebugEmail.GetHashCode();
         }
         return(hashCode);
     }
 }