com.azure.resourcemanager.network.models.ApplicationGatewayFirewallRuleSet Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-network Show documentation
Show all versions of azure-resourcemanager-network Show documentation
This package contains Microsoft Azure Network Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.network.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.management.Resource;
import com.azure.resourcemanager.network.fluent.models.ApplicationGatewayFirewallRuleSetPropertiesFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import java.util.Map;
/**
* A web application firewall rule set.
*/
@Fluent
public final class ApplicationGatewayFirewallRuleSet extends Resource {
/*
* Properties of the application gateway firewall rule set.
*/
@JsonProperty(value = "properties")
private ApplicationGatewayFirewallRuleSetPropertiesFormat innerProperties;
/*
* Resource ID.
*/
@JsonProperty(value = "id")
private String id;
/**
* Creates an instance of ApplicationGatewayFirewallRuleSet class.
*/
public ApplicationGatewayFirewallRuleSet() {
}
/**
* Get the innerProperties property: Properties of the application gateway firewall rule set.
*
* @return the innerProperties value.
*/
private ApplicationGatewayFirewallRuleSetPropertiesFormat innerProperties() {
return this.innerProperties;
}
/**
* Get the id property: Resource ID.
*
* @return the id value.
*/
public String id() {
return this.id;
}
/**
* Set the id property: Resource ID.
*
* @param id the id value to set.
* @return the ApplicationGatewayFirewallRuleSet object itself.
*/
public ApplicationGatewayFirewallRuleSet withId(String id) {
this.id = id;
return this;
}
/**
* {@inheritDoc}
*/
@Override
public ApplicationGatewayFirewallRuleSet withLocation(String location) {
super.withLocation(location);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public ApplicationGatewayFirewallRuleSet withTags(Map tags) {
super.withTags(tags);
return this;
}
/**
* Get the provisioningState property: The provisioning state of the web application firewall rule set.
*
* @return the provisioningState value.
*/
public ProvisioningState provisioningState() {
return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
}
/**
* Get the ruleSetType property: The type of the web application firewall rule set.
*
* @return the ruleSetType value.
*/
public String ruleSetType() {
return this.innerProperties() == null ? null : this.innerProperties().ruleSetType();
}
/**
* Set the ruleSetType property: The type of the web application firewall rule set.
*
* @param ruleSetType the ruleSetType value to set.
* @return the ApplicationGatewayFirewallRuleSet object itself.
*/
public ApplicationGatewayFirewallRuleSet withRuleSetType(String ruleSetType) {
if (this.innerProperties() == null) {
this.innerProperties = new ApplicationGatewayFirewallRuleSetPropertiesFormat();
}
this.innerProperties().withRuleSetType(ruleSetType);
return this;
}
/**
* Get the ruleSetVersion property: The version of the web application firewall rule set type.
*
* @return the ruleSetVersion value.
*/
public String ruleSetVersion() {
return this.innerProperties() == null ? null : this.innerProperties().ruleSetVersion();
}
/**
* Set the ruleSetVersion property: The version of the web application firewall rule set type.
*
* @param ruleSetVersion the ruleSetVersion value to set.
* @return the ApplicationGatewayFirewallRuleSet object itself.
*/
public ApplicationGatewayFirewallRuleSet withRuleSetVersion(String ruleSetVersion) {
if (this.innerProperties() == null) {
this.innerProperties = new ApplicationGatewayFirewallRuleSetPropertiesFormat();
}
this.innerProperties().withRuleSetVersion(ruleSetVersion);
return this;
}
/**
* Get the ruleGroups property: The rule groups of the web application firewall rule set.
*
* @return the ruleGroups value.
*/
public List ruleGroups() {
return this.innerProperties() == null ? null : this.innerProperties().ruleGroups();
}
/**
* Set the ruleGroups property: The rule groups of the web application firewall rule set.
*
* @param ruleGroups the ruleGroups value to set.
* @return the ApplicationGatewayFirewallRuleSet object itself.
*/
public ApplicationGatewayFirewallRuleSet withRuleGroups(List ruleGroups) {
if (this.innerProperties() == null) {
this.innerProperties = new ApplicationGatewayFirewallRuleSetPropertiesFormat();
}
this.innerProperties().withRuleGroups(ruleGroups);
return this;
}
/**
* Get the tiers property: Tier of an application gateway that support the rule set.
*
* @return the tiers value.
*/
public List tiers() {
return this.innerProperties() == null ? null : this.innerProperties().tiers();
}
/**
* Set the tiers property: Tier of an application gateway that support the rule set.
*
* @param tiers the tiers value to set.
* @return the ApplicationGatewayFirewallRuleSet object itself.
*/
public ApplicationGatewayFirewallRuleSet withTiers(List tiers) {
if (this.innerProperties() == null) {
this.innerProperties = new ApplicationGatewayFirewallRuleSetPropertiesFormat();
}
this.innerProperties().withTiers(tiers);
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (innerProperties() != null) {
innerProperties().validate();
}
}
}