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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Restrictions.Builder
geoRestriction(Consumer<GeoRestriction.Builder> geoRestriction)
A complex type that controls the countries in which your content is distributed.Restrictions.Builder
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
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
geoRestriction
Restrictions.Builder geoRestriction(GeoRestriction geoRestriction)
A complex type that controls the countries in which your content is distributed. CloudFront determines the location of your users using
MaxMind
GeoIP databases.- Parameters:
geoRestriction
- A complex type that controls the countries in which your content is distributed. CloudFront determines the location of your users usingMaxMind
GeoIP databases.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
geoRestriction
default Restrictions.Builder geoRestriction(Consumer<GeoRestriction.Builder> 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 theMaxMind
GeoIP databases.GeoRestriction.Builder
avoiding the need to create one manually viaGeoRestriction.builder()
.When the
Consumer
completes,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:
geoRestriction(GeoRestriction)
-
-