Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License. See License.txt in the project root for
license information.
Code generated by Microsoft (R) AutoRest Code Generator.
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.cdn;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
Rules defining user's geo access within a CDN endpoint.
/**
* Rules defining user's geo access within a CDN endpoint.
*/
public class GeoFilter {
Relative path applicable to geo filter. (e.g. '/mypictures',
'/mypicture/kitty.jpg', and etc.).
/**
* Relative path applicable to geo filter. (e.g. '/mypictures',
* '/mypicture/kitty.jpg', and etc.).
*/
@JsonProperty(value = "relativePath", required = true)
private String relativePath;
Action of the geo filter, i.e. allow or block access. Possible values
include: 'Block', 'Allow'.
/**
* Action of the geo filter, i.e. allow or block access. Possible values
* include: 'Block', 'Allow'.
*/
@JsonProperty(value = "action", required = true)
private GeoFilterActions action;
Two letter country codes defining user country access in a geo filter,
e.g. AU, MX, US.
/**
* Two letter country codes defining user country access in a geo filter,
* e.g. AU, MX, US.
*/
@JsonProperty(value = "countryCodes", required = true)
private List<String> countryCodes;
Get relative path applicable to geo filter. (e.g. '/mypictures', '/mypicture/kitty.jpg', and etc.).
Returns: the relativePath value
/**
* Get relative path applicable to geo filter. (e.g. '/mypictures', '/mypicture/kitty.jpg', and etc.).
*
* @return the relativePath value
*/
public String relativePath() {
return this.relativePath;
}
Set relative path applicable to geo filter. (e.g. '/mypictures', '/mypicture/kitty.jpg', and etc.).
Params: - relativePath – the relativePath value to set
Returns: the GeoFilter object itself.
/**
* Set relative path applicable to geo filter. (e.g. '/mypictures', '/mypicture/kitty.jpg', and etc.).
*
* @param relativePath the relativePath value to set
* @return the GeoFilter object itself.
*/
public GeoFilter withRelativePath(String relativePath) {
this.relativePath = relativePath;
return this;
}
Get action of the geo filter, i.e. allow or block access. Possible values include: 'Block', 'Allow'.
Returns: the action value
/**
* Get action of the geo filter, i.e. allow or block access. Possible values include: 'Block', 'Allow'.
*
* @return the action value
*/
public GeoFilterActions action() {
return this.action;
}
Set action of the geo filter, i.e. allow or block access. Possible values include: 'Block', 'Allow'.
Params: - action – the action value to set
Returns: the GeoFilter object itself.
/**
* Set action of the geo filter, i.e. allow or block access. Possible values include: 'Block', 'Allow'.
*
* @param action the action value to set
* @return the GeoFilter object itself.
*/
public GeoFilter withAction(GeoFilterActions action) {
this.action = action;
return this;
}
Get two letter country codes defining user country access in a geo filter, e.g. AU, MX, US.
Returns: the countryCodes value
/**
* Get two letter country codes defining user country access in a geo filter, e.g. AU, MX, US.
*
* @return the countryCodes value
*/
public List<String> countryCodes() {
return this.countryCodes;
}
Set two letter country codes defining user country access in a geo filter, e.g. AU, MX, US.
Params: - countryCodes – the countryCodes value to set
Returns: the GeoFilter object itself.
/**
* Set two letter country codes defining user country access in a geo filter, e.g. AU, MX, US.
*
* @param countryCodes the countryCodes value to set
* @return the GeoFilter object itself.
*/
public GeoFilter withCountryCodes(List<String> countryCodes) {
this.countryCodes = countryCodes;
return this;
}
}