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
-CfnDistribution.LegacyS3OriginProperty.DNSName
. This parameter is required.- Returns:
this
-
originAccessIdentity
@Stability(Stable) public CfnDistribution.LegacyS3OriginProperty.Builder originAccessIdentity(String originAccessIdentity) Sets the value ofCfnDistribution.LegacyS3OriginProperty.getOriginAccessIdentity()
- Parameters:
originAccessIdentity
-CfnDistribution.LegacyS3OriginProperty.OriginAccessIdentity
.- 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
-