Partager via


ApplicationGatewayRoutingRule Class

public final class ApplicationGatewayRoutingRule
extends SubResource

Routing rule of an application gateway.

Constructor Summary

Constructor Description
ApplicationGatewayRoutingRule()

Creates an instance of ApplicationGatewayRoutingRule class.

Method Summary

Modifier and Type Method and Description
SubResource backendAddressPool()

Get the backendAddressPool property: Backend address pool resource of the application gateway.

SubResource backendSettings()

Get the backendSettings property: Backend settings resource of the application gateway.

String etag()

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

static ApplicationGatewayRoutingRule fromJson(JsonReader jsonReader)

Reads an instance of ApplicationGatewayRoutingRule from the JsonReader.

SubResource listener()

Get the listener property: Listener resource of the application gateway.

String name()

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

Integer priority()

Get the priority property: Priority of the routing rule.

ProvisioningState provisioningState()

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

ApplicationGatewayRequestRoutingRuleType ruleType()

Get the ruleType property: Rule type.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Type of the resource.

void validate()

Validates the instance.

ApplicationGatewayRoutingRule withBackendAddressPool(SubResource backendAddressPool)

Set the backendAddressPool property: Backend address pool resource of the application gateway.

ApplicationGatewayRoutingRule withBackendSettings(SubResource backendSettings)

Set the backendSettings property: Backend settings resource of the application gateway.

ApplicationGatewayRoutingRule withId(String id)
ApplicationGatewayRoutingRule withListener(SubResource listener)

Set the listener property: Listener resource of the application gateway.

ApplicationGatewayRoutingRule withName(String name)

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

ApplicationGatewayRoutingRule withPriority(Integer priority)

Set the priority property: Priority of the routing rule.

ApplicationGatewayRoutingRule withRuleType(ApplicationGatewayRequestRoutingRuleType ruleType)

Set the ruleType property: Rule type.

Methods inherited from SubResource

Methods inherited from java.lang.Object

Constructor Details

ApplicationGatewayRoutingRule

public ApplicationGatewayRoutingRule()

Creates an instance of ApplicationGatewayRoutingRule class.

Method Details

backendAddressPool

public SubResource backendAddressPool()

Get the backendAddressPool property: Backend address pool resource of the application gateway.

Returns:

the backendAddressPool value.

backendSettings

public SubResource backendSettings()

Get the backendSettings property: Backend settings resource of the application gateway.

Returns:

the backendSettings 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.

fromJson

public static ApplicationGatewayRoutingRule fromJson(JsonReader jsonReader)

Reads an instance of ApplicationGatewayRoutingRule from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

listener

public SubResource listener()

Get the listener property: Listener resource of the application gateway.

Returns:

the listener value.

name

public String name()

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

Returns:

the name value.

priority

public Integer priority()

Get the priority property: Priority of the routing rule.

Returns:

the priority value.

provisioningState

public ProvisioningState provisioningState()

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

Returns:

the provisioningState value.

ruleType

public ApplicationGatewayRequestRoutingRuleType ruleType()

Get the ruleType property: Rule type.

Returns:

the ruleType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ApplicationGatewayRoutingRule.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 ApplicationGatewayRoutingRule withBackendAddressPool(SubResource backendAddressPool)

Set the backendAddressPool property: Backend address pool resource of the application gateway.

Parameters:

backendAddressPool - the backendAddressPool value to set.

Returns:

the ApplicationGatewayRoutingRule object itself.

withBackendSettings

public ApplicationGatewayRoutingRule withBackendSettings(SubResource backendSettings)

Set the backendSettings property: Backend settings resource of the application gateway.

Parameters:

backendSettings - the backendSettings value to set.

Returns:

the ApplicationGatewayRoutingRule object itself.

withId

public ApplicationGatewayRoutingRule withId(String id)

Overrides:

ApplicationGatewayRoutingRule.withId(String id)

Parameters:

id

withListener

public ApplicationGatewayRoutingRule withListener(SubResource listener)

Set the listener property: Listener resource of the application gateway.

Parameters:

listener - the listener value to set.

Returns:

the ApplicationGatewayRoutingRule object itself.

withName

public ApplicationGatewayRoutingRule withName(String name)

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

Parameters:

name - the name value to set.

Returns:

the ApplicationGatewayRoutingRule object itself.

withPriority

public ApplicationGatewayRoutingRule withPriority(Integer priority)

Set the priority property: Priority of the routing rule.

Parameters:

priority - the priority value to set.

Returns:

the ApplicationGatewayRoutingRule object itself.

withRuleType

public ApplicationGatewayRoutingRule withRuleType(ApplicationGatewayRequestRoutingRuleType ruleType)

Set the ruleType property: Rule type.

Parameters:

ruleType - the ruleType value to set.

Returns:

the ApplicationGatewayRoutingRule object itself.

Applies to