ApplicationGatewayPathRuleInner Class

public final class ApplicationGatewayPathRuleInner
extends SubResource

Path rule of URL path map of an application gateway.

Constructor Summary

Constructor Description
ApplicationGatewayPathRuleInner()

Creates an instance of ApplicationGatewayPathRuleInner class.

Method Summary

Modifier and Type Method and Description
SubResource backendAddressPool()

Get the backendAddressPool property: Backend address pool resource of URL path map path rule.

SubResource backendHttpSettings()

Get the backendHttpSettings property: Backend http settings resource of URL path map path rule.

String etag()

Get the etag property: A unique read-only string that changes whenever the resource is updated.

SubResource firewallPolicy()

Get the firewallPolicy property: Reference to the FirewallPolicy resource.

static ApplicationGatewayPathRuleInner fromJson(JsonReader jsonReader)

Reads an instance of ApplicationGatewayPathRuleInner from the JsonReader.

SubResource loadDistributionPolicy()

Get the loadDistributionPolicy property: Load Distribution Policy resource of URL path map path rule.

String name()

Get the name property: Name of the path rule that is unique within an Application Gateway.

List<String> paths()

Get the paths property: Path rules of URL path map.

ProvisioningState provisioningState()

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

SubResource redirectConfiguration()

Get the redirectConfiguration property: Redirect configuration resource of URL path map path rule.

SubResource rewriteRuleSet()

Get the rewriteRuleSet property: Rewrite rule set resource of URL path map path rule.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Type of the resource.

void validate()

Validates the instance.

ApplicationGatewayPathRuleInner withBackendAddressPool(SubResource backendAddressPool)

Set the backendAddressPool property: Backend address pool resource of URL path map path rule.

ApplicationGatewayPathRuleInner withBackendHttpSettings(SubResource backendHttpSettings)

Set the backendHttpSettings property: Backend http settings resource of URL path map path rule.

ApplicationGatewayPathRuleInner withFirewallPolicy(SubResource firewallPolicy)

Set the firewallPolicy property: Reference to the FirewallPolicy resource.

ApplicationGatewayPathRuleInner withId(String id)
ApplicationGatewayPathRuleInner withLoadDistributionPolicy(SubResource loadDistributionPolicy)

Set the loadDistributionPolicy property: Load Distribution Policy resource of URL path map path rule.

ApplicationGatewayPathRuleInner withName(String name)

Set the name property: Name of the path rule that is unique within an Application Gateway.

ApplicationGatewayPathRuleInner withPaths(List<String> paths)

Set the paths property: Path rules of URL path map.

ApplicationGatewayPathRuleInner withRedirectConfiguration(SubResource redirectConfiguration)

Set the redirectConfiguration property: Redirect configuration resource of URL path map path rule.

ApplicationGatewayPathRuleInner withRewriteRuleSet(SubResource rewriteRuleSet)

Set the rewriteRuleSet property: Rewrite rule set resource of URL path map path rule.

Methods inherited from SubResource

Methods inherited from java.lang.Object

Constructor Details

ApplicationGatewayPathRuleInner

public ApplicationGatewayPathRuleInner()

Creates an instance of ApplicationGatewayPathRuleInner class.

Method Details

backendAddressPool

public SubResource backendAddressPool()

Get the backendAddressPool property: Backend address pool resource of URL path map path rule.

Returns:

the backendAddressPool value.

backendHttpSettings

public SubResource backendHttpSettings()

Get the backendHttpSettings property: Backend http settings resource of URL path map path rule.

Returns:

the backendHttpSettings value.

etag

public String etag()

Get the etag property: A unique read-only string that changes whenever the resource is updated.

Returns:

the etag value.

firewallPolicy

public SubResource firewallPolicy()

Get the firewallPolicy property: Reference to the FirewallPolicy resource.

Returns:

the firewallPolicy value.

fromJson

