ApplicationGatewayAdvancedRoutingRulePropertiesFormat Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.ApplicationGatewayAdvancedRoutingRulePropertiesFormat

Implements

public final class ApplicationGatewayAdvancedRoutingRulePropertiesFormat
implements JsonSerializable<ApplicationGatewayAdvancedRoutingRulePropertiesFormat>

Properties of advanced routing rule of the application gateway.

Constructor Summary

Constructor Description
ApplicationGatewayAdvancedRoutingRulePropertiesFormat()

Creates an instance of ApplicationGatewayAdvancedRoutingRulePropertiesFormat class.

Method Summary

Modifier and Type Method and Description
SubResource advancedRoutingConditionSet()

Get the advancedRoutingConditionSet property: Advanced routing condition set resource evaluated by this rule.

List<ApplicationGatewayAuthConfig> authConfigs()

Get the authConfigs property: Authentication configuration bindings of the advanced routing rule.

SubResource backendAddressPool()

Get the backendAddressPool property: Backend address pool resource of the advanced routing rule.

SubResource backendHttpSettings()

Get the backendHttpSettings property: Backend http settings resource of the advanced routing rule.

static ApplicationGatewayAdvancedRoutingRulePropertiesFormat fromJson(JsonReader jsonReader)

Reads an instance of ApplicationGatewayAdvancedRoutingRulePropertiesFormat from the JsonReader.

int priority()

Get the priority property: Priority of the advanced routing rule.

CommonProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the advanced routing rule resource.

SubResource redirectConfiguration()

Get the redirectConfiguration property: Redirect configuration resource of the advanced routing rule.

SubResource rewriteRuleSet()

Get the rewriteRuleSet property: Rewrite rule set resource of the advanced routing rule.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ApplicationGatewayAdvancedRoutingRulePropertiesFormat withAdvancedRoutingConditionSet(SubResource advancedRoutingConditionSet)

Set the advancedRoutingConditionSet property: Advanced routing condition set resource evaluated by this rule.

ApplicationGatewayAdvancedRoutingRulePropertiesFormat withAuthConfigs(List<ApplicationGatewayAuthConfig> authConfigs)

Set the authConfigs property: Authentication configuration bindings of the advanced routing rule.

ApplicationGatewayAdvancedRoutingRulePropertiesFormat withBackendAddressPool(SubResource backendAddressPool)

Set the backendAddressPool property: Backend address pool resource of the advanced routing rule.

ApplicationGatewayAdvancedRoutingRulePropertiesFormat withBackendHttpSettings(SubResource backendHttpSettings)

Set the backendHttpSettings property: Backend http settings resource of the advanced routing rule.

ApplicationGatewayAdvancedRoutingRulePropertiesFormat withPriority(int priority)

Set the priority property: Priority of the advanced routing rule.

ApplicationGatewayAdvancedRoutingRulePropertiesFormat withRedirectConfiguration(SubResource redirectConfiguration)

Set the redirectConfiguration property: Redirect configuration resource of the advanced routing rule.

ApplicationGatewayAdvancedRoutingRulePropertiesFormat withRewriteRuleSet(SubResource rewriteRuleSet)

Set the rewriteRuleSet property: Rewrite rule set resource of the advanced routing rule.

Methods inherited from java.lang.Object

Constructor Details

ApplicationGatewayAdvancedRoutingRulePropertiesFormat

public ApplicationGatewayAdvancedRoutingRulePropertiesFormat()

Creates an instance of ApplicationGatewayAdvancedRoutingRulePropertiesFormat class.

Method Details

advancedRoutingConditionSet

public SubResource advancedRoutingConditionSet()

Get the advancedRoutingConditionSet property: Advanced routing condition set resource evaluated by this rule.

Returns:

the advancedRoutingConditionSet value.

authConfigs

public List<ApplicationGatewayAuthConfig> authConfigs()

Get the authConfigs property: Authentication configuration bindings of the advanced routing rule. Only one authentication configuration is supported. Authentication configuration names must be unique across the Application Gateway, and an Application Gateway can reference at most 100 distinct authentication policies. Authentication policies can only be bound to Application Gateways using the Standard_v2 or WAF_v2 SKU.

Returns:

the authConfigs value.

backendAddressPool

public SubResource backendAddressPool()

Get the backendAddressPool property: Backend address pool resource of the advanced routing rule. Required unless redirectConfiguration is specified.

Returns:

the backendAddressPool value.

backendHttpSettings

public SubResource backendHttpSettings()

