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

            return
                ((
                     Enable == other.Enable ||
                     Enable != null &&
                     Enable.Equals(other.Enable)
                     ) &&
                 (
                     UGCLimit == other.UGCLimit ||
                     UGCLimit != null &&
                     UGCLimit.Equals(other.UGCLimit)
                 ) &&
                 (
                     UgcLimitDuration == other.UgcLimitDuration ||
                     UgcLimitDuration != null &&
                     UgcLimitDuration.Equals(other.UgcLimitDuration)
                 ) &&
                 (
                     Domains == other.Domains ||
                     Domains != null &&
                     Domains.Equals(other.Domains)
                 ) &&
                 (
                     ToList == other.ToList ||
                     ToList != null &&
                     ToList.Equals(other.ToList)
                 ));
        }