GeoRestriction class

A complex type that controls the countries in which your content is distributed. CloudFront determines the location of your users using MaxMind GeoIP databases.

Constructors

GeoRestriction({required int quantity, required GeoRestrictionType restrictionType, List<String>? items})
GeoRestriction.fromXml(XmlElement elem)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
items List<String>?
A complex type that contains a Location element for each country in which you want CloudFront either to distribute your content (whitelist) or not distribute your content (blacklist).
final
quantity int
When geo restriction is enabled, this is the number of countries in your whitelist or blacklist. Otherwise, when it is not enabled, Quantity is 0, and you can omit Items.
final
restrictionType GeoRestrictionType
The method that you want to use to restrict distribution of your content by country:
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
toXml(String elemName, {List<XmlAttribute>? attributes}) → XmlElement

Operators

operator ==(Object other) bool
The equality operator.
inherited