Interface GeoRestrictionCustomization.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<GeoRestrictionCustomization.Builder,GeoRestrictionCustomization>,SdkBuilder<GeoRestrictionCustomization.Builder,GeoRestrictionCustomization>,SdkPojo
- Enclosing class:
- GeoRestrictionCustomization
@Mutable @NotThreadSafe public static interface GeoRestrictionCustomization.Builder extends SdkPojo, CopyableBuilder<GeoRestrictionCustomization.Builder,GeoRestrictionCustomization>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GeoRestrictionCustomization.Builderlocations(String... locations)The locations for geographic restrictions.GeoRestrictionCustomization.Builderlocations(Collection<String> locations)The locations for geographic restrictions.GeoRestrictionCustomization.BuilderrestrictionType(String restrictionType)The method that you want to use to restrict distribution of your content by country:GeoRestrictionCustomization.BuilderrestrictionType(GeoRestrictionType restrictionType)The method that you want to use to restrict distribution of your content by country:-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
restrictionType
GeoRestrictionCustomization.Builder restrictionType(String 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.
- 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:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
GeoRestrictionType,GeoRestrictionType
-
-
restrictionType
GeoRestrictionCustomization.Builder restrictionType(GeoRestrictionType 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.
- 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:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
GeoRestrictionType,GeoRestrictionType
-
-
locations
GeoRestrictionCustomization.Builder locations(Collection<String> locations)
The locations for geographic restrictions.
- Parameters:
locations- The locations for geographic restrictions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
locations
GeoRestrictionCustomization.Builder locations(String... locations)
The locations for geographic restrictions.
- Parameters:
locations- The locations for geographic restrictions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-