/// <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)
                 ));
        }