Class ApplicationGatewayRoutingRulePropertiesFormat
java.lang.Object
com.azure.resourcemanager.network.fluent.models.ApplicationGatewayRoutingRulePropertiesFormat
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ApplicationGatewayRoutingRulePropertiesFormat>
public final class ApplicationGatewayRoutingRulePropertiesFormat
extends Object
implements com.azure.json.JsonSerializable<ApplicationGatewayRoutingRulePropertiesFormat>
Properties of routing rule of the application gateway.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ApplicationGatewayRoutingRulePropertiesFormat class. -
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.management.SubResourceGet the backendAddressPool property: Backend address pool resource of the application gateway.com.azure.core.management.SubResourceGet the backendSettings property: Backend settings resource of the application gateway.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ApplicationGatewayRoutingRulePropertiesFormat from the JsonReader.com.azure.core.management.SubResourcelistener()Get the listener property: Listener resource of the application gateway.intpriority()Get the priority property: Priority of the routing rule.Get the provisioningState property: The provisioning state of the request routing rule resource.ruleType()Get the ruleType property: Rule type.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withBackendAddressPool(com.azure.core.management.SubResource backendAddressPool) Set the backendAddressPool property: Backend address pool resource of the application gateway.withBackendSettings(com.azure.core.management.SubResource backendSettings) Set the backendSettings property: Backend settings resource of the application gateway.withListener(com.azure.core.management.SubResource listener) Set the listener property: Listener resource of the application gateway.withPriority(int priority) Set the priority property: Priority of the routing rule.Set the ruleType property: Rule type.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ApplicationGatewayRoutingRulePropertiesFormat
public ApplicationGatewayRoutingRulePropertiesFormat()Creates an instance of ApplicationGatewayRoutingRulePropertiesFormat class.
-
-
Method Details
-
ruleType
Get the ruleType property: Rule type.- Returns:
- the ruleType value.
-
withRuleType
public ApplicationGatewayRoutingRulePropertiesFormat withRuleType(ApplicationGatewayRequestRoutingRuleType ruleType) Set the ruleType property: Rule type.- Parameters:
ruleType- the ruleType value to set.- Returns:
- the ApplicationGatewayRoutingRulePropertiesFormat object itself.
-
priority
public int priority()Get the priority property: Priority of the routing rule.- Returns:
- the priority value.
-
withPriority
Set the priority property: Priority of the routing rule.- Parameters:
priority- the priority value to set.- Returns:
- the ApplicationGatewayRoutingRulePropertiesFormat object itself.
-
backendAddressPool
public com.azure.core.management.SubResource backendAddressPool()Get the backendAddressPool property: Backend address pool resource of the application gateway.- Returns:
- the backendAddressPool value.
-
withBackendAddressPool
public ApplicationGatewayRoutingRulePropertiesFormat withBackendAddressPool(com.azure.core.management.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.
-
backendSettings
public com.azure.core.management.SubResource backendSettings()Get the backendSettings property: Backend settings resource of the application gateway.- Returns:
- the backendSettings value.
-
withBackendSettings
public ApplicationGatewayRoutingRulePropertiesFormat withBackendSettings(com.azure.core.management.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.
-
listener
public com.azure.core.management.SubResource listener()Get the listener property: Listener resource of the application gateway.- Returns:
- the listener value.
-
withListener
public ApplicationGatewayRoutingRulePropertiesFormat withListener(com.azure.core.management.SubResource listener) Set the listener property: Listener resource of the application gateway.- Parameters:
listener- the listener value to set.- Returns:
- the ApplicationGatewayRoutingRulePropertiesFormat object itself.
-
provisioningState
Get the provisioningState property: The provisioning state of the request routing rule resource.- Returns:
- the provisioningState value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ApplicationGatewayRoutingRulePropertiesFormat>- Throws:
IOException
-
fromJson
public static ApplicationGatewayRoutingRulePropertiesFormat fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the ApplicationGatewayRoutingRulePropertiesFormat.
-