Class ApplicationGatewayRoutingRule
java.lang.Object
com.azure.core.management.SubResource
com.azure.resourcemanager.network.models.ApplicationGatewayRoutingRule
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.SubResource>
public final class ApplicationGatewayRoutingRule
extends com.azure.core.management.SubResource
Routing rule of an application gateway.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ApplicationGatewayRoutingRule 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.etag()Get the etag property: A unique read-only string that changes whenever the resource is updated.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ApplicationGatewayRoutingRule from the JsonReader.com.azure.core.management.SubResourcelistener()Get the listener property: Listener resource of the application gateway.name()Get the name property: Name of the routing rule that is unique within an Application Gateway.priority()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) type()Get the type property: Type of the resource.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.Set the name property: Name of the routing rule that is unique within an Application Gateway.withPriority(Integer priority) Set the priority property: Priority of the routing rule.Set the ruleType property: Rule type.Methods inherited from class com.azure.core.management.SubResource
idMethods 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
-
ApplicationGatewayRoutingRule
public ApplicationGatewayRoutingRule()Creates an instance of ApplicationGatewayRoutingRule class.
-
-
Method Details
-
name
Get the name property: Name of the routing rule that is unique within an Application Gateway.- Returns:
- the name value.
-
withName
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.
-
etag
Get the etag property: A unique read-only string that changes whenever the resource is updated.- Returns:
- the etag value.
-
type
Get the type property: Type of the resource.- Returns:
- the type value.
-
withId
- Overrides:
withIdin classcom.azure.core.management.SubResource
-
ruleType
Get the ruleType property: Rule type.- Returns:
- the ruleType value.
-
withRuleType
public ApplicationGatewayRoutingRule withRuleType(ApplicationGatewayRequestRoutingRuleType ruleType) Set the ruleType property: Rule type.- Parameters:
ruleType- the ruleType value to set.- Returns:
- the ApplicationGatewayRoutingRule object itself.
-
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 ApplicationGatewayRoutingRule 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 ApplicationGatewayRoutingRule 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 ApplicationGatewayRoutingRule 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 ApplicationGatewayRoutingRule 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 ApplicationGatewayRoutingRule 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
Set the listener property: Listener resource of the application gateway.- Parameters:
listener- the listener value to set.- Returns:
- the ApplicationGatewayRoutingRule 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<com.azure.core.management.SubResource>- Overrides:
toJsonin classcom.azure.core.management.SubResource- Throws:
IOException
-
fromJson
public static ApplicationGatewayRoutingRule fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-