Interface Restrictions.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Restrictions.Builder,,Restrictions> SdkBuilder<Restrictions.Builder,,Restrictions> SdkPojo
- Enclosing class:
Restrictions
public static interface Restrictions.Builder
extends SdkPojo, CopyableBuilder<Restrictions.Builder,Restrictions>
-
Method Summary
Modifier and TypeMethodDescriptiondefault Restrictions.BuildergeoRestriction(Consumer<GeoRestriction.Builder> geoRestriction) A complex type that controls the countries in which your content is distributed.geoRestriction(GeoRestriction geoRestriction) A complex type that controls the countries in which your content is distributed.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
geoRestriction
A complex type that controls the countries in which your content is distributed. CloudFront determines the location of your users using
MaxMindGeoIP databases.- Parameters:
geoRestriction- A complex type that controls the countries in which your content is distributed. CloudFront determines the location of your users usingMaxMindGeoIP databases.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
geoRestriction
A complex type that controls the countries in which your content is distributed. CloudFront determines the location of your users using
This is a convenience method that creates an instance of theMaxMindGeoIP databases.GeoRestriction.Builderavoiding the need to create one manually viaGeoRestriction.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed togeoRestriction(GeoRestriction).- Parameters:
geoRestriction- a consumer that will call methods onGeoRestriction.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-