Class CfnDistribution.LegacyS3OriginProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cloudfront.CfnDistribution.LegacyS3OriginProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDistribution.LegacyS3OriginProperty>
- Enclosing interface:
CfnDistribution.LegacyS3OriginProperty
@Stability(Stable)
public static final class CfnDistribution.LegacyS3OriginProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDistribution.LegacyS3OriginProperty>
A builder for
CfnDistribution.LegacyS3OriginProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnDistribution.LegacyS3OriginProperty.getDnsName()
originAccessIdentity
(String originAccessIdentity) Sets the value ofCfnDistribution.LegacyS3OriginProperty.getOriginAccessIdentity()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dnsName
Sets the value ofCfnDistribution.LegacyS3OriginProperty.getDnsName()
- Parameters:
dnsName
- The domain name assigned to your CloudFront distribution. This parameter is required.- Returns:
this
-
originAccessIdentity
@Stability(Stable) public CfnDistribution.LegacyS3OriginProperty.Builder originAccessIdentity(String originAccessIdentity) Sets the value ofCfnDistribution.LegacyS3OriginProperty.getOriginAccessIdentity()
- Parameters:
originAccessIdentity
- The CloudFront origin access identity to associate with the distribution. Use an origin access identity to configure the distribution so that end users can only access objects in an Amazon S3 through CloudFront .This property is legacy. We recommend that you use OriginAccessControl instead.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDistribution.LegacyS3OriginProperty>
- Returns:
- a new instance of
CfnDistribution.LegacyS3OriginProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-