Class GeoFilter
java.lang.Object
com.microsoft.azure.management.cdn.GeoFilter
Rules defining user's geo access within a CDN endpoint.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionaction()Get action of the geo filter, i.e.Get two letter country codes defining user country access in a geo filter, e.g.Get relative path applicable to geo filter.withAction(GeoFilterActions action) Set action of the geo filter, i.e.withCountryCodes(List<String> countryCodes) Set two letter country codes defining user country access in a geo filter, e.g.withRelativePath(String relativePath) Set relative path applicable to geo filter.
- 
Constructor Details- 
GeoFilterpublic GeoFilter()
 
- 
- 
Method Details- 
relativePathGet relative path applicable to geo filter. (e.g. '/mypictures', '/mypicture/kitty.jpg', and etc.).- Returns:
- the relativePath value
 
- 
withRelativePathSet relative path applicable to geo filter. (e.g. '/mypictures', '/mypicture/kitty.jpg', and etc.).- Parameters:
- relativePath- the relativePath value to set
- Returns:
- the GeoFilter object itself.
 
- 
actionGet action of the geo filter, i.e. allow or block access. Possible values include: 'Block', 'Allow'.- Returns:
- the action value
 
- 
withActionSet action of the geo filter, i.e. allow or block access. Possible values include: 'Block', 'Allow'.- Parameters:
- action- the action value to set
- Returns:
- the GeoFilter object itself.
 
- 
countryCodesGet two letter country codes defining user country access in a geo filter, e.g. AU, MX, US.- Returns:
- the countryCodes value
 
- 
withCountryCodesSet two letter country codes defining user country access in a geo filter, e.g. AU, MX, US.- Parameters:
- countryCodes- the countryCodes value to set
- Returns:
- the GeoFilter object itself.
 
 
-