/// <summary>
        /// Returns true if OrgApacheSlingEventJobsQueueConfigurationProperties instances are equal
        /// </summary>
        /// <param name="other">Instance of OrgApacheSlingEventJobsQueueConfigurationProperties to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(OrgApacheSlingEventJobsQueueConfigurationProperties other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     QueueName == other.QueueName ||
                     QueueName != null &&
                     QueueName.Equals(other.QueueName)
                     ) &&
                 (
                     QueueTopics == other.QueueTopics ||
                     QueueTopics != null &&
                     QueueTopics.Equals(other.QueueTopics)
                 ) &&
                 (
                     QueueType == other.QueueType ||
                     QueueType != null &&
                     QueueType.Equals(other.QueueType)
                 ) &&
                 (
                     QueuePriority == other.QueuePriority ||
                     QueuePriority != null &&
                     QueuePriority.Equals(other.QueuePriority)
                 ) &&
                 (
                     QueueRetries == other.QueueRetries ||
                     QueueRetries != null &&
                     QueueRetries.Equals(other.QueueRetries)
                 ) &&
                 (
                     QueueRetrydelay == other.QueueRetrydelay ||
                     QueueRetrydelay != null &&
                     QueueRetrydelay.Equals(other.QueueRetrydelay)
                 ) &&
                 (
                     QueueMaxparallel == other.QueueMaxparallel ||
                     QueueMaxparallel != null &&
                     QueueMaxparallel.Equals(other.QueueMaxparallel)
                 ) &&
                 (
                     QueueKeepJobs == other.QueueKeepJobs ||
                     QueueKeepJobs != null &&
                     QueueKeepJobs.Equals(other.QueueKeepJobs)
                 ) &&
                 (
                     QueuePreferRunOnCreationInstance == other.QueuePreferRunOnCreationInstance ||
                     QueuePreferRunOnCreationInstance != null &&
                     QueuePreferRunOnCreationInstance.Equals(other.QueuePreferRunOnCreationInstance)
                 ) &&
                 (
                     QueueThreadPoolSize == other.QueueThreadPoolSize ||
                     QueueThreadPoolSize != null &&
                     QueueThreadPoolSize.Equals(other.QueueThreadPoolSize)
                 ) &&
                 (
                     ServiceRanking == other.ServiceRanking ||
                     ServiceRanking != null &&
                     ServiceRanking.Equals(other.ServiceRanking)
                 ));
        }
Ejemplo n.º 2
0
 public bool Equals(SqsQueueName other)
 {
     return(other != null &&
            QueueName.Equals(other.QueueName, StringComparison.OrdinalIgnoreCase));
 }