Class CfnDistributionTenantPropsMixin.GeoRestrictionCustomizationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.cloudfront.CfnDistributionTenantPropsMixin.GeoRestrictionCustomizationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDistributionTenantPropsMixin.GeoRestrictionCustomizationProperty>
- Enclosing interface:
CfnDistributionTenantPropsMixin.GeoRestrictionCustomizationProperty
@Stability(Stable)
public static final class CfnDistributionTenantPropsMixin.GeoRestrictionCustomizationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDistributionTenantPropsMixin.GeoRestrictionCustomizationProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.restrictionType(String restrictionType)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
locations
@Stability(Stable) public CfnDistributionTenantPropsMixin.GeoRestrictionCustomizationProperty.Builder locations(List<String> locations) Sets the value ofCfnDistributionTenantPropsMixin.GeoRestrictionCustomizationProperty.getLocations()- Parameters:
locations- The locations for geographic restrictions.- Returns:
this
-
restrictionType
@Stability(Stable) public CfnDistributionTenantPropsMixin.GeoRestrictionCustomizationProperty.Builder restrictionType(String restrictionType) Sets the value ofCfnDistributionTenantPropsMixin.GeoRestrictionCustomizationProperty.getRestrictionType()- Parameters:
restrictionType- The method that you want to use to restrict distribution of your content by country:.none: No geographic restriction is enabled, meaning access to content is not restricted by client geo location.blacklist: TheLocationelements specify the countries in which you don't want CloudFront to distribute your content.whitelist: TheLocationelements specify the countries in which you want CloudFront to distribute your content.
- Returns:
this
-
build
@Stability(Stable) public CfnDistributionTenantPropsMixin.GeoRestrictionCustomizationProperty build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDistributionTenantPropsMixin.GeoRestrictionCustomizationProperty>- Returns:
- a new instance of
CfnDistributionTenantPropsMixin.GeoRestrictionCustomizationProperty - Throws:
NullPointerException- if any required attribute was not provided
-