Class CfnDistribution.RestrictionsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cloudfront.CfnDistribution.RestrictionsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDistribution.RestrictionsProperty>
- Enclosing interface:
CfnDistribution.RestrictionsProperty
@Stability(Stable)
public static final class CfnDistribution.RestrictionsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDistribution.RestrictionsProperty>
A builder for
CfnDistribution.RestrictionsProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.geoRestriction
(IResolvable geoRestriction) Sets the value ofCfnDistribution.RestrictionsProperty.getGeoRestriction()
geoRestriction
(CfnDistribution.GeoRestrictionProperty geoRestriction) Sets the value ofCfnDistribution.RestrictionsProperty.getGeoRestriction()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
geoRestriction
@Stability(Stable) public CfnDistribution.RestrictionsProperty.Builder geoRestriction(IResolvable geoRestriction) Sets the value ofCfnDistribution.RestrictionsProperty.getGeoRestriction()
- Parameters:
geoRestriction
- A complex type that controls the countries in which your content is distributed. This parameter is required. CloudFront determines the location of your users usingMaxMind
GeoIP databases. To disable geo restriction, remove the Restrictions property from your stack template.- Returns:
this
-
geoRestriction
@Stability(Stable) public CfnDistribution.RestrictionsProperty.Builder geoRestriction(CfnDistribution.GeoRestrictionProperty geoRestriction) Sets the value ofCfnDistribution.RestrictionsProperty.getGeoRestriction()
- Parameters:
geoRestriction
- A complex type that controls the countries in which your content is distributed. This parameter is required. CloudFront determines the location of your users usingMaxMind
GeoIP databases. To disable geo restriction, remove the Restrictions property from your stack template.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDistribution.RestrictionsProperty>
- Returns:
- a new instance of
CfnDistribution.RestrictionsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-