/// <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 (Name != null)
         {
             hashCode = hashCode * 59 + Name.GetHashCode();
         }
         if (Applications != null)
         {
             hashCode = hashCode * 59 + Applications.GetHashCode();
         }
         if (Roles != null)
         {
             hashCode = hashCode * 59 + Roles.GetHashCode();
         }
         if (LdapAuthenticationModes != null)
         {
             hashCode = hashCode * 59 + LdapAuthenticationModes.GetHashCode();
         }
         if (Users != null)
         {
             hashCode = hashCode * 59 + Users.GetHashCode();
         }
         if (Teams != null)
         {
             hashCode = hashCode * 59 + Teams.GetHashCode();
         }
         return(hashCode);
     }
 }
        /// <summary>
        /// Returns true if SecurityContractDefaultConfiguration instances are equal
        /// </summary>
        /// <param name="other">Instance of SecurityContractDefaultConfiguration to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(SecurityContractDefaultConfiguration other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Name == other.Name ||
                     Name != null &&
                     Name.Equals(other.Name)
                     ) &&
                 (
                     Applications == other.Applications ||
                     Applications != null &&
                     other.Applications != null &&
                     Applications.SequenceEqual(other.Applications)
                 ) &&
                 (
                     Roles == other.Roles ||
                     Roles != null &&
                     other.Roles != null &&
                     Roles.SequenceEqual(other.Roles)
                 ) &&
                 (
                     LdapAuthenticationModes == other.LdapAuthenticationModes ||
                     LdapAuthenticationModes != null &&
                     other.LdapAuthenticationModes != null &&
                     LdapAuthenticationModes.SequenceEqual(other.LdapAuthenticationModes)
                 ) &&
                 (
                     Users == other.Users ||
                     Users != null &&
                     other.Users != null &&
                     Users.SequenceEqual(other.Users)
                 ) &&
                 (
                     Teams == other.Teams ||
                     Teams != null &&
                     other.Teams != null &&
                     Teams.SequenceEqual(other.Teams)
                 ));
        }