/// <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 (PermissionsJr2 != null)
         {
             hashCode = hashCode * 59 + PermissionsJr2.GetHashCode();
         }
         if (ImportBehavior != null)
         {
             hashCode = hashCode * 59 + ImportBehavior.GetHashCode();
         }
         if (ReadPaths != null)
         {
             hashCode = hashCode * 59 + ReadPaths.GetHashCode();
         }
         if (AdministrativePrincipals != null)
         {
             hashCode = hashCode * 59 + AdministrativePrincipals.GetHashCode();
         }
         if (ConfigurationRanking != null)
         {
             hashCode = hashCode * 59 + ConfigurationRanking.GetHashCode();
         }
         return(hashCode);
     }
 }
        /// <summary>
        /// Returns true if OrgApacheJackrabbitOakSecurityAuthorizationAuthorizationConfigurProperties instances are equal
        /// </summary>
        /// <param name="other">Instance of OrgApacheJackrabbitOakSecurityAuthorizationAuthorizationConfigurProperties to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(OrgApacheJackrabbitOakSecurityAuthorizationAuthorizationConfigurProperties other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     PermissionsJr2 == other.PermissionsJr2 ||
                     PermissionsJr2 != null &&
                     PermissionsJr2.Equals(other.PermissionsJr2)
                     ) &&
                 (
                     ImportBehavior == other.ImportBehavior ||
                     ImportBehavior != null &&
                     ImportBehavior.Equals(other.ImportBehavior)
                 ) &&
                 (
                     ReadPaths == other.ReadPaths ||
                     ReadPaths != null &&
                     ReadPaths.Equals(other.ReadPaths)
                 ) &&
                 (
                     AdministrativePrincipals == other.AdministrativePrincipals ||
                     AdministrativePrincipals != null &&
                     AdministrativePrincipals.Equals(other.AdministrativePrincipals)
                 ) &&
                 (
                     ConfigurationRanking == other.ConfigurationRanking ||
                     ConfigurationRanking != null &&
                     ConfigurationRanking.Equals(other.ConfigurationRanking)
                 ));
        }
 /// <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 (UsersPath != null)
         {
             hashCode = hashCode * 59 + UsersPath.GetHashCode();
         }
         if (GroupsPath != null)
         {
             hashCode = hashCode * 59 + GroupsPath.GetHashCode();
         }
         if (SystemRelativePath != null)
         {
             hashCode = hashCode * 59 + SystemRelativePath.GetHashCode();
         }
         if (DefaultDepth != null)
         {
             hashCode = hashCode * 59 + DefaultDepth.GetHashCode();
         }
         if (ImportBehavior != null)
         {
             hashCode = hashCode * 59 + ImportBehavior.GetHashCode();
         }
         if (PasswordHashAlgorithm != null)
         {
             hashCode = hashCode * 59 + PasswordHashAlgorithm.GetHashCode();
         }
         if (PasswordHashIterations != null)
         {
             hashCode = hashCode * 59 + PasswordHashIterations.GetHashCode();
         }
         if (PasswordSaltSize != null)
         {
             hashCode = hashCode * 59 + PasswordSaltSize.GetHashCode();
         }
         if (OmitAdminPw != null)
         {
             hashCode = hashCode * 59 + OmitAdminPw.GetHashCode();
         }
         if (SupportAutoSave != null)
         {
             hashCode = hashCode * 59 + SupportAutoSave.GetHashCode();
         }
         if (PasswordMaxAge != null)
         {
             hashCode = hashCode * 59 + PasswordMaxAge.GetHashCode();
         }
         if (InitialPasswordChange != null)
         {
             hashCode = hashCode * 59 + InitialPasswordChange.GetHashCode();
         }
         if (PasswordHistorySize != null)
         {
             hashCode = hashCode * 59 + PasswordHistorySize.GetHashCode();
         }
         if (PasswordExpiryForAdmin != null)
         {
             hashCode = hashCode * 59 + PasswordExpiryForAdmin.GetHashCode();
         }
         if (CacheExpiration != null)
         {
             hashCode = hashCode * 59 + CacheExpiration.GetHashCode();
         }
         if (EnableRFC7613UsercaseMappedProfile != null)
         {
             hashCode = hashCode * 59 + EnableRFC7613UsercaseMappedProfile.GetHashCode();
         }
         return(hashCode);
     }
 }
        /// <summary>
        /// Returns true if OrgApacheJackrabbitOakSecurityUserUserConfigurationImplProperties instances are equal
        /// </summary>
        /// <param name="other">Instance of OrgApacheJackrabbitOakSecurityUserUserConfigurationImplProperties to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(OrgApacheJackrabbitOakSecurityUserUserConfigurationImplProperties other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     UsersPath == other.UsersPath ||
                     UsersPath != null &&
                     UsersPath.Equals(other.UsersPath)
                     ) &&
                 (
                     GroupsPath == other.GroupsPath ||
                     GroupsPath != null &&
                     GroupsPath.Equals(other.GroupsPath)
                 ) &&
                 (
                     SystemRelativePath == other.SystemRelativePath ||
                     SystemRelativePath != null &&
                     SystemRelativePath.Equals(other.SystemRelativePath)
                 ) &&
                 (
                     DefaultDepth == other.DefaultDepth ||
                     DefaultDepth != null &&
                     DefaultDepth.Equals(other.DefaultDepth)
                 ) &&
                 (
                     ImportBehavior == other.ImportBehavior ||
                     ImportBehavior != null &&
                     ImportBehavior.Equals(other.ImportBehavior)
                 ) &&
                 (
                     PasswordHashAlgorithm == other.PasswordHashAlgorithm ||
                     PasswordHashAlgorithm != null &&
                     PasswordHashAlgorithm.Equals(other.PasswordHashAlgorithm)
                 ) &&
                 (
                     PasswordHashIterations == other.PasswordHashIterations ||
                     PasswordHashIterations != null &&
                     PasswordHashIterations.Equals(other.PasswordHashIterations)
                 ) &&
                 (
                     PasswordSaltSize == other.PasswordSaltSize ||
                     PasswordSaltSize != null &&
                     PasswordSaltSize.Equals(other.PasswordSaltSize)
                 ) &&
                 (
                     OmitAdminPw == other.OmitAdminPw ||
                     OmitAdminPw != null &&
                     OmitAdminPw.Equals(other.OmitAdminPw)
                 ) &&
                 (
                     SupportAutoSave == other.SupportAutoSave ||
                     SupportAutoSave != null &&
                     SupportAutoSave.Equals(other.SupportAutoSave)
                 ) &&
                 (
                     PasswordMaxAge == other.PasswordMaxAge ||
                     PasswordMaxAge != null &&
                     PasswordMaxAge.Equals(other.PasswordMaxAge)
                 ) &&
                 (
                     InitialPasswordChange == other.InitialPasswordChange ||
                     InitialPasswordChange != null &&
                     InitialPasswordChange.Equals(other.InitialPasswordChange)
                 ) &&
                 (
                     PasswordHistorySize == other.PasswordHistorySize ||
                     PasswordHistorySize != null &&
                     PasswordHistorySize.Equals(other.PasswordHistorySize)
                 ) &&
                 (
                     PasswordExpiryForAdmin == other.PasswordExpiryForAdmin ||
                     PasswordExpiryForAdmin != null &&
                     PasswordExpiryForAdmin.Equals(other.PasswordExpiryForAdmin)
                 ) &&
                 (
                     CacheExpiration == other.CacheExpiration ||
                     CacheExpiration != null &&
                     CacheExpiration.Equals(other.CacheExpiration)
                 ) &&
                 (
                     EnableRFC7613UsercaseMappedProfile == other.EnableRFC7613UsercaseMappedProfile ||
                     EnableRFC7613UsercaseMappedProfile != null &&
                     EnableRFC7613UsercaseMappedProfile.Equals(other.EnableRFC7613UsercaseMappedProfile)
                 ));
        }