Get the backendHttpSettings property: Backend http settings resource of the advanced routing rule. Required unless redirectConfiguration is specified.

Returns:

the backendHttpSettings value.

fromJson

public static ApplicationGatewayAdvancedRoutingRulePropertiesFormat fromJson(JsonReader jsonReader)

Reads an instance of ApplicationGatewayAdvancedRoutingRulePropertiesFormat from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ApplicationGatewayAdvancedRoutingRulePropertiesFormat 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.

priority

public int priority()

Get the priority property: Priority of the advanced routing rule. Must be unique within the containing advanced routing map. Rules are evaluated in ascending priority order.

Returns:

the priority value.

provisioningState

public CommonProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the advanced routing rule resource.

Returns:

the provisioningState value.

redirectConfiguration

public SubResource redirectConfiguration()

Get the redirectConfiguration property: Redirect configuration resource of the advanced routing rule. Cannot be combined with backendAddressPool or backendHttpSettings.

Returns:

the redirectConfiguration value.

rewriteRuleSet

public SubResource rewriteRuleSet()

Get the rewriteRuleSet property: Rewrite rule set resource of the advanced routing rule.

Returns:

the rewriteRuleSet value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAdvancedRoutingConditionSet

public ApplicationGatewayAdvancedRoutingRulePropertiesFormat withAdvancedRoutingConditionSet(SubResource advancedRoutingConditionSet)

Set the advancedRoutingConditionSet property: Advanced routing condition set resource evaluated by this rule.

Parameters:

advancedRoutingConditionSet - the advancedRoutingConditionSet value to set.

Returns:

the ApplicationGatewayAdvancedRoutingRulePropertiesFormat object itself.

withAuthConfigs

public ApplicationGatewayAdvancedRoutingRulePropertiesFormat withAuthConfigs(List<ApplicationGatewayAuthConfig> authConfigs)

Set the authConfigs property: Authentication configuration bindings of the advanced routing rule. Only one authentication configuration is supported. Authentication configuration names must be unique across the Application Gateway, and an Application Gateway can reference at most 100 distinct authentication policies. Authentication policies can only be bound to Application Gateways using the Standard_v2 or WAF_v2 SKU.

Parameters:

authConfigs - the authConfigs value to set.

Returns:

the ApplicationGatewayAdvancedRoutingRulePropertiesFormat object itself.

withBackendAddressPool

public ApplicationGatewayAdvancedRoutingRulePropertiesFormat withBackendAddressPool(SubResource backendAddressPool)

Set the backendAddressPool property: Backend address pool resource of the advanced routing rule. Required unless redirectConfiguration is specified.

Parameters:

backendAddressPool - the backendAddressPool value to set.

Returns:

the ApplicationGatewayAdvancedRoutingRulePropertiesFormat object itself.

withBackendHttpSettings

public ApplicationGatewayAdvancedRoutingRulePropertiesFormat withBackendHttpSettings(SubResource backendHttpSettings)

Set the backendHttpSettings property: Backend http settings resource of the advanced routing rule. Required unless redirectConfiguration is specified.

Parameters:

backendHttpSettings - the backendHttpSettings value to set.

Returns:

the ApplicationGatewayAdvancedRoutingRulePropertiesFormat object itself.

withPriority

public ApplicationGatewayAdvancedRoutingRulePropertiesFormat withPriority(int priority)

Set the priority property: Priority of the advanced routing rule. Must be unique within the containing advanced routing map. Rules are evaluated in ascending priority order.

Parameters:

priority - the priority value to set.

Returns:

the ApplicationGatewayAdvancedRoutingRulePropertiesFormat object itself.

withRedirectConfiguration

public ApplicationGatewayAdvancedRoutingRulePropertiesFormat withRedirectConfiguration(SubResource redirectConfiguration)

Set the redirectConfiguration property: Redirect configuration resource of the advanced routing rule. Cannot be combined with backendAddressPool or backendHttpSettings.

Parameters:

redirectConfiguration - the redirectConfiguration value to set.

Returns:

the ApplicationGatewayAdvancedRoutingRulePropertiesFormat object itself.

withRewriteRuleSet

public ApplicationGatewayAdvancedRoutingRulePropertiesFormat withRewriteRuleSet(SubResource rewriteRuleSet)

Set the rewriteRuleSet property: Rewrite rule set resource of the advanced routing rule.

Parameters:

rewriteRuleSet - the rewriteRuleSet value to set.

Returns:

the ApplicationGatewayAdvancedRoutingRulePropertiesFormat object itself.

Applies to