Share via


WebApplicationFirewallPolicyPropertiesFormat Class

  • java.lang.Object
    • com.azure.resourcemanager.network.fluent.models.WebApplicationFirewallPolicyPropertiesFormat

Implements

public final class WebApplicationFirewallPolicyPropertiesFormat
implements JsonSerializable<WebApplicationFirewallPolicyPropertiesFormat>

Defines web application firewall policy properties.

Constructor Summary

Constructor Description
WebApplicationFirewallPolicyPropertiesFormat()

Creates an instance of WebApplicationFirewallPolicyPropertiesFormat class.

Method Summary

Modifier and Type Method and Description
List<ApplicationGatewayForContainersReferenceDefinition> applicationGatewayForContainers()

Get the applicationGatewayForContainers property: A collection of references to application gateway for containers.

List<ApplicationGatewayInner> applicationGateways()

Get the applicationGateways property: A collection of references to application gateways.

List<WebApplicationFirewallCustomRule> customRules()

Get the customRules property: The custom rules inside the policy.

static WebApplicationFirewallPolicyPropertiesFormat fromJson(JsonReader jsonReader)

Reads an instance of WebApplicationFirewallPolicyPropertiesFormat from the JsonReader.

List<SubResource> httpListeners()

Get the httpListeners property: A collection of references to application gateway http listeners.

ManagedRulesDefinition managedRules()

Get the managedRules property: Describes the managedRules structure.

List<SubResource> pathBasedRules()

Get the pathBasedRules property: A collection of references to application gateway path rules.

PolicySettings policySettings()

Get the policySettings property: The PolicySettings for policy.

ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the web application firewall policy resource.

WebApplicationFirewallPolicyResourceState resourceState()

Get the resourceState property: Resource status of the policy.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

WebApplicationFirewallPolicyPropertiesFormat withCustomRules(List<WebApplicationFirewallCustomRule> customRules)

Set the customRules property: The custom rules inside the policy.

WebApplicationFirewallPolicyPropertiesFormat withManagedRules(ManagedRulesDefinition managedRules)

Set the managedRules property: Describes the managedRules structure.

WebApplicationFirewallPolicyPropertiesFormat withPolicySettings(PolicySettings policySettings)

Set the policySettings property: The PolicySettings for policy.

Methods inherited from java.lang.Object

Constructor Details

WebApplicationFirewallPolicyPropertiesFormat

public WebApplicationFirewallPolicyPropertiesFormat()

Creates an instance of WebApplicationFirewallPolicyPropertiesFormat class.

Method Details

applicationGatewayForContainers

public List<ApplicationGatewayForContainersReferenceDefinition> applicationGatewayForContainers()

Get the applicationGatewayForContainers property: A collection of references to application gateway for containers.

Returns:

the applicationGatewayForContainers value.

applicationGateways

public List<ApplicationGatewayInner> applicationGateways()

Get the applicationGateways property: A collection of references to application gateways.

Returns:

the applicationGateways value.

customRules

public List<WebApplicationFirewallCustomRule> customRules()

Get the customRules property: The custom rules inside the policy.

Returns:

the customRules value.

fromJson

public static WebApplicationFirewallPolicyPropertiesFormat fromJson(JsonReader jsonReader)

Reads an instance of WebApplicationFirewallPolicyPropertiesFormat from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of WebApplicationFirewallPolicyPropertiesFormat if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

httpListeners

public List<SubResource> httpListeners()

Get the httpListeners property: A collection of references to application gateway http listeners.

Returns:

the httpListeners value.

managedRules

public ManagedRulesDefinition managedRules()

Get the managedRules property: Describes the managedRules structure.

Returns:

the managedRules value.

pathBasedRules

public List<SubResource> pathBasedRules()

Get the pathBasedRules property: A collection of references to application gateway path rules.

Returns:

the pathBasedRules value.

policySettings

public PolicySettings policySettings()

Get the policySettings property: The PolicySettings for policy.

Returns:

the policySettings value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the web application firewall policy resource.

Returns:

the provisioningState value.

resourceState

public WebApplicationFirewallPolicyResourceState resourceState()

Get the resourceState property: Resource status of the policy.

Returns:

the resourceState value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCustomRules

public WebApplicationFirewallPolicyPropertiesFormat withCustomRules(List<WebApplicationFirewallCustomRule> customRules)

Set the customRules property: The custom rules inside the policy.

Parameters:

customRules - the customRules value to set.

Returns:

the WebApplicationFirewallPolicyPropertiesFormat object itself.

withManagedRules

public WebApplicationFirewallPolicyPropertiesFormat withManagedRules(ManagedRulesDefinition managedRules)

Set the managedRules property: Describes the managedRules structure.

Parameters:

managedRules - the managedRules value to set.

Returns:

the WebApplicationFirewallPolicyPropertiesFormat object itself.

withPolicySettings

public WebApplicationFirewallPolicyPropertiesFormat withPolicySettings(PolicySettings policySettings)

Set the policySettings property: The PolicySettings for policy.

Parameters:

policySettings - the policySettings value to set.

Returns:

the WebApplicationFirewallPolicyPropertiesFormat object itself.

Applies to