Interface Restrictions.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Restrictions.Builder,Restrictions>,SdkBuilder<Restrictions.Builder,Restrictions>,SdkPojo
- Enclosing class:
- Restrictions
@Mutable @NotThreadSafe 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.BuildergeoRestriction(Consumer<GeoRestriction.Builder> geoRestriction)A complex type that controls the countries in which your content is distributed.Restrictions.BuildergeoRestriction(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, sdkFieldNameToField, 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
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
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 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:
geoRestriction(GeoRestriction)
-
-