Interface Distribution.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Distribution.Builder,Distribution>,SdkBuilder<Distribution.Builder,Distribution>,SdkPojo
- Enclosing class:
- Distribution
@Mutable @NotThreadSafe public static interface Distribution.Builder extends SdkPojo, CopyableBuilder<Distribution.Builder,Distribution>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Distribution.BuilderactiveTrustedKeyGroups(Consumer<ActiveTrustedKeyGroups.Builder> activeTrustedKeyGroups)This field contains a list of key groups and the public keys in each key group that CloudFront can use to verify the signatures of signed URLs or signed cookies.Distribution.BuilderactiveTrustedKeyGroups(ActiveTrustedKeyGroups activeTrustedKeyGroups)This field contains a list of key groups and the public keys in each key group that CloudFront can use to verify the signatures of signed URLs or signed cookies.default Distribution.BuilderactiveTrustedSigners(Consumer<ActiveTrustedSigners.Builder> activeTrustedSigners)Distribution.BuilderactiveTrustedSigners(ActiveTrustedSigners activeTrustedSigners)Distribution.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.Distribution.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.Distribution.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.Distribution.Builderarn(String arn)The distribution's Amazon Resource Name (ARN).default Distribution.BuilderdistributionConfig(Consumer<DistributionConfig.Builder> distributionConfig)The distribution's configuration.Distribution.BuilderdistributionConfig(DistributionConfig distributionConfig)The distribution's configuration.Distribution.BuilderdomainName(String domainName)The distribution's CloudFront domain name.Distribution.Builderid(String id)The distribution's identifier.Distribution.BuilderinProgressInvalidationBatches(Integer inProgressInvalidationBatches)The number of invalidation batches currently in progress.Distribution.BuilderlastModifiedTime(Instant lastModifiedTime)The date and time when the distribution was last modified.Distribution.Builderstatus(String status)The distribution's status.-
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
Distribution.Builder id(String id)
The distribution's identifier. For example:
E1U5RQF7T870K0.- Parameters:
id- The distribution's identifier. For example:E1U5RQF7T870K0.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
arn
Distribution.Builder arn(String arn)
The distribution's Amazon Resource Name (ARN).
- Parameters:
arn- The distribution's Amazon Resource Name (ARN).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
Distribution.Builder status(String status)
The distribution's status. When the status is
Deployed, the distribution's information is fully propagated to all CloudFront edge locations.- Parameters:
status- The distribution's status. When the status isDeployed, the distribution's information is fully propagated to all CloudFront edge locations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastModifiedTime
Distribution.Builder lastModifiedTime(Instant lastModifiedTime)
The date and time when the distribution was last modified.
- Parameters:
lastModifiedTime- The date and time when the distribution was last modified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inProgressInvalidationBatches
Distribution.Builder inProgressInvalidationBatches(Integer inProgressInvalidationBatches)
The number of invalidation batches currently in progress.
- Parameters:
inProgressInvalidationBatches- The number of invalidation batches currently in progress.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
domainName
Distribution.Builder domainName(String domainName)
The distribution's CloudFront domain name. For example:
d111111abcdef8.cloudfront.net.- Parameters:
domainName- The distribution's CloudFront domain name. For example:d111111abcdef8.cloudfront.net.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
activeTrustedSigners
Distribution.Builder activeTrustedSigners(ActiveTrustedSigners activeTrustedSigners)
We recommend using
TrustedKeyGroupsinstead ofTrustedSigners.This field contains a list of Amazon Web Services account IDs and the active CloudFront key pairs in each account that CloudFront can use to verify the signatures of signed URLs or signed cookies.
- Parameters:
activeTrustedSigners-We recommend using
TrustedKeyGroupsinstead ofTrustedSigners.This field contains a list of Amazon Web Services account IDs and the active CloudFront key pairs in each account that CloudFront can use to verify the signatures of signed URLs or signed cookies.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
activeTrustedSigners
default Distribution.Builder activeTrustedSigners(Consumer<ActiveTrustedSigners.Builder> activeTrustedSigners)
We recommend using
TrustedKeyGroupsinstead ofTrustedSigners.This field contains a list of Amazon Web Services account IDs and the active CloudFront key pairs in each account that CloudFront can use to verify the signatures of signed URLs or signed cookies.
This is a convenience method that creates an instance of theActiveTrustedSigners.Builderavoiding the need to create one manually viaActiveTrustedSigners.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toactiveTrustedSigners(ActiveTrustedSigners).- Parameters:
activeTrustedSigners- a consumer that will call methods onActiveTrustedSigners.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
activeTrustedSigners(ActiveTrustedSigners)
-
activeTrustedKeyGroups
Distribution.Builder activeTrustedKeyGroups(ActiveTrustedKeyGroups activeTrustedKeyGroups)
This field contains a list of key groups and the public keys in each key group that CloudFront can use to verify the signatures of signed URLs or signed cookies.
- Parameters:
activeTrustedKeyGroups- This field contains a list of key groups and the public keys in each key group that CloudFront can use to verify the signatures of signed URLs or signed cookies.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
activeTrustedKeyGroups
default Distribution.Builder activeTrustedKeyGroups(Consumer<ActiveTrustedKeyGroups.Builder> activeTrustedKeyGroups)
This field contains a list of key groups and the public keys in each key group that CloudFront can use to verify the signatures of signed URLs or signed cookies.
This is a convenience method that creates an instance of theActiveTrustedKeyGroups.Builderavoiding the need to create one manually viaActiveTrustedKeyGroups.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toactiveTrustedKeyGroups(ActiveTrustedKeyGroups).- Parameters:
activeTrustedKeyGroups- a consumer that will call methods onActiveTrustedKeyGroups.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
activeTrustedKeyGroups(ActiveTrustedKeyGroups)
-
distributionConfig
Distribution.Builder distributionConfig(DistributionConfig distributionConfig)
The distribution's configuration.
- Parameters:
distributionConfig- The distribution's configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
distributionConfig
default Distribution.Builder distributionConfig(Consumer<DistributionConfig.Builder> distributionConfig)
The distribution's configuration.
This is a convenience method that creates an instance of theDistributionConfig.Builderavoiding the need to create one manually viaDistributionConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todistributionConfig(DistributionConfig).- Parameters:
distributionConfig- a consumer that will call methods onDistributionConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
distributionConfig(DistributionConfig)
-
aliasICPRecordals
Distribution.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
Distribution.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
Distribution.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)
-
-