Interface DistributionSummary.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<DistributionSummary.Builder,,DistributionSummary> SdkBuilder<DistributionSummary.Builder,,DistributionSummary> SdkPojo
- Enclosing class:
DistributionSummary
-
Method Summary
Modifier and TypeMethodDescriptiondefault DistributionSummary.Builderaliases(Consumer<Aliases.Builder> aliases) A complex type that contains information about CNAMEs (alternate domain names), if any, for this distribution.A complex type that contains information about CNAMEs (alternate domain names), if any, for this distribution.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.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.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.The ARN (Amazon Resource Name) for the distribution.default DistributionSummary.BuildercacheBehaviors(Consumer<CacheBehaviors.Builder> cacheBehaviors) A complex type that contains zero or moreCacheBehaviorelements.cacheBehaviors(CacheBehaviors cacheBehaviors) A complex type that contains zero or moreCacheBehaviorelements.The comment originally specified when this distribution was created.default DistributionSummary.BuildercustomErrorResponses(Consumer<CustomErrorResponses.Builder> customErrorResponses) A complex type that contains zero or moreCustomErrorResponseselements.customErrorResponses(CustomErrorResponses customErrorResponses) A complex type that contains zero or moreCustomErrorResponseselements.default DistributionSummary.BuilderdefaultCacheBehavior(Consumer<DefaultCacheBehavior.Builder> defaultCacheBehavior) A complex type that describes the default cache behavior if you don't specify aCacheBehaviorelement or if files don't match any of the values ofPathPatterninCacheBehaviorelements.defaultCacheBehavior(DefaultCacheBehavior defaultCacheBehavior) A complex type that describes the default cache behavior if you don't specify aCacheBehaviorelement or if files don't match any of the values ofPathPatterninCacheBehaviorelements.domainName(String domainName) The domain name that corresponds to the distribution, for example,d111111abcdef8.cloudfront.net.Whether the distribution is enabled to accept user requests for content.httpVersion(String httpVersion) Specify the maximum HTTP version that you want viewers to use to communicate with CloudFront.httpVersion(HttpVersion httpVersion) Specify the maximum HTTP version that you want viewers to use to communicate with CloudFront.The identifier for the distribution.isIPV6Enabled(Boolean isIPV6Enabled) Whether CloudFront responds to IPv6 DNS requests with an IPv6 address for your distribution.lastModifiedTime(Instant lastModifiedTime) The date and time the distribution was last modified.default DistributionSummary.BuilderoriginGroups(Consumer<OriginGroups.Builder> originGroups) A complex type that contains information about origin groups for this distribution.originGroups(OriginGroups originGroups) A complex type that contains information about origin groups for this distribution.default DistributionSummary.Builderorigins(Consumer<Origins.Builder> origins) A complex type that contains information about origins for this distribution.A complex type that contains information about origins for this distribution.priceClass(String priceClass) A complex type that contains information about price class for this streaming distribution.priceClass(PriceClass priceClass) A complex type that contains information about price class for this streaming distribution.default DistributionSummary.Builderrestrictions(Consumer<Restrictions.Builder> restrictions) A complex type that identifies ways in which you want to restrict distribution of your content.restrictions(Restrictions restrictions) A complex type that identifies ways in which you want to restrict distribution of your content.A Boolean that indicates whether this is a staging distribution.The current status of the distribution.default DistributionSummary.BuilderviewerCertificate(Consumer<ViewerCertificate.Builder> viewerCertificate) A complex type that determines the distribution's SSL/TLS configuration for communicating with viewers.viewerCertificate(ViewerCertificate viewerCertificate) A complex type that determines the distribution's SSL/TLS configuration for communicating with viewers.The Web ACL Id (if any) associated with the distribution.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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
The ARN (Amazon Resource Name) for the distribution. For example:
arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5, where123456789012is your Amazon Web Services account ID.- Parameters:
arn- The ARN (Amazon Resource Name) for the distribution. For example:arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5, where123456789012is your Amazon Web Services account ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
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
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
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
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.Builderavoiding the need to create one manually viaAliases.builder().When the
Consumercompletes,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:
-
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
A complex type that contains information about origins for this distribution.
This is a convenience method that creates an instance of theOrigins.Builderavoiding the need to create one manually viaOrigins.builder().When the
Consumercompletes,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:
-
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
A complex type that contains information about origin groups for this distribution.
This is a convenience method that creates an instance of theOriginGroups.Builderavoiding the need to create one manually viaOriginGroups.builder().When the
Consumercompletes,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:
-
defaultCacheBehavior
A complex type that describes the default cache behavior if you don't specify a
CacheBehaviorelement or if files don't match any of the values ofPathPatterninCacheBehaviorelements. You must create exactly one default cache behavior.- Parameters:
defaultCacheBehavior- A complex type that describes the default cache behavior if you don't specify aCacheBehaviorelement or if files don't match any of the values ofPathPatterninCacheBehaviorelements. 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 theCacheBehaviorelement or if files don't match any of the values ofPathPatterninCacheBehaviorelements. You must create exactly one default cache behavior.DefaultCacheBehavior.Builderavoiding the need to create one manually viaDefaultCacheBehavior.builder().When the
Consumercompletes,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:
-
cacheBehaviors
A complex type that contains zero or more
CacheBehaviorelements.- Parameters:
cacheBehaviors- A complex type that contains zero or moreCacheBehaviorelements.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cacheBehaviors
A complex type that contains zero or more
This is a convenience method that creates an instance of theCacheBehaviorelements.CacheBehaviors.Builderavoiding the need to create one manually viaCacheBehaviors.builder().When the
Consumercompletes,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:
-
customErrorResponses
A complex type that contains zero or more
CustomErrorResponseselements.- Parameters:
customErrorResponses- A complex type that contains zero or moreCustomErrorResponseselements.- 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 theCustomErrorResponseselements.CustomErrorResponses.Builderavoiding the need to create one manually viaCustomErrorResponses.builder().When the
Consumercompletes,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:
-
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
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
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:
-
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
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.Builderavoiding the need to create one manually viaViewerCertificate.builder().When the
Consumercompletes,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:
-
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
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.Builderavoiding the need to create one manually viaRestrictions.builder().When the
Consumercompletes,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:
-
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
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/2will 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/2will automatically use an earlier version.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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/2will 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/2will automatically use an earlier version.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
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
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.Builderavoiding the need to create one manually viaAliasICPRecordal.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toaliasICPRecordals(List<AliasICPRecordal>).- 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:
-
staging
A Boolean that indicates whether this is a staging distribution. When this value is
true, this is a staging distribution. When this value isfalse, this is not a staging distribution.- Parameters:
staging- A Boolean that indicates whether this is a staging distribution. When this value istrue, this is a staging distribution. When this value isfalse, this is not a staging distribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-