Interface DistributionSummary.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<DistributionSummary.Builder,DistributionSummary>,SdkBuilder<DistributionSummary.Builder,DistributionSummary>,SdkPojo
- Enclosing class:
- DistributionSummary
@Mutable @NotThreadSafe 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.Builderaliases(Consumer<Aliases.Builder> aliases)A complex type that contains information about CNAMEs (alternate domain names), if any, for this distribution.DistributionSummary.Builderaliases(Aliases aliases)A complex type that contains information about CNAMEs (alternate domain names), if any, for this distribution.DistributionSummary.BuilderaliasICPRecordals(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.BuilderaliasICPRecordals(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.BuilderaliasICPRecordals(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.BuilderanycastIpListId(String anycastIpListId)ID of the Anycast static IP list that is associated with the distribution.DistributionSummary.Builderarn(String arn)The ARN (Amazon Resource Name) for the distribution.default DistributionSummary.BuildercacheBehaviors(Consumer<CacheBehaviors.Builder> cacheBehaviors)A complex type that contains zero or moreCacheBehaviorelements.DistributionSummary.BuildercacheBehaviors(CacheBehaviors cacheBehaviors)A complex type that contains zero or moreCacheBehaviorelements.DistributionSummary.Buildercomment(String comment)The comment originally specified when this distribution was created.DistributionSummary.BuilderconnectionMode(String connectionMode)The connection mode to filter distributions by.DistributionSummary.BuilderconnectionMode(ConnectionMode connectionMode)The connection mode to filter distributions by.default DistributionSummary.BuildercustomErrorResponses(Consumer<CustomErrorResponses.Builder> customErrorResponses)A complex type that contains zero or moreCustomErrorResponseselements.DistributionSummary.BuildercustomErrorResponses(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.DistributionSummary.BuilderdefaultCacheBehavior(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.DistributionSummary.BuilderdomainName(String domainName)The domain name that corresponds to the distribution, for example,d111111abcdef8.cloudfront.net.DistributionSummary.Builderenabled(Boolean enabled)Whether the distribution is enabled to accept user requests for content.DistributionSummary.BuildereTag(String eTag)The current version of the distribution.DistributionSummary.BuilderhttpVersion(String httpVersion)Specify the maximum HTTP version that you want viewers to use to communicate with CloudFront.DistributionSummary.BuilderhttpVersion(HttpVersion httpVersion)Specify the maximum HTTP version that you want viewers to use to communicate with CloudFront.DistributionSummary.Builderid(String id)The identifier for the distribution.DistributionSummary.BuilderisIPV6Enabled(Boolean isIPV6Enabled)Whether CloudFront responds to IPv6 DNS requests with an IPv6 address for your distribution.DistributionSummary.BuilderlastModifiedTime(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.DistributionSummary.BuilderoriginGroups(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.DistributionSummary.Builderorigins(Origins origins)A complex type that contains information about origins for this distribution.DistributionSummary.BuilderpriceClass(String priceClass)A complex type that contains information about price class for this streaming distribution.DistributionSummary.BuilderpriceClass(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.DistributionSummary.Builderrestrictions(Restrictions restrictions)A complex type that identifies ways in which you want to restrict distribution of your content.DistributionSummary.Builderstaging(Boolean staging)A Boolean that indicates whether this is a staging distribution.DistributionSummary.Builderstatus(String status)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.DistributionSummary.BuilderviewerCertificate(ViewerCertificate viewerCertificate)A complex type that determines the distribution's SSL/TLS configuration for communicating with viewers.DistributionSummary.BuilderwebACLId(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, sdkFieldNameToField, 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, 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.
-
eTag
DistributionSummary.Builder eTag(String eTag)
The current version of the distribution.
- Parameters:
eTag- The current version of the distribution.- 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.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:
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.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:
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.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:
originGroups(OriginGroups)
-
defaultCacheBehavior
DistributionSummary.Builder defaultCacheBehavior(DefaultCacheBehavior 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:
defaultCacheBehavior(DefaultCacheBehavior)
-
cacheBehaviors
DistributionSummary.Builder cacheBehaviors(CacheBehaviors 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
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 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:
cacheBehaviors(CacheBehaviors)
-
customErrorResponses
DistributionSummary.Builder customErrorResponses(CustomErrorResponses 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:
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.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:
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.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:
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/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,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/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,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.Builderavoiding the need to create one manually viaAliasICPRecordal.builder().When the
Consumercompletes,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)
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.
-
connectionMode
DistributionSummary.Builder connectionMode(String connectionMode)
The connection mode to filter distributions by.
- Parameters:
connectionMode- The connection mode to filter distributions by.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ConnectionMode,ConnectionMode
-
connectionMode
DistributionSummary.Builder connectionMode(ConnectionMode connectionMode)
The connection mode to filter distributions by.
- Parameters:
connectionMode- The connection mode to filter distributions by.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ConnectionMode,ConnectionMode
-
anycastIpListId
DistributionSummary.Builder anycastIpListId(String anycastIpListId)
ID of the Anycast static IP list that is associated with the distribution.
- Parameters:
anycastIpListId- ID of the Anycast static IP list that is associated with the distribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-