Class CfnDistributionPropsMixin.LegacyS3OriginProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.cloudfront.CfnDistributionPropsMixin.LegacyS3OriginProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDistributionPropsMixin.LegacyS3OriginProperty>
- Enclosing interface:
CfnDistributionPropsMixin.LegacyS3OriginProperty
@Stability(Stable)
public static final class CfnDistributionPropsMixin.LegacyS3OriginProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDistributionPropsMixin.LegacyS3OriginProperty>
A builder for
CfnDistributionPropsMixin.LegacyS3OriginProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnDistributionPropsMixin.LegacyS3OriginProperty.getDnsName()originAccessIdentity(String originAccessIdentity)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dnsName
@Stability(Stable) public CfnDistributionPropsMixin.LegacyS3OriginProperty.Builder dnsName(String dnsName) Sets the value ofCfnDistributionPropsMixin.LegacyS3OriginProperty.getDnsName()- Parameters:
dnsName- The domain name assigned to your CloudFront distribution.- Returns:
this
-
originAccessIdentity
@Stability(Stable) public CfnDistributionPropsMixin.LegacyS3OriginProperty.Builder originAccessIdentity(String originAccessIdentity) - 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:
buildin interfacesoftware.amazon.jsii.Builder<CfnDistributionPropsMixin.LegacyS3OriginProperty>- Returns:
- a new instance of
CfnDistributionPropsMixin.LegacyS3OriginProperty - Throws:
NullPointerException- if any required attribute was not provided
-