All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.cloudfront_2012_03_15.model.DistributionConfig Maven / Gradle / Ivy

Go to download

The Amazon Web Services SDK for Java provides Java APIs for building software on AWS' cost-effective, scalable, and reliable infrastructure products. The AWS Java SDK allows developers to code against APIs for all of Amazon's infrastructure web services (Amazon S3, Amazon EC2, Amazon SQS, Amazon Relational Database Service, Amazon AutoScaling, etc).

The newest version!
/*
 * Copyright 2010-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License").
 * You may not use this file except in compliance with the License.
 * A copy of the License is located at
 * 
 *  http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed
 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
 * express or implied. See the License for the specific language governing
 * permissions and limitations under the License.
 */
package com.amazonaws.services.cloudfront_2012_03_15.model;

/**
 * 

* A distribution Configuration. *

*/ public class DistributionConfig { /** * Origin information to associate with the distribution. If your * distribution will use an Amazon S3 origin, then you use the S3Origin * element. */ private S3Origin s3Origin; /** * Origin information to associate with the distribution. If your * distribution will use a custom origin (non Amazon S3), then you use * the CustomOrigin element. */ private CustomOrigin customOrigin; /** * A unique number that ensures the request can't be replayed. If the * CallerReference is new (no matter the content of the * DistributionConfig object), a new distribution is created. If the * CallerReference is a value you already sent in a previous request to * create a distribution, and the content of the DistributionConfig is * identical to the original request (ignoring white space), the response * includes the same information returned to the original request. If the * CallerReference is a value you already sent in a previous request to * create a distribution but the content of the DistributionConfig is * different from the original request, CloudFront returns a * DistributionAlreadyExists error. */ private String callerReference; /** * A CNAME alias you want to associate with this distribution. You can * have up to 10 CNAME aliases per distribution. Only include a CNAME * element if you have a CNAME to associate with the distribution. Don't * include an empty CNAME element in the DistributionConfig object. If * you do, CloudFront returns a MalformedXML error. */ private java.util.List cNAME; /** * Any comments you want to include about the distribution. */ private String comment; /** * Whether the distribution is enabled to accept end user requests for * content. */ private Boolean enabled; /** * A complex type that controls whether access logs are written for the * distribution. If you want to turn on access logs, include this * element; if you want to turn off access logs, remove this element. */ private LoggingConfig logging; /** * A complex type that specifies any AWS accounts you want to permit to * create signed URLs for private content. If you want the distribution * to use signed URLs, include this element; if you want the distribution * to use basic URLs, remove this element. */ private TrustedSigners trustedSigners; /** * Defines the protocols required for your distribution. Use this element * to restrict access to your distribution solely to HTTPS requests. * Without this element, CloudFront can use any available protocol to * serve the request. */ private RequiredProtocols requiredProtocols; /** * Designates a default root object. Only include a DefaultRootObject * element if you are going to assign a default root object for the * distribution. Don't include an empty DefaultRootObject element in the * DistributionConfig object. If you do, CloudFront returns a * MalformedXML error. */ private String defaultRootObject; /** * Determines the minimum TTL for objects in the CloudFront cache. This * value specifies a lower bound for values in the headers for an object, * for example, in the Cache-Control max-age directive. */ private CachingBehavior cachingBehavior; /** * Default constructor for a new DistributionConfig object. Callers should use the * setter or fluent setter (with...) methods to initialize this object after creating it. */ public DistributionConfig() {} /** * Constructs a new DistributionConfig object. * Callers should use the setter or fluent setter (with...) methods to * initialize any additional object members. * * @param callerReference A unique number that ensures the request can't * be replayed. If the CallerReference is new (no matter the content of * the DistributionConfig object), a new distribution is created. If the * CallerReference is a value you already sent in a previous request to * create a distribution, and the content of the DistributionConfig is * identical to the original request (ignoring white space), the response * includes the same information returned to the original request. If the * CallerReference is a value you already sent in a previous request to * create a distribution but the content of the DistributionConfig is * different from the original request, CloudFront returns a * DistributionAlreadyExists error. * @param enabled Whether the distribution is enabled to accept end user * requests for content. */ public DistributionConfig(String callerReference, Boolean enabled) { this.callerReference = callerReference; this.enabled = enabled; } /** * Origin information to associate with the distribution. If your * distribution will use an Amazon S3 origin, then you use the S3Origin * element. * * @return Origin information to associate with the distribution. If your * distribution will use an Amazon S3 origin, then you use the S3Origin * element. */ public S3Origin getS3Origin() { return s3Origin; } /** * Origin information to associate with the distribution. If your * distribution will use an Amazon S3 origin, then you use the S3Origin * element. * * @param s3Origin Origin information to associate with the distribution. If your * distribution will use an Amazon S3 origin, then you use the S3Origin * element. */ public void setS3Origin(S3Origin s3Origin) { this.s3Origin = s3Origin; } /** * Origin information to associate with the distribution. If your * distribution will use an Amazon S3 origin, then you use the S3Origin * element. *

* Returns a reference to this object so that method calls can be chained together. * * @param s3Origin Origin information to associate with the distribution. If your * distribution will use an Amazon S3 origin, then you use the S3Origin * element. * * @return A reference to this updated object so that method calls can be chained * together. */ public DistributionConfig withS3Origin(S3Origin s3Origin) { this.s3Origin = s3Origin; return this; } /** * Origin information to associate with the distribution. If your * distribution will use a custom origin (non Amazon S3), then you use * the CustomOrigin element. * * @return Origin information to associate with the distribution. If your * distribution will use a custom origin (non Amazon S3), then you use * the CustomOrigin element. */ public CustomOrigin getCustomOrigin() { return customOrigin; } /** * Origin information to associate with the distribution. If your * distribution will use a custom origin (non Amazon S3), then you use * the CustomOrigin element. * * @param customOrigin Origin information to associate with the distribution. If your * distribution will use a custom origin (non Amazon S3), then you use * the CustomOrigin element. */ public void setCustomOrigin(CustomOrigin customOrigin) { this.customOrigin = customOrigin; } /** * Origin information to associate with the distribution. If your * distribution will use a custom origin (non Amazon S3), then you use * the CustomOrigin element. *

* Returns a reference to this object so that method calls can be chained together. * * @param customOrigin Origin information to associate with the distribution. If your * distribution will use a custom origin (non Amazon S3), then you use * the CustomOrigin element. * * @return A reference to this updated object so that method calls can be chained * together. */ public DistributionConfig withCustomOrigin(CustomOrigin customOrigin) { this.customOrigin = customOrigin; return this; } /** * A unique number that ensures the request can't be replayed. If the * CallerReference is new (no matter the content of the * DistributionConfig object), a new distribution is created. If the * CallerReference is a value you already sent in a previous request to * create a distribution, and the content of the DistributionConfig is * identical to the original request (ignoring white space), the response * includes the same information returned to the original request. If the * CallerReference is a value you already sent in a previous request to * create a distribution but the content of the DistributionConfig is * different from the original request, CloudFront returns a * DistributionAlreadyExists error. * * @return A unique number that ensures the request can't be replayed. If the * CallerReference is new (no matter the content of the * DistributionConfig object), a new distribution is created. If the * CallerReference is a value you already sent in a previous request to * create a distribution, and the content of the DistributionConfig is * identical to the original request (ignoring white space), the response * includes the same information returned to the original request. If the * CallerReference is a value you already sent in a previous request to * create a distribution but the content of the DistributionConfig is * different from the original request, CloudFront returns a * DistributionAlreadyExists error. */ public String getCallerReference() { return callerReference; } /** * A unique number that ensures the request can't be replayed. If the * CallerReference is new (no matter the content of the * DistributionConfig object), a new distribution is created. If the * CallerReference is a value you already sent in a previous request to * create a distribution, and the content of the DistributionConfig is * identical to the original request (ignoring white space), the response * includes the same information returned to the original request. If the * CallerReference is a value you already sent in a previous request to * create a distribution but the content of the DistributionConfig is * different from the original request, CloudFront returns a * DistributionAlreadyExists error. * * @param callerReference A unique number that ensures the request can't be replayed. If the * CallerReference is new (no matter the content of the * DistributionConfig object), a new distribution is created. If the * CallerReference is a value you already sent in a previous request to * create a distribution, and the content of the DistributionConfig is * identical to the original request (ignoring white space), the response * includes the same information returned to the original request. If the * CallerReference is a value you already sent in a previous request to * create a distribution but the content of the DistributionConfig is * different from the original request, CloudFront returns a * DistributionAlreadyExists error. */ public void setCallerReference(String callerReference) { this.callerReference = callerReference; } /** * A unique number that ensures the request can't be replayed. If the * CallerReference is new (no matter the content of the * DistributionConfig object), a new distribution is created. If the * CallerReference is a value you already sent in a previous request to * create a distribution, and the content of the DistributionConfig is * identical to the original request (ignoring white space), the response * includes the same information returned to the original request. If the * CallerReference is a value you already sent in a previous request to * create a distribution but the content of the DistributionConfig is * different from the original request, CloudFront returns a * DistributionAlreadyExists error. *

* Returns a reference to this object so that method calls can be chained together. * * @param callerReference A unique number that ensures the request can't be replayed. If the * CallerReference is new (no matter the content of the * DistributionConfig object), a new distribution is created. If the * CallerReference is a value you already sent in a previous request to * create a distribution, and the content of the DistributionConfig is * identical to the original request (ignoring white space), the response * includes the same information returned to the original request. If the * CallerReference is a value you already sent in a previous request to * create a distribution but the content of the DistributionConfig is * different from the original request, CloudFront returns a * DistributionAlreadyExists error. * * @return A reference to this updated object so that method calls can be chained * together. */ public DistributionConfig withCallerReference(String callerReference) { this.callerReference = callerReference; return this; } /** * A CNAME alias you want to associate with this distribution. You can * have up to 10 CNAME aliases per distribution. Only include a CNAME * element if you have a CNAME to associate with the distribution. Don't * include an empty CNAME element in the DistributionConfig object. If * you do, CloudFront returns a MalformedXML error. * * @return A CNAME alias you want to associate with this distribution. You can * have up to 10 CNAME aliases per distribution. Only include a CNAME * element if you have a CNAME to associate with the distribution. Don't * include an empty CNAME element in the DistributionConfig object. If * you do, CloudFront returns a MalformedXML error. */ public java.util.List getCNAME() { if (cNAME == null) { cNAME = new java.util.ArrayList(); } return cNAME; } /** * A CNAME alias you want to associate with this distribution. You can * have up to 10 CNAME aliases per distribution. Only include a CNAME * element if you have a CNAME to associate with the distribution. Don't * include an empty CNAME element in the DistributionConfig object. If * you do, CloudFront returns a MalformedXML error. * * @param cNAME A CNAME alias you want to associate with this distribution. You can * have up to 10 CNAME aliases per distribution. Only include a CNAME * element if you have a CNAME to associate with the distribution. Don't * include an empty CNAME element in the DistributionConfig object. If * you do, CloudFront returns a MalformedXML error. */ public void setCNAME(java.util.Collection cNAME) { if (cNAME == null) { this.cNAME = null; return; } java.util.List cNAMECopy = new java.util.ArrayList(cNAME.size()); cNAMECopy.addAll(cNAME); this.cNAME = cNAMECopy; } /** * A CNAME alias you want to associate with this distribution. You can * have up to 10 CNAME aliases per distribution. Only include a CNAME * element if you have a CNAME to associate with the distribution. Don't * include an empty CNAME element in the DistributionConfig object. If * you do, CloudFront returns a MalformedXML error. *

* Returns a reference to this object so that method calls can be chained together. * * @param cNAME A CNAME alias you want to associate with this distribution. You can * have up to 10 CNAME aliases per distribution. Only include a CNAME * element if you have a CNAME to associate with the distribution. Don't * include an empty CNAME element in the DistributionConfig object. If * you do, CloudFront returns a MalformedXML error. * * @return A reference to this updated object so that method calls can be chained * together. */ public DistributionConfig withCNAME(String... cNAME) { if (getCNAME() == null) setCNAME(new java.util.ArrayList(cNAME.length)); for (String value : cNAME) { getCNAME().add(value); } return this; } /** * A CNAME alias you want to associate with this distribution. You can * have up to 10 CNAME aliases per distribution. Only include a CNAME * element if you have a CNAME to associate with the distribution. Don't * include an empty CNAME element in the DistributionConfig object. If * you do, CloudFront returns a MalformedXML error. *

* Returns a reference to this object so that method calls can be chained together. * * @param cNAME A CNAME alias you want to associate with this distribution. You can * have up to 10 CNAME aliases per distribution. Only include a CNAME * element if you have a CNAME to associate with the distribution. Don't * include an empty CNAME element in the DistributionConfig object. If * you do, CloudFront returns a MalformedXML error. * * @return A reference to this updated object so that method calls can be chained * together. */ public DistributionConfig withCNAME(java.util.Collection cNAME) { if (cNAME == null) { this.cNAME = null; } else { java.util.List cNAMECopy = new java.util.ArrayList(cNAME.size()); cNAMECopy.addAll(cNAME); this.cNAME = cNAMECopy; } return this; } /** * Any comments you want to include about the distribution. * * @return Any comments you want to include about the distribution. */ public String getComment() { return comment; } /** * Any comments you want to include about the distribution. * * @param comment Any comments you want to include about the distribution. */ public void setComment(String comment) { this.comment = comment; } /** * Any comments you want to include about the distribution. *

* Returns a reference to this object so that method calls can be chained together. * * @param comment Any comments you want to include about the distribution. * * @return A reference to this updated object so that method calls can be chained * together. */ public DistributionConfig withComment(String comment) { this.comment = comment; return this; } /** * Whether the distribution is enabled to accept end user requests for * content. * * @return Whether the distribution is enabled to accept end user requests for * content. */ public Boolean isEnabled() { return enabled; } /** * Whether the distribution is enabled to accept end user requests for * content. * * @param enabled Whether the distribution is enabled to accept end user requests for * content. */ public void setEnabled(Boolean enabled) { this.enabled = enabled; } /** * Whether the distribution is enabled to accept end user requests for * content. *

* Returns a reference to this object so that method calls can be chained together. * * @param enabled Whether the distribution is enabled to accept end user requests for * content. * * @return A reference to this updated object so that method calls can be chained * together. */ public DistributionConfig withEnabled(Boolean enabled) { this.enabled = enabled; return this; } /** * Whether the distribution is enabled to accept end user requests for * content. * * @return Whether the distribution is enabled to accept end user requests for * content. */ public Boolean getEnabled() { return enabled; } /** * A complex type that controls whether access logs are written for the * distribution. If you want to turn on access logs, include this * element; if you want to turn off access logs, remove this element. * * @return A complex type that controls whether access logs are written for the * distribution. If you want to turn on access logs, include this * element; if you want to turn off access logs, remove this element. */ public LoggingConfig getLogging() { return logging; } /** * A complex type that controls whether access logs are written for the * distribution. If you want to turn on access logs, include this * element; if you want to turn off access logs, remove this element. * * @param logging A complex type that controls whether access logs are written for the * distribution. If you want to turn on access logs, include this * element; if you want to turn off access logs, remove this element. */ public void setLogging(LoggingConfig logging) { this.logging = logging; } /** * A complex type that controls whether access logs are written for the * distribution. If you want to turn on access logs, include this * element; if you want to turn off access logs, remove this element. *

* Returns a reference to this object so that method calls can be chained together. * * @param logging A complex type that controls whether access logs are written for the * distribution. If you want to turn on access logs, include this * element; if you want to turn off access logs, remove this element. * * @return A reference to this updated object so that method calls can be chained * together. */ public DistributionConfig withLogging(LoggingConfig logging) { this.logging = logging; return this; } /** * A complex type that specifies any AWS accounts you want to permit to * create signed URLs for private content. If you want the distribution * to use signed URLs, include this element; if you want the distribution * to use basic URLs, remove this element. * * @return A complex type that specifies any AWS accounts you want to permit to * create signed URLs for private content. If you want the distribution * to use signed URLs, include this element; if you want the distribution * to use basic URLs, remove this element. */ public TrustedSigners getTrustedSigners() { return trustedSigners; } /** * A complex type that specifies any AWS accounts you want to permit to * create signed URLs for private content. If you want the distribution * to use signed URLs, include this element; if you want the distribution * to use basic URLs, remove this element. * * @param trustedSigners A complex type that specifies any AWS accounts you want to permit to * create signed URLs for private content. If you want the distribution * to use signed URLs, include this element; if you want the distribution * to use basic URLs, remove this element. */ public void setTrustedSigners(TrustedSigners trustedSigners) { this.trustedSigners = trustedSigners; } /** * A complex type that specifies any AWS accounts you want to permit to * create signed URLs for private content. If you want the distribution * to use signed URLs, include this element; if you want the distribution * to use basic URLs, remove this element. *

* Returns a reference to this object so that method calls can be chained together. * * @param trustedSigners A complex type that specifies any AWS accounts you want to permit to * create signed URLs for private content. If you want the distribution * to use signed URLs, include this element; if you want the distribution * to use basic URLs, remove this element. * * @return A reference to this updated object so that method calls can be chained * together. */ public DistributionConfig withTrustedSigners(TrustedSigners trustedSigners) { this.trustedSigners = trustedSigners; return this; } /** * Defines the protocols required for your distribution. Use this element * to restrict access to your distribution solely to HTTPS requests. * Without this element, CloudFront can use any available protocol to * serve the request. * * @return Defines the protocols required for your distribution. Use this element * to restrict access to your distribution solely to HTTPS requests. * Without this element, CloudFront can use any available protocol to * serve the request. */ public RequiredProtocols getRequiredProtocols() { return requiredProtocols; } /** * Defines the protocols required for your distribution. Use this element * to restrict access to your distribution solely to HTTPS requests. * Without this element, CloudFront can use any available protocol to * serve the request. * * @param requiredProtocols Defines the protocols required for your distribution. Use this element * to restrict access to your distribution solely to HTTPS requests. * Without this element, CloudFront can use any available protocol to * serve the request. */ public void setRequiredProtocols(RequiredProtocols requiredProtocols) { this.requiredProtocols = requiredProtocols; } /** * Defines the protocols required for your distribution. Use this element * to restrict access to your distribution solely to HTTPS requests. * Without this element, CloudFront can use any available protocol to * serve the request. *

* Returns a reference to this object so that method calls can be chained together. * * @param requiredProtocols Defines the protocols required for your distribution. Use this element * to restrict access to your distribution solely to HTTPS requests. * Without this element, CloudFront can use any available protocol to * serve the request. * * @return A reference to this updated object so that method calls can be chained * together. */ public DistributionConfig withRequiredProtocols(RequiredProtocols requiredProtocols) { this.requiredProtocols = requiredProtocols; return this; } /** * Designates a default root object. Only include a DefaultRootObject * element if you are going to assign a default root object for the * distribution. Don't include an empty DefaultRootObject element in the * DistributionConfig object. If you do, CloudFront returns a * MalformedXML error. * * @return Designates a default root object. Only include a DefaultRootObject * element if you are going to assign a default root object for the * distribution. Don't include an empty DefaultRootObject element in the * DistributionConfig object. If you do, CloudFront returns a * MalformedXML error. */ public String getDefaultRootObject() { return defaultRootObject; } /** * Designates a default root object. Only include a DefaultRootObject * element if you are going to assign a default root object for the * distribution. Don't include an empty DefaultRootObject element in the * DistributionConfig object. If you do, CloudFront returns a * MalformedXML error. * * @param defaultRootObject Designates a default root object. Only include a DefaultRootObject * element if you are going to assign a default root object for the * distribution. Don't include an empty DefaultRootObject element in the * DistributionConfig object. If you do, CloudFront returns a * MalformedXML error. */ public void setDefaultRootObject(String defaultRootObject) { this.defaultRootObject = defaultRootObject; } /** * Designates a default root object. Only include a DefaultRootObject * element if you are going to assign a default root object for the * distribution. Don't include an empty DefaultRootObject element in the * DistributionConfig object. If you do, CloudFront returns a * MalformedXML error. *

* Returns a reference to this object so that method calls can be chained together. * * @param defaultRootObject Designates a default root object. Only include a DefaultRootObject * element if you are going to assign a default root object for the * distribution. Don't include an empty DefaultRootObject element in the * DistributionConfig object. If you do, CloudFront returns a * MalformedXML error. * * @return A reference to this updated object so that method calls can be chained * together. */ public DistributionConfig withDefaultRootObject(String defaultRootObject) { this.defaultRootObject = defaultRootObject; return this; } /** * Determines the minimum TTL for objects in the CloudFront cache. This * value specifies a lower bound for values in the headers for an object, * for example, in the Cache-Control max-age directive. * * @return Determines the minimum TTL for objects in the CloudFront cache. This * value specifies a lower bound for values in the headers for an object, * for example, in the Cache-Control max-age directive. */ public CachingBehavior getCachingBehavior() { return cachingBehavior; } /** * Determines the minimum TTL for objects in the CloudFront cache. This * value specifies a lower bound for values in the headers for an object, * for example, in the Cache-Control max-age directive. * * @param cachingBehavior Determines the minimum TTL for objects in the CloudFront cache. This * value specifies a lower bound for values in the headers for an object, * for example, in the Cache-Control max-age directive. */ public void setCachingBehavior(CachingBehavior cachingBehavior) { this.cachingBehavior = cachingBehavior; } /** * Determines the minimum TTL for objects in the CloudFront cache. This * value specifies a lower bound for values in the headers for an object, * for example, in the Cache-Control max-age directive. *

* Returns a reference to this object so that method calls can be chained together. * * @param cachingBehavior Determines the minimum TTL for objects in the CloudFront cache. This * value specifies a lower bound for values in the headers for an object, * for example, in the Cache-Control max-age directive. * * @return A reference to this updated object so that method calls can be chained * together. */ public DistributionConfig withCachingBehavior(CachingBehavior cachingBehavior) { this.cachingBehavior = cachingBehavior; return this; } /** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (s3Origin != null) sb.append("S3Origin: " + s3Origin + ", "); if (customOrigin != null) sb.append("CustomOrigin: " + customOrigin + ", "); if (callerReference != null) sb.append("CallerReference: " + callerReference + ", "); if (cNAME != null) sb.append("CNAME: " + cNAME + ", "); if (comment != null) sb.append("Comment: " + comment + ", "); if (enabled != null) sb.append("Enabled: " + enabled + ", "); if (logging != null) sb.append("Logging: " + logging + ", "); if (trustedSigners != null) sb.append("TrustedSigners: " + trustedSigners + ", "); if (requiredProtocols != null) sb.append("RequiredProtocols: " + requiredProtocols + ", "); if (defaultRootObject != null) sb.append("DefaultRootObject: " + defaultRootObject + ", "); if (cachingBehavior != null) sb.append("CachingBehavior: " + cachingBehavior + ", "); sb.append("}"); return sb.toString(); } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getS3Origin() == null) ? 0 : getS3Origin().hashCode()); hashCode = prime * hashCode + ((getCustomOrigin() == null) ? 0 : getCustomOrigin().hashCode()); hashCode = prime * hashCode + ((getCallerReference() == null) ? 0 : getCallerReference().hashCode()); hashCode = prime * hashCode + ((getCNAME() == null) ? 0 : getCNAME().hashCode()); hashCode = prime * hashCode + ((getComment() == null) ? 0 : getComment().hashCode()); hashCode = prime * hashCode + ((isEnabled() == null) ? 0 : isEnabled().hashCode()); hashCode = prime * hashCode + ((getLogging() == null) ? 0 : getLogging().hashCode()); hashCode = prime * hashCode + ((getTrustedSigners() == null) ? 0 : getTrustedSigners().hashCode()); hashCode = prime * hashCode + ((getRequiredProtocols() == null) ? 0 : getRequiredProtocols().hashCode()); hashCode = prime * hashCode + ((getDefaultRootObject() == null) ? 0 : getDefaultRootObject().hashCode()); hashCode = prime * hashCode + ((getCachingBehavior() == null) ? 0 : getCachingBehavior().hashCode()); return hashCode; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DistributionConfig == false) return false; DistributionConfig other = (DistributionConfig)obj; if (other.getS3Origin() == null ^ this.getS3Origin() == null) return false; if (other.getS3Origin() != null && other.getS3Origin().equals(this.getS3Origin()) == false) return false; if (other.getCustomOrigin() == null ^ this.getCustomOrigin() == null) return false; if (other.getCustomOrigin() != null && other.getCustomOrigin().equals(this.getCustomOrigin()) == false) return false; if (other.getCallerReference() == null ^ this.getCallerReference() == null) return false; if (other.getCallerReference() != null && other.getCallerReference().equals(this.getCallerReference()) == false) return false; if (other.getCNAME() == null ^ this.getCNAME() == null) return false; if (other.getCNAME() != null && other.getCNAME().equals(this.getCNAME()) == false) return false; if (other.getComment() == null ^ this.getComment() == null) return false; if (other.getComment() != null && other.getComment().equals(this.getComment()) == false) return false; if (other.isEnabled() == null ^ this.isEnabled() == null) return false; if (other.isEnabled() != null && other.isEnabled().equals(this.isEnabled()) == false) return false; if (other.getLogging() == null ^ this.getLogging() == null) return false; if (other.getLogging() != null && other.getLogging().equals(this.getLogging()) == false) return false; if (other.getTrustedSigners() == null ^ this.getTrustedSigners() == null) return false; if (other.getTrustedSigners() != null && other.getTrustedSigners().equals(this.getTrustedSigners()) == false) return false; if (other.getRequiredProtocols() == null ^ this.getRequiredProtocols() == null) return false; if (other.getRequiredProtocols() != null && other.getRequiredProtocols().equals(this.getRequiredProtocols()) == false) return false; if (other.getDefaultRootObject() == null ^ this.getDefaultRootObject() == null) return false; if (other.getDefaultRootObject() != null && other.getDefaultRootObject().equals(this.getDefaultRootObject()) == false) return false; if (other.getCachingBehavior() == null ^ this.getCachingBehavior() == null) return false; if (other.getCachingBehavior() != null && other.getCachingBehavior().equals(this.getCachingBehavior()) == false) return false; return true; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy