/** * Construct a distribution configuration compatible with CloudFront API versions 2012-05-05 and later */ public StreamingDistributionConfig(Origin[] origins, String callerReference, String[] cnames, String comment, boolean enabled, LoggingStatus loggingStatus, String[] trustedSignerAwsAccountNumbers) { super(origins, callerReference, cnames, comment, enabled, loggingStatus, null, new CacheBehavior(null, false, trustedSignerAwsAccountNumbers, CacheBehavior.ViewerProtocolPolicy.ALLOW_ALL, 0L), null); }
/** * Construct a distribution configuration compatible with CloudFront API versions 2012-05-05 and later */ public StreamingDistributionConfig(Origin[] origins, String callerReference, String[] cnames, String comment, boolean enabled, LoggingStatus loggingStatus, String[] trustedSignerAwsAccountNumbers) { super(origins, callerReference, cnames, comment, enabled, loggingStatus, null, new CacheBehavior(null, false, trustedSignerAwsAccountNumbers, CacheBehavior.ViewerProtocolPolicy.ALLOW_ALL, 0L), null); }
/** * Construct a distribution configuration compatible with CloudFront API versions * 2012-05-05 and later (i.e. including cache behaviors and multiple origins) */ public DistributionConfig(Origin[] origins, String callerReference, String[] cnames, String comment, boolean enabled, LoggingStatus loggingStatus, String defaultRootObject, CacheBehavior defaultCacheBehavior, CacheBehavior[] cacheBehaviors) { this.origins = origins; this.callerReference = callerReference; this.cnames = null == cnames ? new String[0] : cnames; this.comment = comment; this.enabled = enabled; this.loggingStatus = loggingStatus; this.defaultRootObject = defaultRootObject; this.defaultCacheBehavior = null == defaultCacheBehavior ? new CacheBehavior() : defaultCacheBehavior; this.cacheBehaviors = null == cacheBehaviors ? new CacheBehavior[]{} : cacheBehaviors; }
/** * Construct a distribution configuration compatible with CloudFront API versions * 2012-05-05 and later (i.e. including cache behaviors and multiple origins) */ public DistributionConfig(Origin[] origins, String callerReference, String[] cnames, String comment, boolean enabled, LoggingStatus loggingStatus, String defaultRootObject, CacheBehavior defaultCacheBehavior, CacheBehavior[] cacheBehaviors) { this.origins = origins; this.callerReference = callerReference; this.cnames = null == cnames ? new String[0] : cnames; this.comment = comment; this.enabled = enabled; this.loggingStatus = loggingStatus; this.defaultRootObject = defaultRootObject; this.defaultCacheBehavior = null == defaultCacheBehavior ? new CacheBehavior() : defaultCacheBehavior; this.cacheBehaviors = null == cacheBehaviors ? new CacheBehavior[]{} : cacheBehaviors; }