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

            return
                ((
                     MaxErrorsToBlacklist == other.MaxErrorsToBlacklist ||
                     MaxErrorsToBlacklist != null &&
                     MaxErrorsToBlacklist.Equals(other.MaxErrorsToBlacklist)
                     ) &&
                 (
                     RetryIntervalToWhitelist == other.RetryIntervalToWhitelist ||
                     RetryIntervalToWhitelist != null &&
                     RetryIntervalToWhitelist.Equals(other.RetryIntervalToWhitelist)
                 ) &&
                 (
                     ConnectTimeout == other.ConnectTimeout ||
                     ConnectTimeout != null &&
                     ConnectTimeout.Equals(other.ConnectTimeout)
                 ) &&
                 (
                     SocketTimeout == other.SocketTimeout ||
                     SocketTimeout != null &&
                     SocketTimeout.Equals(other.SocketTimeout)
                 ) &&
                 (
                     ProcessLabel == other.ProcessLabel ||
                     ProcessLabel != null &&
                     ProcessLabel.Equals(other.ProcessLabel)
                 ) &&
                 (
                     ConnectionUseMax == other.ConnectionUseMax ||
                     ConnectionUseMax != null &&
                     ConnectionUseMax.Equals(other.ConnectionUseMax)
                 ));
        }
Exemplo n.º 3
0
        public override int GetHashCode()
        {
            int hash = 1;

            hash ^= additionalMetricDims_.GetHashCode();
            if (AggregationEnabled != false)
            {
                hash ^= AggregationEnabled.GetHashCode();
            }
            if (AggregationMaxCount != 0UL)
            {
                hash ^= AggregationMaxCount.GetHashCode();
            }
            if (AggregationMaxSize != 0UL)
            {
                hash ^= AggregationMaxSize.GetHashCode();
            }
            if (CloudwatchEndpoint.Length != 0)
            {
                hash ^= CloudwatchEndpoint.GetHashCode();
            }
            if (CloudwatchPort != 0UL)
            {
                hash ^= CloudwatchPort.GetHashCode();
            }
            if (CollectionMaxCount != 0UL)
            {
                hash ^= CollectionMaxCount.GetHashCode();
            }
            if (CollectionMaxSize != 0UL)
            {
                hash ^= CollectionMaxSize.GetHashCode();
            }
            if (ConnectTimeout != 0UL)
            {
                hash ^= ConnectTimeout.GetHashCode();
            }
            if (EnableCoreDumps != false)
            {
                hash ^= EnableCoreDumps.GetHashCode();
            }
            if (FailIfThrottled != false)
            {
                hash ^= FailIfThrottled.GetHashCode();
            }
            if (KinesisEndpoint.Length != 0)
            {
                hash ^= KinesisEndpoint.GetHashCode();
            }
            if (KinesisPort != 0UL)
            {
                hash ^= KinesisPort.GetHashCode();
            }
            if (LogLevel.Length != 0)
            {
                hash ^= LogLevel.GetHashCode();
            }
            if (MaxConnections != 0UL)
            {
                hash ^= MaxConnections.GetHashCode();
            }
            if (MetricsGranularity.Length != 0)
            {
                hash ^= MetricsGranularity.GetHashCode();
            }
            if (MetricsLevel.Length != 0)
            {
                hash ^= MetricsLevel.GetHashCode();
            }
            if (MetricsNamespace.Length != 0)
            {
                hash ^= MetricsNamespace.GetHashCode();
            }
            if (MetricsUploadDelay != 0UL)
            {
                hash ^= MetricsUploadDelay.GetHashCode();
            }
            if (MinConnections != 0UL)
            {
                hash ^= MinConnections.GetHashCode();
            }
            if (RateLimit != 0UL)
            {
                hash ^= RateLimit.GetHashCode();
            }
            if (RecordMaxBufferedTime != 0UL)
            {
                hash ^= RecordMaxBufferedTime.GetHashCode();
            }
            if (RecordTtl != 0UL)
            {
                hash ^= RecordTtl.GetHashCode();
            }
            if (Region.Length != 0)
            {
                hash ^= Region.GetHashCode();
            }
            if (RequestTimeout != 0UL)
            {
                hash ^= RequestTimeout.GetHashCode();
            }
            if (VerifyCertificate != false)
            {
                hash ^= VerifyCertificate.GetHashCode();
            }
            return(hash);
        }