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 Details

    • ApplicationGatewayRoutingRule

      public ApplicationGatewayRoutingRule()
      Creates an instance of ApplicationGatewayRoutingRule class.
  • Method Details

    • name

      public String name()
      Get the name property: Name of the routing rule that is unique within an Application Gateway.
      Returns:
      the name value.
    • 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.
    • etag

      public String etag()
      Get the etag property: A unique read-only string that changes whenever the resource is updated.
      Returns:
      the etag value.
    • type

      public String type()
      Get the type property: Type of the resource.
      Returns:
      the type value.
    • withId

      Overrides:
      withId in class com.azure.core.management.SubResource
    • ruleType

      Get the ruleType property: Rule type.
      Returns:
      the ruleType value.
    • withRuleType

      Set the ruleType property: Rule type.
      Parameters:
      ruleType - the ruleType value to set.
      Returns:
      the ApplicationGatewayRoutingRule object itself.
    • priority

      public Integer priority()
      Get the priority property: Priority of the routing rule.
      Returns:
      the priority value.
    • 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.
    • 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

      public ApplicationGatewayRoutingRule 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 ApplicationGatewayRoutingRule object itself.
    • provisioningState

      public ProvisioningState 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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<com.azure.core.management.SubResource>
      Overrides:
      toJson in class com.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.