com.microsoft.azure.management.network.MatchVariable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-mgmt-network Show documentation
Show all versions of azure-mgmt-network Show documentation
This package contains Microsoft Azure Network Management SDK.
/**
* 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.
*/
public class MatchVariable {
/**
* 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.
*/
@JsonProperty(value = "selector")
private String selector;
/**
* 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'.
*
* @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.
*
* @return the selector value
*/
public String selector() {
return this.selector;
}
/**
* 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;
}
}