GeoFilter Class
- java.
lang. Object - com.
azure. resourcemanager. cdn. models. GeoFilter
- com.
Implements
public final class GeoFilter
implements JsonSerializable<GeoFilter>
Rules defining user's geo access within a CDN endpoint.
Constructor Summary
Constructor | Description |
---|---|
GeoFilter() |
Creates an instance of Geo |
Method Summary
Modifier and Type | Method and Description |
---|---|
Geo |
action()
Get the action property: Action of the geo filter, i. |
List<String> |
countryCodes()
Get the country |
static
Geo |
fromJson(JsonReader jsonReader)
Reads an instance of Geo |
String |
relativePath()
Get the relative |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Geo |
withAction(GeoFilterActions action)
Set the action property: Action of the geo filter, i. |
Geo |
withCountryCodes(List<String> countryCodes)
Set the country |
Geo |
withRelativePath(String relativePath)
Set the relative |
Methods inherited from java.lang.Object
Constructor Details
GeoFilter
public GeoFilter()
Creates an instance of GeoFilter class.
Method Details
action
public GeoFilterActions action()
Get the action property: Action of the geo filter, i.e. allow or block access.
Returns:
countryCodes
public List
Get the countryCodes property: Two letter country or region codes defining user country or region access in a geo filter, e.g. AU, MX, US.
Returns:
fromJson
public static GeoFilter fromJson(JsonReader jsonReader)
Reads an instance of GeoFilter from the JsonReader.
Parameters:
Returns:
Throws:
relativePath
public String relativePath()
Get the relativePath property: Relative path applicable to geo filter. (e.g. '/mypictures', '/mypicture/kitty.jpg', and etc.).
Returns:
toJson
validate
public void validate()
Validates the instance.
withAction
public GeoFilter withAction(GeoFilterActions action)
Set the action property: Action of the geo filter, i.e. allow or block access.
Parameters:
Returns:
withCountryCodes
public GeoFilter withCountryCodes(List
Set the countryCodes property: Two letter country or region codes defining user country or region access in a geo filter, e.g. AU, MX, US.
Parameters:
Returns:
withRelativePath
public GeoFilter withRelativePath(String relativePath)
Set the relativePath property: Relative path applicable to geo filter. (e.g. '/mypictures', '/mypicture/kitty.jpg', and etc.).
Parameters:
Returns: