/// <summary> /// Returns true if OrgApacheJackrabbitOakSegmentStandbyStoreStandbyStoreServiceProperties instances are equal /// </summary> /// <param name="other">Instance of OrgApacheJackrabbitOakSegmentStandbyStoreStandbyStoreServiceProperties to be compared</param> /// <returns>Boolean</returns> public bool Equals(OrgApacheJackrabbitOakSegmentStandbyStoreStandbyStoreServiceProperties other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( OrgApacheSlingInstallerConfigurationPersist == other.OrgApacheSlingInstallerConfigurationPersist || OrgApacheSlingInstallerConfigurationPersist != null && OrgApacheSlingInstallerConfigurationPersist.Equals(other.OrgApacheSlingInstallerConfigurationPersist) ) && ( Mode == other.Mode || Mode != null && Mode.Equals(other.Mode) ) && ( Port == other.Port || Port != null && Port.Equals(other.Port) ) && ( PrimaryHost == other.PrimaryHost || PrimaryHost != null && PrimaryHost.Equals(other.PrimaryHost) ) && ( Interval == other.Interval || Interval != null && Interval.Equals(other.Interval) ) && ( PrimaryAllowedClientIpRanges == other.PrimaryAllowedClientIpRanges || PrimaryAllowedClientIpRanges != null && PrimaryAllowedClientIpRanges.Equals(other.PrimaryAllowedClientIpRanges) ) && ( Secure == other.Secure || Secure != null && Secure.Equals(other.Secure) ) && ( StandbyReadtimeout == other.StandbyReadtimeout || StandbyReadtimeout != null && StandbyReadtimeout.Equals(other.StandbyReadtimeout) ) && ( StandbyAutoclean == other.StandbyAutoclean || StandbyAutoclean != null && StandbyAutoclean.Equals(other.StandbyAutoclean) )); }
/// <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 (OrgApacheSlingInstallerConfigurationPersist != null) { hashCode = hashCode * 59 + OrgApacheSlingInstallerConfigurationPersist.GetHashCode(); } if (Mode != null) { hashCode = hashCode * 59 + Mode.GetHashCode(); } if (Port != null) { hashCode = hashCode * 59 + Port.GetHashCode(); } if (PrimaryHost != null) { hashCode = hashCode * 59 + PrimaryHost.GetHashCode(); } if (Interval != null) { hashCode = hashCode * 59 + Interval.GetHashCode(); } if (PrimaryAllowedClientIpRanges != null) { hashCode = hashCode * 59 + PrimaryAllowedClientIpRanges.GetHashCode(); } if (Secure != null) { hashCode = hashCode * 59 + Secure.GetHashCode(); } if (StandbyReadtimeout != null) { hashCode = hashCode * 59 + StandbyReadtimeout.GetHashCode(); } if (StandbyAutoclean != null) { hashCode = hashCode * 59 + StandbyAutoclean.GetHashCode(); } return(hashCode); } }