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