public static interface DistributionSummary.Builder extends CopyableBuilder<DistributionSummary.Builder,DistributionSummary>
Modifier and Type | Method and Description |
---|---|
DistributionSummary.Builder |
aliases(Aliases aliases)
A complex type that contains information about CNAMEs (alternate domain names), if any, for this
distribution.
|
default DistributionSummary.Builder |
aliases(Consumer<Aliases.Builder> aliases)
A complex type that contains information about CNAMEs (alternate domain names), if any, for this
distribution.
|
DistributionSummary.Builder |
arn(String arn)
The ARN (Amazon Resource Name) for the distribution.
|
DistributionSummary.Builder |
cacheBehaviors(CacheBehaviors cacheBehaviors)
A complex type that contains zero or more
CacheBehavior elements. |
default DistributionSummary.Builder |
cacheBehaviors(Consumer<CacheBehaviors.Builder> cacheBehaviors)
A complex type that contains zero or more
CacheBehavior elements. |
DistributionSummary.Builder |
comment(String comment)
The comment originally specified when this distribution was created.
|
default DistributionSummary.Builder |
customErrorResponses(Consumer<CustomErrorResponses.Builder> customErrorResponses)
A complex type that contains zero or more
CustomErrorResponses elements. |
DistributionSummary.Builder |
customErrorResponses(CustomErrorResponses customErrorResponses)
A complex type that contains zero or more
CustomErrorResponses elements. |
default DistributionSummary.Builder |
defaultCacheBehavior(Consumer<DefaultCacheBehavior.Builder> defaultCacheBehavior)
A complex type that describes the default cache behavior if you don't specify a
CacheBehavior
element or if files don't match any of the values of PathPattern in CacheBehavior
elements. |
DistributionSummary.Builder |
defaultCacheBehavior(DefaultCacheBehavior defaultCacheBehavior)
A complex type that describes the default cache behavior if you don't specify a
CacheBehavior
element or if files don't match any of the values of PathPattern in CacheBehavior
elements. |
DistributionSummary.Builder |
domainName(String domainName)
The domain name that corresponds to the distribution, for example,
d111111abcdef8.cloudfront.net
. |
DistributionSummary.Builder |
enabled(Boolean enabled)
Whether the distribution is enabled to accept user requests for content.
|
DistributionSummary.Builder |
httpVersion(HttpVersion httpVersion)
Specify the maximum HTTP version that you want viewers to use to communicate with CloudFront.
|
DistributionSummary.Builder |
httpVersion(String httpVersion)
Specify the maximum HTTP version that you want viewers to use to communicate with CloudFront.
|
DistributionSummary.Builder |
id(String id)
The identifier for the distribution.
|
DistributionSummary.Builder |
isIPV6Enabled(Boolean isIPV6Enabled)
Whether CloudFront responds to IPv6 DNS requests with an IPv6 address for your distribution.
|
DistributionSummary.Builder |
lastModifiedTime(Instant lastModifiedTime)
The date and time the distribution was last modified.
|
default DistributionSummary.Builder |
origins(Consumer<Origins.Builder> origins)
A complex type that contains information about origins for this distribution.
|
DistributionSummary.Builder |
origins(Origins origins)
A complex type that contains information about origins for this distribution.
|
DistributionSummary.Builder |
priceClass(PriceClass priceClass)
Sets the value of the PriceClass property for this object.
|
DistributionSummary.Builder |
priceClass(String priceClass)
Sets the value of the PriceClass property for this object.
|
default DistributionSummary.Builder |
restrictions(Consumer<Restrictions.Builder> restrictions)
Sets the value of the Restrictions property for this object.
|
DistributionSummary.Builder |
restrictions(Restrictions restrictions)
Sets the value of the Restrictions property for this object.
|
DistributionSummary.Builder |
status(String status)
The current status of the distribution.
|
default DistributionSummary.Builder |
viewerCertificate(Consumer<ViewerCertificate.Builder> viewerCertificate)
Sets the value of the ViewerCertificate property for this object.
|
DistributionSummary.Builder |
viewerCertificate(ViewerCertificate viewerCertificate)
Sets the value of the ViewerCertificate property for this object.
|
DistributionSummary.Builder |
webACLId(String webACLId)
The Web ACL Id (if any) associated with the distribution.
|
copy
applyMutation, build
DistributionSummary.Builder id(String id)
The identifier for the distribution. For example: EDFDVBD632BHDS5
.
id
- The identifier for the distribution. For example: EDFDVBD632BHDS5
.DistributionSummary.Builder arn(String arn)
The ARN (Amazon Resource Name) for the distribution. For example:
arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5
, where 123456789012
is your AWS account ID.
arn
- The ARN (Amazon Resource Name) for the distribution. For example:
arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5
, where
123456789012
is your AWS account ID.DistributionSummary.Builder status(String status)
The current status of the distribution. When the status is Deployed
, the distribution's
information is propagated to all CloudFront edge locations.
status
- The current status of the distribution. When the status is Deployed
, the distribution's
information is propagated to all CloudFront edge locations.DistributionSummary.Builder lastModifiedTime(Instant lastModifiedTime)
The date and time the distribution was last modified.
lastModifiedTime
- The date and time the distribution was last modified.DistributionSummary.Builder domainName(String domainName)
The domain name that corresponds to the distribution, for example, d111111abcdef8.cloudfront.net
.
domainName
- The domain name that corresponds to the distribution, for example,
d111111abcdef8.cloudfront.net
.DistributionSummary.Builder aliases(Aliases aliases)
A complex type that contains information about CNAMEs (alternate domain names), if any, for this distribution.
aliases
- A complex type that contains information about CNAMEs (alternate domain names), if any, for this
distribution.default DistributionSummary.Builder aliases(Consumer<Aliases.Builder> aliases)
A complex type that contains information about CNAMEs (alternate domain names), if any, for this distribution.
This is a convenience that creates an instance of theAliases.Builder
avoiding the need to create one
manually via Aliases.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result is
passed to aliases(Aliases)
.aliases
- a consumer that will call methods on Aliases.Builder
aliases(Aliases)
DistributionSummary.Builder origins(Origins origins)
A complex type that contains information about origins for this distribution.
origins
- A complex type that contains information about origins for this distribution.default DistributionSummary.Builder origins(Consumer<Origins.Builder> origins)
A complex type that contains information about origins for this distribution.
This is a convenience that creates an instance of theOrigins.Builder
avoiding the need to create one
manually via Origins.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result is
passed to origins(Origins)
.origins
- a consumer that will call methods on Origins.Builder
origins(Origins)
DistributionSummary.Builder defaultCacheBehavior(DefaultCacheBehavior defaultCacheBehavior)
A complex type that describes the default cache behavior if you don't specify a CacheBehavior
element or if files don't match any of the values of PathPattern
in CacheBehavior
elements. You must create exactly one default cache behavior.
defaultCacheBehavior
- A complex type that describes the default cache behavior if you don't specify a
CacheBehavior
element or if files don't match any of the values of
PathPattern
in CacheBehavior
elements. You must create exactly one default
cache behavior.default DistributionSummary.Builder defaultCacheBehavior(Consumer<DefaultCacheBehavior.Builder> defaultCacheBehavior)
A complex type that describes the default cache behavior if you don't specify a CacheBehavior
element or if files don't match any of the values of PathPattern
in CacheBehavior
elements. You must create exactly one default cache behavior.
DefaultCacheBehavior.Builder
avoiding the need
to create one manually via DefaultCacheBehavior.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and
its result is passed to defaultCacheBehavior(DefaultCacheBehavior)
.defaultCacheBehavior
- a consumer that will call methods on DefaultCacheBehavior.Builder
defaultCacheBehavior(DefaultCacheBehavior)
DistributionSummary.Builder cacheBehaviors(CacheBehaviors cacheBehaviors)
A complex type that contains zero or more CacheBehavior
elements.
cacheBehaviors
- A complex type that contains zero or more CacheBehavior
elements.default DistributionSummary.Builder cacheBehaviors(Consumer<CacheBehaviors.Builder> cacheBehaviors)
A complex type that contains zero or more CacheBehavior
elements.
CacheBehaviors.Builder
avoiding the need to
create one manually via CacheBehaviors.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to cacheBehaviors(CacheBehaviors)
.cacheBehaviors
- a consumer that will call methods on CacheBehaviors.Builder
cacheBehaviors(CacheBehaviors)
DistributionSummary.Builder customErrorResponses(CustomErrorResponses customErrorResponses)
A complex type that contains zero or more CustomErrorResponses
elements.
customErrorResponses
- A complex type that contains zero or more CustomErrorResponses
elements.default DistributionSummary.Builder customErrorResponses(Consumer<CustomErrorResponses.Builder> customErrorResponses)
A complex type that contains zero or more CustomErrorResponses
elements.
CustomErrorResponses.Builder
avoiding the need
to create one manually via CustomErrorResponses.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and
its result is passed to customErrorResponses(CustomErrorResponses)
.customErrorResponses
- a consumer that will call methods on CustomErrorResponses.Builder
customErrorResponses(CustomErrorResponses)
DistributionSummary.Builder comment(String comment)
The comment originally specified when this distribution was created.
comment
- The comment originally specified when this distribution was created.DistributionSummary.Builder priceClass(String priceClass)
priceClass
- The new value for the PriceClass property for this object.PriceClass
,
PriceClass
DistributionSummary.Builder priceClass(PriceClass priceClass)
priceClass
- The new value for the PriceClass property for this object.PriceClass
,
PriceClass
DistributionSummary.Builder enabled(Boolean enabled)
Whether the distribution is enabled to accept user requests for content.
enabled
- Whether the distribution is enabled to accept user requests for content.DistributionSummary.Builder viewerCertificate(ViewerCertificate viewerCertificate)
viewerCertificate
- The new value for the ViewerCertificate property for this object.default DistributionSummary.Builder viewerCertificate(Consumer<ViewerCertificate.Builder> viewerCertificate)
ViewerCertificate.Builder
avoiding the need to
create one manually via ViewerCertificate.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to viewerCertificate(ViewerCertificate)
.viewerCertificate
- a consumer that will call methods on ViewerCertificate.Builder
viewerCertificate(ViewerCertificate)
DistributionSummary.Builder restrictions(Restrictions restrictions)
restrictions
- The new value for the Restrictions property for this object.default DistributionSummary.Builder restrictions(Consumer<Restrictions.Builder> restrictions)
Restrictions.Builder
avoiding the need to
create one manually via Restrictions.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to restrictions(Restrictions)
.restrictions
- a consumer that will call methods on Restrictions.Builder
restrictions(Restrictions)
DistributionSummary.Builder webACLId(String webACLId)
The Web ACL Id (if any) associated with the distribution.
webACLId
- The Web ACL Id (if any) associated with the distribution.DistributionSummary.Builder httpVersion(String httpVersion)
Specify the maximum HTTP version that you want viewers to use to communicate with CloudFront. The default
value for new web distributions is http2
. Viewers that don't support HTTP/2
will
automatically use an earlier version.
httpVersion
- Specify the maximum HTTP version that you want viewers to use to communicate with CloudFront. The
default value for new web distributions is http2
. Viewers that don't support
HTTP/2
will automatically use an earlier version.HttpVersion
,
HttpVersion
DistributionSummary.Builder httpVersion(HttpVersion httpVersion)
Specify the maximum HTTP version that you want viewers to use to communicate with CloudFront. The default
value for new web distributions is http2
. Viewers that don't support HTTP/2
will
automatically use an earlier version.
httpVersion
- Specify the maximum HTTP version that you want viewers to use to communicate with CloudFront. The
default value for new web distributions is http2
. Viewers that don't support
HTTP/2
will automatically use an earlier version.HttpVersion
,
HttpVersion
DistributionSummary.Builder isIPV6Enabled(Boolean isIPV6Enabled)
Whether CloudFront responds to IPv6 DNS requests with an IPv6 address for your distribution.
isIPV6Enabled
- Whether CloudFront responds to IPv6 DNS requests with an IPv6 address for your distribution.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.