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

            return
                ((
                     ServiceRanking == other.ServiceRanking ||
                     ServiceRanking != null &&
                     ServiceRanking.Equals(other.ServiceRanking)
                     ) &&
                 (
                     CdnrewriterAttributes == other.CdnrewriterAttributes ||
                     CdnrewriterAttributes != null &&
                     CdnrewriterAttributes.Equals(other.CdnrewriterAttributes)
                 ) &&
                 (
                     CdnRewriterDistributionDomain == other.CdnRewriterDistributionDomain ||
                     CdnRewriterDistributionDomain != null &&
                     CdnRewriterDistributionDomain.Equals(other.CdnRewriterDistributionDomain)
                 ));
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Returns true if ComAdobeCqCdnRewriterImplAWSCloudFrontRewriterProperties instances are equal
        /// </summary>
        /// <param name="other">Instance of ComAdobeCqCdnRewriterImplAWSCloudFrontRewriterProperties to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ComAdobeCqCdnRewriterImplAWSCloudFrontRewriterProperties other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     ServiceRanking == other.ServiceRanking ||
                     ServiceRanking != null &&
                     ServiceRanking.Equals(other.ServiceRanking)
                     ) &&
                 (
                     KeypairId == other.KeypairId ||
                     KeypairId != null &&
                     KeypairId.Equals(other.KeypairId)
                 ) &&
                 (
                     KeypairAlias == other.KeypairAlias ||
                     KeypairAlias != null &&
                     KeypairAlias.Equals(other.KeypairAlias)
                 ) &&
                 (
                     CdnrewriterAttributes == other.CdnrewriterAttributes ||
                     CdnrewriterAttributes != null &&
                     CdnrewriterAttributes.Equals(other.CdnrewriterAttributes)
                 ) &&
                 (
                     CdnRewriterDistributionDomain == other.CdnRewriterDistributionDomain ||
                     CdnRewriterDistributionDomain != null &&
                     CdnRewriterDistributionDomain.Equals(other.CdnRewriterDistributionDomain)
                 ));
        }