GeoFilter Class
- java.
lang. Object - com.
microsoft. azure. management. cdn. GeoFilter
- com.
public class GeoFilter
Rules defining user's geo access within a CDN endpoint.
Constructor Summary
Constructor | Description | |
---|---|---|
GeoFilter() |
Method Summary
Modifier and Type | Method and Description |
---|---|
Geo |
action()
Get action of the geo filter, i. |
java.util.List<java.lang.String> |
countryCodes()
Get two letter country codes defining user country access in a geo filter, e. |
java.lang.String |
relativePath()
Get relative path applicable to geo filter. |
Geo |
withAction(GeoFilterActions action)
Set action of the geo filter, i. |
Geo |
withCountryCodes(List<String> countryCodes)
Set two letter country codes defining user country access in a geo filter, e. |
Geo |
withRelativePath(String relativePath)
Set relative path applicable to geo filter. |
Methods inherited from java.lang.Object
Constructor Details
GeoFilter
public GeoFilter()
Method Details
action
public GeoFilterActions action()
Get action of the geo filter, i.e. allow or block access. Possible values include: 'Block', 'Allow'.
Returns:
countryCodes
public List
Get two letter country codes defining user country access in a geo filter, e.g. AU, MX, US.
Returns:
relativePath
public String relativePath()
Get relative path applicable to geo filter. (e.g. '/mypictures', '/mypicture/kitty.jpg', and etc.).
Returns:
withAction
public GeoFilter withAction(GeoFilterActions action)
Set action of the geo filter, i.e. allow or block access. Possible values include: 'Block', 'Allow'.
Parameters:
Returns:
withCountryCodes
public GeoFilter withCountryCodes(List
Set two letter country codes defining user country access in a geo filter, e.g. AU, MX, US.
Parameters:
Returns:
withRelativePath
public GeoFilter withRelativePath(String relativePath)
Set relative path applicable to geo filter. (e.g. '/mypictures', '/mypicture/kitty.jpg', and etc.).
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Binnenkort beschikbaar: In de loop van 2024 zullen we GitHub-problemen geleidelijk uitfaseren als het feedbackmechanisme voor inhoud en deze vervangen door een nieuw feedbacksysteem. Zie voor meer informatie:Feedback verzenden en weergeven voor