Interface DistributionSummary.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<DistributionSummary.Builder,DistributionSummary>
,SdkBuilder<DistributionSummary.Builder,DistributionSummary>
,SdkPojo
- Enclosing class:
- DistributionSummary
public static interface DistributionSummary.Builder extends SdkPojo, CopyableBuilder<DistributionSummary.Builder,DistributionSummary>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description 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
aliases(Aliases aliases)
A complex type that contains information about CNAMEs (alternate domain names), if any, for this distribution.DistributionSummary.Builder
aliasICPRecordals(Collection<AliasICPRecordal> aliasICPRecordals)
Amazon Web Services services in China customers must file for an Internet Content Provider (ICP) recordal if they want to serve content publicly on an alternate domain name, also known as a CNAME, that they've added to CloudFront.DistributionSummary.Builder
aliasICPRecordals(Consumer<AliasICPRecordal.Builder>... aliasICPRecordals)
Amazon Web Services services in China customers must file for an Internet Content Provider (ICP) recordal if they want to serve content publicly on an alternate domain name, also known as a CNAME, that they've added to CloudFront.DistributionSummary.Builder
aliasICPRecordals(AliasICPRecordal... aliasICPRecordals)
Amazon Web Services services in China customers must file for an Internet Content Provider (ICP) recordal if they want to serve content publicly on an alternate domain name, also known as a CNAME, that they've added to CloudFront.DistributionSummary.Builder
arn(String arn)
The ARN (Amazon Resource Name) for the distribution.default DistributionSummary.Builder
cacheBehaviors(Consumer<CacheBehaviors.Builder> cacheBehaviors)
A complex type that contains zero or moreCacheBehavior
elements.DistributionSummary.Builder
cacheBehaviors(CacheBehaviors cacheBehaviors)
A complex type that contains zero or moreCacheBehavior
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 moreCustomErrorResponses
elements.DistributionSummary.Builder
customErrorResponses(CustomErrorResponses customErrorResponses)
A complex type that contains zero or moreCustomErrorResponses
elements.default DistributionSummary.Builder
defaultCacheBehavior(Consumer<DefaultCacheBehavior.Builder> defaultCacheBehavior)
A complex type that describes the default cache behavior if you don't specify aCacheBehavior
element or if files don't match any of the values ofPathPattern
inCacheBehavior
elements.DistributionSummary.Builder
defaultCacheBehavior(DefaultCacheBehavior defaultCacheBehavior)
A complex type that describes the default cache behavior if you don't specify aCacheBehavior
element or if files don't match any of the values ofPathPattern
inCacheBehavior
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(String httpVersion)
Specify the maximum HTTP version that you want viewers to use to communicate with CloudFront.DistributionSummary.Builder
httpVersion(HttpVersion 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
originGroups(Consumer<OriginGroups.Builder> originGroups)
A complex type that contains information about origin groups for this distribution.DistributionSummary.Builder
originGroups(OriginGroups originGroups)
A complex type that contains information about origin groups for this distribution.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(String priceClass)
A complex type that contains information about price class for this streaming distribution.DistributionSummary.Builder
priceClass(PriceClass priceClass)
A complex type that contains information about price class for this streaming distribution.default DistributionSummary.Builder
restrictions(Consumer<Restrictions.Builder> restrictions)
A complex type that identifies ways in which you want to restrict distribution of your content.DistributionSummary.Builder
restrictions(Restrictions restrictions)
A complex type that identifies ways in which you want to restrict distribution of your content.DistributionSummary.Builder
staging(Boolean staging)
Whether the primary distribution has a staging distribution enabled.DistributionSummary.Builder
status(String status)
The current status of the distribution.default DistributionSummary.Builder
viewerCertificate(Consumer<ViewerCertificate.Builder> viewerCertificate)
A complex type that determines the distribution's SSL/TLS configuration for communicating with viewers.DistributionSummary.Builder
viewerCertificate(ViewerCertificate viewerCertificate)
A complex type that determines the distribution's SSL/TLS configuration for communicating with viewers.DistributionSummary.Builder
webACLId(String webACLId)
The Web ACL Id (if any) associated with the distribution.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
id
DistributionSummary.Builder id(String id)
The identifier for the distribution. For example:
EDFDVBD632BHDS5
.- Parameters:
id
- The identifier for the distribution. For example:EDFDVBD632BHDS5
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
arn
DistributionSummary.Builder arn(String arn)
The ARN (Amazon Resource Name) for the distribution. For example:
arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5
, where123456789012
is your Amazon Web Services account ID.- Parameters:
arn
- The ARN (Amazon Resource Name) for the distribution. For example:arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5
, where123456789012
is your Amazon Web Services account ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
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.- Parameters:
status
- The current status of the distribution. When the status isDeployed
, the distribution's information is propagated to all CloudFront edge locations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastModifiedTime
DistributionSummary.Builder lastModifiedTime(Instant lastModifiedTime)
The date and time the distribution was last modified.
- Parameters:
lastModifiedTime
- The date and time the distribution was last modified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
domainName
DistributionSummary.Builder domainName(String domainName)
The domain name that corresponds to the distribution, for example,
d111111abcdef8.cloudfront.net
.- Parameters:
domainName
- The domain name that corresponds to the distribution, for example,d111111abcdef8.cloudfront.net
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
aliases
DistributionSummary.Builder aliases(Aliases aliases)
A complex type that contains information about CNAMEs (alternate domain names), if any, for this distribution.
- Parameters:
aliases
- A complex type that contains information about CNAMEs (alternate domain names), if any, for this distribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
aliases
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 method that creates an instance of theAliases.Builder
avoiding the need to create one manually viaAliases.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toaliases(Aliases)
.- Parameters:
aliases
- a consumer that will call methods onAliases.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
aliases(Aliases)
-
origins
DistributionSummary.Builder origins(Origins origins)
A complex type that contains information about origins for this distribution.
- Parameters:
origins
- A complex type that contains information about origins for this distribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
origins
default DistributionSummary.Builder origins(Consumer<Origins.Builder> origins)
A complex type that contains information about origins for this distribution.
This is a convenience method that creates an instance of theOrigins.Builder
avoiding the need to create one manually viaOrigins.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toorigins(Origins)
.- Parameters:
origins
- a consumer that will call methods onOrigins.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
origins(Origins)
-
originGroups
DistributionSummary.Builder originGroups(OriginGroups originGroups)
A complex type that contains information about origin groups for this distribution.
- Parameters:
originGroups
- A complex type that contains information about origin groups for this distribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
originGroups
default DistributionSummary.Builder originGroups(Consumer<OriginGroups.Builder> originGroups)
A complex type that contains information about origin groups for this distribution.
This is a convenience method that creates an instance of theOriginGroups.Builder
avoiding the need to create one manually viaOriginGroups.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tooriginGroups(OriginGroups)
.- Parameters:
originGroups
- a consumer that will call methods onOriginGroups.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
originGroups(OriginGroups)
-
defaultCacheBehavior
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 ofPathPattern
inCacheBehavior
elements. You must create exactly one default cache behavior.- Parameters:
defaultCacheBehavior
- A complex type that describes the default cache behavior if you don't specify aCacheBehavior
element or if files don't match any of the values ofPathPattern
inCacheBehavior
elements. You must create exactly one default cache behavior.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
defaultCacheBehavior
default DistributionSummary.Builder defaultCacheBehavior(Consumer<DefaultCacheBehavior.Builder> defaultCacheBehavior)
A complex type that describes the default cache behavior if you don't specify a
This is a convenience method that creates an instance of theCacheBehavior
element or if files don't match any of the values ofPathPattern
inCacheBehavior
elements. You must create exactly one default cache behavior.DefaultCacheBehavior.Builder
avoiding the need to create one manually viaDefaultCacheBehavior.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todefaultCacheBehavior(DefaultCacheBehavior)
.- Parameters:
defaultCacheBehavior
- a consumer that will call methods onDefaultCacheBehavior.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
defaultCacheBehavior(DefaultCacheBehavior)
-
cacheBehaviors
DistributionSummary.Builder cacheBehaviors(CacheBehaviors cacheBehaviors)
A complex type that contains zero or more
CacheBehavior
elements.- Parameters:
cacheBehaviors
- A complex type that contains zero or moreCacheBehavior
elements.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cacheBehaviors
default DistributionSummary.Builder cacheBehaviors(Consumer<CacheBehaviors.Builder> cacheBehaviors)
A complex type that contains zero or more
This is a convenience method that creates an instance of theCacheBehavior
elements.CacheBehaviors.Builder
avoiding the need to create one manually viaCacheBehaviors.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocacheBehaviors(CacheBehaviors)
.- Parameters:
cacheBehaviors
- a consumer that will call methods onCacheBehaviors.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
cacheBehaviors(CacheBehaviors)
-
customErrorResponses
DistributionSummary.Builder customErrorResponses(CustomErrorResponses customErrorResponses)
A complex type that contains zero or more
CustomErrorResponses
elements.- Parameters:
customErrorResponses
- A complex type that contains zero or moreCustomErrorResponses
elements.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customErrorResponses
default DistributionSummary.Builder customErrorResponses(Consumer<CustomErrorResponses.Builder> customErrorResponses)
A complex type that contains zero or more
This is a convenience method that creates an instance of theCustomErrorResponses
elements.CustomErrorResponses.Builder
avoiding the need to create one manually viaCustomErrorResponses.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocustomErrorResponses(CustomErrorResponses)
.- Parameters:
customErrorResponses
- a consumer that will call methods onCustomErrorResponses.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
customErrorResponses(CustomErrorResponses)
-
comment
DistributionSummary.Builder comment(String comment)
The comment originally specified when this distribution was created.
- Parameters:
comment
- The comment originally specified when this distribution was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
priceClass
DistributionSummary.Builder priceClass(String priceClass)
A complex type that contains information about price class for this streaming distribution.
- Parameters:
priceClass
- A complex type that contains information about price class for this streaming distribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PriceClass
,PriceClass
-
priceClass
DistributionSummary.Builder priceClass(PriceClass priceClass)
A complex type that contains information about price class for this streaming distribution.
- Parameters:
priceClass
- A complex type that contains information about price class for this streaming distribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PriceClass
,PriceClass
-
enabled
DistributionSummary.Builder enabled(Boolean enabled)
Whether the distribution is enabled to accept user requests for content.
- Parameters:
enabled
- Whether the distribution is enabled to accept user requests for content.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
viewerCertificate
DistributionSummary.Builder viewerCertificate(ViewerCertificate viewerCertificate)
A complex type that determines the distribution's SSL/TLS configuration for communicating with viewers.
- Parameters:
viewerCertificate
- A complex type that determines the distribution's SSL/TLS configuration for communicating with viewers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
viewerCertificate
default DistributionSummary.Builder viewerCertificate(Consumer<ViewerCertificate.Builder> viewerCertificate)
A complex type that determines the distribution's SSL/TLS configuration for communicating with viewers.
This is a convenience method that creates an instance of theViewerCertificate.Builder
avoiding the need to create one manually viaViewerCertificate.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toviewerCertificate(ViewerCertificate)
.- Parameters:
viewerCertificate
- a consumer that will call methods onViewerCertificate.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
viewerCertificate(ViewerCertificate)
-
restrictions
DistributionSummary.Builder restrictions(Restrictions restrictions)
A complex type that identifies ways in which you want to restrict distribution of your content.
- Parameters:
restrictions
- A complex type that identifies ways in which you want to restrict distribution of your content.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
restrictions
default DistributionSummary.Builder restrictions(Consumer<Restrictions.Builder> restrictions)
A complex type that identifies ways in which you want to restrict distribution of your content.
This is a convenience method that creates an instance of theRestrictions.Builder
avoiding the need to create one manually viaRestrictions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torestrictions(Restrictions)
.- Parameters:
restrictions
- a consumer that will call methods onRestrictions.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
restrictions(Restrictions)
-
webACLId
DistributionSummary.Builder webACLId(String webACLId)
The Web ACL Id (if any) associated with the distribution.
- Parameters:
webACLId
- The Web ACL Id (if any) associated with the distribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
httpVersion
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 supportHTTP/2
will automatically use an earlier version.- Parameters:
httpVersion
- Specify the maximum HTTP version that you want viewers to use to communicate with CloudFront. The default value for new web distributions ishttp2
. Viewers that don't supportHTTP/2
will automatically use an earlier version.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
HttpVersion
,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 supportHTTP/2
will automatically use an earlier version.- Parameters:
httpVersion
- Specify the maximum HTTP version that you want viewers to use to communicate with CloudFront. The default value for new web distributions ishttp2
. Viewers that don't supportHTTP/2
will automatically use an earlier version.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
HttpVersion
,HttpVersion
-
isIPV6Enabled
DistributionSummary.Builder isIPV6Enabled(Boolean isIPV6Enabled)
Whether CloudFront responds to IPv6 DNS requests with an IPv6 address for your distribution.
- Parameters:
isIPV6Enabled
- Whether CloudFront responds to IPv6 DNS requests with an IPv6 address for your distribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
aliasICPRecordals
DistributionSummary.Builder aliasICPRecordals(Collection<AliasICPRecordal> aliasICPRecordals)
Amazon Web Services services in China customers must file for an Internet Content Provider (ICP) recordal if they want to serve content publicly on an alternate domain name, also known as a CNAME, that they've added to CloudFront. AliasICPRecordal provides the ICP recordal status for CNAMEs associated with distributions.
For more information about ICP recordals, see Signup, Accounts, and Credentials in Getting Started with Amazon Web Services services in China.
- Parameters:
aliasICPRecordals
- Amazon Web Services services in China customers must file for an Internet Content Provider (ICP) recordal if they want to serve content publicly on an alternate domain name, also known as a CNAME, that they've added to CloudFront. AliasICPRecordal provides the ICP recordal status for CNAMEs associated with distributions.For more information about ICP recordals, see Signup, Accounts, and Credentials in Getting Started with Amazon Web Services services in China.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
aliasICPRecordals
DistributionSummary.Builder aliasICPRecordals(AliasICPRecordal... aliasICPRecordals)
Amazon Web Services services in China customers must file for an Internet Content Provider (ICP) recordal if they want to serve content publicly on an alternate domain name, also known as a CNAME, that they've added to CloudFront. AliasICPRecordal provides the ICP recordal status for CNAMEs associated with distributions.
For more information about ICP recordals, see Signup, Accounts, and Credentials in Getting Started with Amazon Web Services services in China.
- Parameters:
aliasICPRecordals
- Amazon Web Services services in China customers must file for an Internet Content Provider (ICP) recordal if they want to serve content publicly on an alternate domain name, also known as a CNAME, that they've added to CloudFront. AliasICPRecordal provides the ICP recordal status for CNAMEs associated with distributions.For more information about ICP recordals, see Signup, Accounts, and Credentials in Getting Started with Amazon Web Services services in China.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
aliasICPRecordals
DistributionSummary.Builder aliasICPRecordals(Consumer<AliasICPRecordal.Builder>... aliasICPRecordals)
Amazon Web Services services in China customers must file for an Internet Content Provider (ICP) recordal if they want to serve content publicly on an alternate domain name, also known as a CNAME, that they've added to CloudFront. AliasICPRecordal provides the ICP recordal status for CNAMEs associated with distributions.
For more information about ICP recordals, see Signup, Accounts, and Credentials in Getting Started with Amazon Web Services services in China.
This is a convenience method that creates an instance of theAliasICPRecordal.Builder
avoiding the need to create one manually viaAliasICPRecordal.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#aliasICPRecordals(List
.) - Parameters:
aliasICPRecordals
- a consumer that will call methods onAliasICPRecordal.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#aliasICPRecordals(java.util.Collection
)
-
staging
DistributionSummary.Builder staging(Boolean staging)
Whether the primary distribution has a staging distribution enabled.
- Parameters:
staging
- Whether the primary distribution has a staging distribution enabled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-