ApplicationGatewayRoutingRulePropertiesFormat Class

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

Implements

public final class ApplicationGatewayRoutingRulePropertiesFormat
implements JsonSerializable<ApplicationGatewayRoutingRulePropertiesFormat>

Properties of routing rule of the application gateway.

Constructor Summary

Constructor Description
ApplicationGatewayRoutingRulePropertiesFormat()

Creates an instance of ApplicationGatewayRoutingRulePropertiesFormat 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.

static ApplicationGatewayRoutingRulePropertiesFormat fromJson(JsonReader jsonReader)

Reads an instance of ApplicationGatewayRoutingRulePropertiesFormat from the JsonReader.

SubResource listener()

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

int 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)
void validate()

Validates the instance.

ApplicationGatewayRoutingRulePropertiesFormat withBackendAddressPool(SubResource backendAddressPool)

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

ApplicationGatewayRoutingRulePropertiesFormat withBackendSettings(SubResource backendSettings)

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

ApplicationGatewayRoutingRulePropertiesFormat withListener(SubResource listener)

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

ApplicationGatewayRoutingRulePropertiesFormat withPriority(int priority)

Set the priority property: Priority of the routing rule.

ApplicationGatewayRoutingRulePropertiesFormat withRuleType(ApplicationGatewayRequestRoutingRuleType ruleType)

Set the ruleType property: Rule type.

Methods inherited from java.lang.Object

Constructor Details

ApplicationGatewayRoutingRulePropertiesFormat

public ApplicationGatewayRoutingRulePropertiesFormat()

Creates an instance of ApplicationGatewayRoutingRulePropertiesFormat 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.

fromJson

public static ApplicationGatewayRoutingRulePropertiesFormat fromJson(JsonReader jsonReader)

Reads an instance of ApplicationGatewayRoutingRulePropertiesFormat from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

listener

public SubResource listener()

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

Returns:

the listener value.

priority

public int 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)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withBackendAddressPool

public ApplicationGatewayRoutingRulePropertiesFormat withBackendAddressPool(SubResource backendAddressPool)

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

Parameters:

backendAddressPool - the backendAddressPool value to set.

Returns:

the ApplicationGatewayRoutingRulePropertiesFormat object itself.

withBackendSettings

public ApplicationGatewayRoutingRulePropertiesFormat withBackendSettings(SubResource backendSettings)

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

Parameters:

backendSettings - the backendSettings value to set.

Returns:

the ApplicationGatewayRoutingRulePropertiesFormat object itself.

withListener

public ApplicationGatewayRoutingRulePropertiesFormat withListener(SubResource listener)

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

Parameters:

listener - the listener value to set.

Returns:

the ApplicationGatewayRoutingRulePropertiesFormat object itself.

withPriority

public ApplicationGatewayRoutingRulePropertiesFormat withPriority(int priority)

Set the priority property: Priority of the routing rule.

Parameters:

priority - the priority value to set.

Returns:

the ApplicationGatewayRoutingRulePropertiesFormat object itself.

withRuleType

public ApplicationGatewayRoutingRulePropertiesFormat withRuleType(ApplicationGatewayRequestRoutingRuleType ruleType)

Set the ruleType property: Rule type.

Parameters:

ruleType - the ruleType value to set.

Returns:

the ApplicationGatewayRoutingRulePropertiesFormat object itself.

Applies to