GeoFilter Class

  • java.lang.Object
    • com.microsoft.azure.management.cdn.GeoFilter

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
GeoFilterActions action()

Get action of the geo filter, i.e.

java.util.List<java.lang.String> countryCodes()

Get two letter country codes defining user country access in a geo filter, e.g.

java.lang.String relativePath()

Get relative path applicable to geo filter.

GeoFilter withAction(GeoFilterActions action)

Set action of the geo filter, i.e.

GeoFilter withCountryCodes(List<String> countryCodes)

Set two letter country codes defining user country access in a geo filter, e.g.

GeoFilter withRelativePath(String relativePath)

Set relative path applicable to geo filter.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

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:

the action value

countryCodes

public List countryCodes()

Get two letter country codes defining user country access in a geo filter, e.g. AU, MX, US.

Returns:

the countryCodes value

relativePath

public String relativePath()

Get relative path applicable to geo filter. (e.g. '/mypictures', '/mypicture/kitty.jpg', and etc.).

Returns:

the relativePath value

withAction

public GeoFilter withAction(GeoFilterActions action)

Set 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.

withCountryCodes

public GeoFilter withCountryCodes(List countryCodes)

Set 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.

withRelativePath

public GeoFilter withRelativePath(String relativePath)

Set 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.

Applies to