public static ApplicationGatewayPathRuleInner fromJson(JsonReader jsonReader)

Reads an instance of ApplicationGatewayPathRuleInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the ApplicationGatewayPathRuleInner.

loadDistributionPolicy

public SubResource loadDistributionPolicy()

Get the loadDistributionPolicy property: Load Distribution Policy resource of URL path map path rule.

Returns:

the loadDistributionPolicy value.

name

public String name()

Get the name property: Name of the path rule that is unique within an Application Gateway.

Returns:

the name value.

paths

public List paths()

Get the paths property: Path rules of URL path map.

Returns:

the paths value.

provisioningState

public ProvisioningState provisioningState()

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

Returns:

the provisioningState value.

redirectConfiguration

public SubResource redirectConfiguration()

Get the redirectConfiguration property: Redirect configuration resource of URL path map path rule.

Returns:

the redirectConfiguration value.

rewriteRuleSet

public SubResource rewriteRuleSet()

Get the rewriteRuleSet property: Rewrite rule set resource of URL path map path rule.

Returns:

the rewriteRuleSet value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ApplicationGatewayPathRuleInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Type of the resource.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withBackendAddressPool

public ApplicationGatewayPathRuleInner withBackendAddressPool(SubResource backendAddressPool)

Set the backendAddressPool property: Backend address pool resource of URL path map path rule.

Parameters:

backendAddressPool - the backendAddressPool value to set.

Returns:

the ApplicationGatewayPathRuleInner object itself.

withBackendHttpSettings

public ApplicationGatewayPathRuleInner withBackendHttpSettings(SubResource backendHttpSettings)

Set the backendHttpSettings property: Backend http settings resource of URL path map path rule.

Parameters:

backendHttpSettings - the backendHttpSettings value to set.

Returns:

the ApplicationGatewayPathRuleInner object itself.

withFirewallPolicy

public ApplicationGatewayPathRuleInner withFirewallPolicy(SubResource firewallPolicy)

Set the firewallPolicy property: Reference to the FirewallPolicy resource.

Parameters:

firewallPolicy - the firewallPolicy value to set.

Returns:

the ApplicationGatewayPathRuleInner object itself.

withId

public ApplicationGatewayPathRuleInner withId(String id)

Overrides:

ApplicationGatewayPathRuleInner.withId(String id)

Parameters:

id

withLoadDistributionPolicy

public ApplicationGatewayPathRuleInner withLoadDistributionPolicy(SubResource loadDistributionPolicy)

Set the loadDistributionPolicy property: Load Distribution Policy resource of URL path map path rule.

Parameters:

loadDistributionPolicy - the loadDistributionPolicy value to set.

Returns:

the ApplicationGatewayPathRuleInner object itself.

withName

public ApplicationGatewayPathRuleInner withName(String name)

Set the name property: Name of the path rule that is unique within an Application Gateway.

Parameters:

name - the name value to set.

Returns:

the ApplicationGatewayPathRuleInner object itself.

withPaths

public ApplicationGatewayPathRuleInner withPaths(List paths)

Set the paths property: Path rules of URL path map.

Parameters:

paths - the paths value to set.

Returns:

the ApplicationGatewayPathRuleInner object itself.

withRedirectConfiguration

public ApplicationGatewayPathRuleInner withRedirectConfiguration(SubResource redirectConfiguration)

Set the redirectConfiguration property: Redirect configuration resource of URL path map path rule.

Parameters:

redirectConfiguration - the redirectConfiguration value to set.

Returns:

the ApplicationGatewayPathRuleInner object itself.

withRewriteRuleSet

public ApplicationGatewayPathRuleInner withRewriteRuleSet(SubResource rewriteRuleSet)

Set the rewriteRuleSet property: Rewrite rule set resource of URL path map path rule.

Parameters:

rewriteRuleSet - the rewriteRuleSet value to set.

Returns:

the ApplicationGatewayPathRuleInner object itself.

Applies to