Class CloudFrontWebDistributionAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.cloudfront.CloudFrontWebDistributionAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CloudFrontWebDistributionAttributes>
- Enclosing interface:
- CloudFrontWebDistributionAttributes
@Stability(Stable)
public static final class CloudFrontWebDistributionAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<CloudFrontWebDistributionAttributes>
A builder for
CloudFrontWebDistributionAttributes
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.distributionId
(String distributionId) Sets the value ofCloudFrontWebDistributionAttributes.getDistributionId()
domainName
(String domainName) Sets the value ofCloudFrontWebDistributionAttributes.getDomainName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
distributionId
@Stability(Stable) public CloudFrontWebDistributionAttributes.Builder distributionId(String distributionId) Sets the value ofCloudFrontWebDistributionAttributes.getDistributionId()
- Parameters:
distributionId
- The distribution ID for this distribution. This parameter is required.- Returns:
this
-
domainName
Sets the value ofCloudFrontWebDistributionAttributes.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<CloudFrontWebDistributionAttributes>
- Returns:
- a new instance of
CloudFrontWebDistributionAttributes
- Throws:
NullPointerException
- if any required attribute was not provided
-