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.implementation;
import com.microsoft.azure.management.network.PolicySettings;
import java.util.List;
import com.microsoft.azure.management.network.WebApplicationFirewallCustomRule;
import com.microsoft.azure.management.network.ProvisioningState;
import com.microsoft.azure.management.network.WebApplicationFirewallPolicyResourceState;
import com.microsoft.azure.management.network.ManagedRulesDefinition;
import com.microsoft.azure.SubResource;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;
import com.microsoft.rest.SkipParentValidation;
import com.microsoft.azure.Resource;
Defines web application firewall policy.
/**
* Defines web application firewall policy.
*/
@JsonFlatten
@SkipParentValidation
public class WebApplicationFirewallPolicyInner extends Resource {
The PolicySettings for policy.
/**
* The PolicySettings for policy.
*/
@JsonProperty(value = "properties.policySettings")
private PolicySettings policySettings;
The custom rules inside the policy.
/**
* The custom rules inside the policy.
*/
@JsonProperty(value = "properties.customRules")
private List<WebApplicationFirewallCustomRule> customRules;
A collection of references to application gateways.
/**
* A collection of references to application gateways.
*/
@JsonProperty(value = "properties.applicationGateways", access = JsonProperty.Access.WRITE_ONLY)
private List<ApplicationGatewayInner> applicationGateways;
The provisioning state of the web application firewall policy resource.
Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'.
/**
* The provisioning state of the web application firewall policy resource.
* Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'.
*/
@JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private ProvisioningState provisioningState;
Resource status of the policy.
Resource status of the policy. Possible values include: 'Creating',
'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting'.
/**
* Resource status of the policy.
* Resource status of the policy. Possible values include: 'Creating',
* 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting'.
*/
@JsonProperty(value = "properties.resourceState", access = JsonProperty.Access.WRITE_ONLY)
private WebApplicationFirewallPolicyResourceState resourceState;
Describes the managedRules structure.
/**
* Describes the managedRules structure.
*/
@JsonProperty(value = "properties.managedRules", required = true)
private ManagedRulesDefinition managedRules;
A collection of references to application gateway http listeners.
/**
* A collection of references to application gateway http listeners.
*/
@JsonProperty(value = "properties.httpListeners", access = JsonProperty.Access.WRITE_ONLY)
private List<SubResource> httpListeners;
A collection of references to application gateway path rules.
/**
* A collection of references to application gateway path rules.
*/
@JsonProperty(value = "properties.pathBasedRules", access = JsonProperty.Access.WRITE_ONLY)
private List<SubResource> pathBasedRules;
A unique read-only string that changes whenever the resource is updated.
/**
* A unique read-only string that changes whenever the resource is updated.
*/
@JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY)
private String etag;
Resource ID.
/**
* Resource ID.
*/
@JsonProperty(value = "id")
private String id;
Get the PolicySettings for policy.
Returns: the policySettings value
/**
* Get the PolicySettings for policy.
*
* @return the policySettings value
*/
public PolicySettings policySettings() {
return this.policySettings;
}
Set the PolicySettings for policy.
Params: - policySettings – the policySettings value to set
Returns: the WebApplicationFirewallPolicyInner object itself.
/**
* Set the PolicySettings for policy.
*
* @param policySettings the policySettings value to set
* @return the WebApplicationFirewallPolicyInner object itself.
*/
public WebApplicationFirewallPolicyInner withPolicySettings(PolicySettings policySettings) {
this.policySettings = policySettings;
return this;
}
Get the custom rules inside the policy.
Returns: the customRules value
/**
* Get the custom rules inside the policy.
*
* @return the customRules value
*/
public List<WebApplicationFirewallCustomRule> customRules() {
return this.customRules;
}
Set the custom rules inside the policy.
Params: - customRules – the customRules value to set
Returns: the WebApplicationFirewallPolicyInner object itself.
/**
* Set the custom rules inside the policy.
*
* @param customRules the customRules value to set
* @return the WebApplicationFirewallPolicyInner object itself.
*/
public WebApplicationFirewallPolicyInner withCustomRules(List<WebApplicationFirewallCustomRule> customRules) {
this.customRules = customRules;
return this;
}
Get a collection of references to application gateways.
Returns: the applicationGateways value
/**
* Get a collection of references to application gateways.
*
* @return the applicationGateways value
*/
public List<ApplicationGatewayInner> applicationGateways() {
return this.applicationGateways;
}
Get the provisioning state of the web application firewall policy resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'.
Returns: the provisioningState value
/**
* Get the provisioning state of the web application firewall policy resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'.
*
* @return the provisioningState value
*/
public ProvisioningState provisioningState() {
return this.provisioningState;
}
Get resource status of the policy. Possible values include: 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting'.
Returns: the resourceState value
/**
* Get resource status of the policy. Possible values include: 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting'.
*
* @return the resourceState value
*/
public WebApplicationFirewallPolicyResourceState resourceState() {
return this.resourceState;
}
Get describes the managedRules structure.
Returns: the managedRules value
/**
* Get describes the managedRules structure.
*
* @return the managedRules value
*/
public ManagedRulesDefinition managedRules() {
return this.managedRules;
}
Set describes the managedRules structure.
Params: - managedRules – the managedRules value to set
Returns: the WebApplicationFirewallPolicyInner object itself.
/**
* Set describes the managedRules structure.
*
* @param managedRules the managedRules value to set
* @return the WebApplicationFirewallPolicyInner object itself.
*/
public WebApplicationFirewallPolicyInner withManagedRules(ManagedRulesDefinition managedRules) {
this.managedRules = managedRules;
return this;
}
Get a collection of references to application gateway http listeners.
Returns: the httpListeners value
/**
* Get a collection of references to application gateway http listeners.
*
* @return the httpListeners value
*/
public List<SubResource> httpListeners() {
return this.httpListeners;
}
Get a collection of references to application gateway path rules.
Returns: the pathBasedRules value
/**
* Get a collection of references to application gateway path rules.
*
* @return the pathBasedRules value
*/
public List<SubResource> pathBasedRules() {
return this.pathBasedRules;
}
Get a unique read-only string that changes whenever the resource is updated.
Returns: the etag value
/**
* Get a unique read-only string that changes whenever the resource is updated.
*
* @return the etag value
*/
public String etag() {
return this.etag;
}
Get resource ID.
Returns: the id value
/**
* Get resource ID.
*
* @return the id value
*/
public String id() {
return this.id;
}
Set resource ID.
Params: - id – the id value to set
Returns: the WebApplicationFirewallPolicyInner object itself.
/**
* Set resource ID.
*
* @param id the id value to set
* @return the WebApplicationFirewallPolicyInner object itself.
*/
public WebApplicationFirewallPolicyInner withId(String id) {
this.id = id;
return this;
}
}