Class DistributionAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.cloudfront.DistributionAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DistributionAttributes>
- Enclosing interface:
DistributionAttributes
@Stability(Stable)
public static final class DistributionAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<DistributionAttributes>
A builder for
DistributionAttributes
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.distributionId
(String distributionId) Sets the value ofDistributionAttributes.getDistributionId()
domainName
(String domainName) Sets the value ofDistributionAttributes.getDomainName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
distributionId
Sets the value ofDistributionAttributes.getDistributionId()
- Parameters:
distributionId
- The distribution ID for this distribution. This parameter is required.- Returns:
this
-
domainName
Sets the value ofDistributionAttributes.getDomainName()
- Parameters:
domainName
- The generated domain name of the Distribution, such as d111111abcdef8.cloudfront.net. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<DistributionAttributes>
- Returns:
- a new instance of
DistributionAttributes
- Throws:
NullPointerException
- if any required attribute was not provided
-