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

            return
                ((
                     UserMapping == other.UserMapping ||
                     UserMapping != null &&
                     UserMapping.Equals(other.UserMapping)
                     ) &&
                 (
                     UserDefault == other.UserDefault ||
                     UserDefault != null &&
                     UserDefault.Equals(other.UserDefault)
                 ) &&
                 (
                     UserEnableDefaultMapping == other.UserEnableDefaultMapping ||
                     UserEnableDefaultMapping != null &&
                     UserEnableDefaultMapping.Equals(other.UserEnableDefaultMapping)
                 ) &&
                 (
                     RequireValidation == other.RequireValidation ||
                     RequireValidation != null &&
                     RequireValidation.Equals(other.RequireValidation)
                 ));
        }