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.network;
import com.fasterxml.jackson.annotation.JsonProperty;
Define match variables.
/**
* Define match variables.
*/
public class MatchVariable {
Match Variable. Possible values include: 'RemoteAddr', 'RequestMethod',
'QueryString', 'PostArgs', 'RequestUri', 'RequestHeaders',
'RequestBody', 'RequestCookies'.
/**
* Match Variable. Possible values include: 'RemoteAddr', 'RequestMethod',
* 'QueryString', 'PostArgs', 'RequestUri', 'RequestHeaders',
* 'RequestBody', 'RequestCookies'.
*/
@JsonProperty(value = "variableName", required = true)
private WebApplicationFirewallMatchVariable variableName;
The selector of match variable.
/**
* The selector of match variable.
*/
@JsonProperty(value = "selector")
private String selector;
Get match Variable. Possible values include: 'RemoteAddr', 'RequestMethod', 'QueryString', 'PostArgs', 'RequestUri', 'RequestHeaders', 'RequestBody', 'RequestCookies'.
Returns: the variableName value
/**
* Get match Variable. Possible values include: 'RemoteAddr', 'RequestMethod', 'QueryString', 'PostArgs', 'RequestUri', 'RequestHeaders', 'RequestBody', 'RequestCookies'.
*
* @return the variableName value
*/
public WebApplicationFirewallMatchVariable variableName() {
return this.variableName;
}
Set match Variable. Possible values include: 'RemoteAddr', 'RequestMethod', 'QueryString', 'PostArgs', 'RequestUri', 'RequestHeaders', 'RequestBody', 'RequestCookies'.
Params: - variableName – the variableName value to set
Returns: the MatchVariable object itself.
/**
* Set match Variable. Possible values include: 'RemoteAddr', 'RequestMethod', 'QueryString', 'PostArgs', 'RequestUri', 'RequestHeaders', 'RequestBody', 'RequestCookies'.
*
* @param variableName the variableName value to set
* @return the MatchVariable object itself.
*/
public MatchVariable withVariableName(WebApplicationFirewallMatchVariable variableName) {
this.variableName = variableName;
return this;
}
Get the selector of match variable.
Returns: the selector value
/**
* Get the selector of match variable.
*
* @return the selector value
*/
public String selector() {
return this.selector;
}
Set the selector of match variable.
Params: - selector – the selector value to set
Returns: the MatchVariable object itself.
/**
* Set the selector of match variable.
*
* @param selector the selector value to set
* @return the MatchVariable object itself.
*/
public MatchVariable withSelector(String selector) {
this.selector = selector;
return this;
}
}