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 Details

    • ApplicationGatewayRoutingRulePropertiesFormat

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

    • 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 ApplicationGatewayRoutingRulePropertiesFormat object itself.
    • priority

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

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