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;
A web application firewall rule.
/**
* A web application firewall rule.
*/
public class ApplicationGatewayFirewallRule {
The identifier of the web application firewall rule.
/**
* The identifier of the web application firewall rule.
*/
@JsonProperty(value = "ruleId", required = true)
private int ruleId;
The description of the web application firewall rule.
/**
* The description of the web application firewall rule.
*/
@JsonProperty(value = "description")
private String description;
Get the identifier of the web application firewall rule.
Returns: the ruleId value
/**
* Get the identifier of the web application firewall rule.
*
* @return the ruleId value
*/
public int ruleId() {
return this.ruleId;
}
Set the identifier of the web application firewall rule.
Params: - ruleId – the ruleId value to set
Returns: the ApplicationGatewayFirewallRule object itself.
/**
* Set the identifier of the web application firewall rule.
*
* @param ruleId the ruleId value to set
* @return the ApplicationGatewayFirewallRule object itself.
*/
public ApplicationGatewayFirewallRule withRuleId(int ruleId) {
this.ruleId = ruleId;
return this;
}
Get the description of the web application firewall rule.
Returns: the description value
/**
* Get the description of the web application firewall rule.
*
* @return the description value
*/
public String description() {
return this.description;
}
Set the description of the web application firewall rule.
Params: - description – the description value to set
Returns: the ApplicationGatewayFirewallRule object itself.
/**
* Set the description of the web application firewall rule.
*
* @param description the description value to set
* @return the ApplicationGatewayFirewallRule object itself.
*/
public ApplicationGatewayFirewallRule withDescription(String description) {
this.description = description;
return this;
}
}