Class ApplicationGatewayPathRulePropertiesFormat

java.lang.Object
com.azure.resourcemanager.network.fluent.models.ApplicationGatewayPathRulePropertiesFormat
All Implemented Interfaces:
com.azure.json.JsonSerializable<ApplicationGatewayPathRulePropertiesFormat>

public final class ApplicationGatewayPathRulePropertiesFormat extends Object implements com.azure.json.JsonSerializable<ApplicationGatewayPathRulePropertiesFormat>
Properties of path rule of an application gateway.
  • Constructor Details

    • ApplicationGatewayPathRulePropertiesFormat

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

    • paths

      public List<String> paths()
      Get the paths property: Path rules of URL path map.
      Returns:
      the paths value.
    • withPaths

      Set the paths property: Path rules of URL path map.
      Parameters:
      paths - the paths value to set.
      Returns:
      the ApplicationGatewayPathRulePropertiesFormat object itself.
    • backendAddressPool

      public com.azure.core.management.SubResource backendAddressPool()
      Get the backendAddressPool property: Backend address pool resource of URL path map path rule.
      Returns:
      the backendAddressPool value.
    • withBackendAddressPool

      public ApplicationGatewayPathRulePropertiesFormat withBackendAddressPool(com.azure.core.management.SubResource backendAddressPool)
      Set the backendAddressPool property: Backend address pool resource of URL path map path rule.
      Parameters:
      backendAddressPool - the backendAddressPool value to set.
      Returns:
      the ApplicationGatewayPathRulePropertiesFormat object itself.
    • backendHttpSettings

      public com.azure.core.management.SubResource backendHttpSettings()
      Get the backendHttpSettings property: Backend http settings resource of URL path map path rule.
      Returns:
      the backendHttpSettings value.
    • withBackendHttpSettings

      public ApplicationGatewayPathRulePropertiesFormat withBackendHttpSettings(com.azure.core.management.SubResource backendHttpSettings)
      Set the backendHttpSettings property: Backend http settings resource of URL path map path rule.
      Parameters:
      backendHttpSettings - the backendHttpSettings value to set.
      Returns:
      the ApplicationGatewayPathRulePropertiesFormat object itself.
    • redirectConfiguration

      public com.azure.core.management.SubResource redirectConfiguration()
      Get the redirectConfiguration property: Redirect configuration resource of URL path map path rule.
      Returns:
      the redirectConfiguration value.
    • withRedirectConfiguration

      public ApplicationGatewayPathRulePropertiesFormat withRedirectConfiguration(com.azure.core.management.SubResource redirectConfiguration)
      Set the redirectConfiguration property: Redirect configuration resource of URL path map path rule.
      Parameters:
      redirectConfiguration - the redirectConfiguration value to set.
      Returns:
      the ApplicationGatewayPathRulePropertiesFormat object itself.
    • rewriteRuleSet

      public com.azure.core.management.SubResource rewriteRuleSet()
      Get the rewriteRuleSet property: Rewrite rule set resource of URL path map path rule.
      Returns:
      the rewriteRuleSet value.
    • withRewriteRuleSet

      public ApplicationGatewayPathRulePropertiesFormat withRewriteRuleSet(com.azure.core.management.SubResource rewriteRuleSet)
      Set the rewriteRuleSet property: Rewrite rule set resource of URL path map path rule.
      Parameters:
      rewriteRuleSet - the rewriteRuleSet value to set.
      Returns:
      the ApplicationGatewayPathRulePropertiesFormat object itself.
    • loadDistributionPolicy

      public com.azure.core.management.SubResource loadDistributionPolicy()
      Get the loadDistributionPolicy property: Load Distribution Policy resource of URL path map path rule.
      Returns:
      the loadDistributionPolicy value.
    • withLoadDistributionPolicy

      public ApplicationGatewayPathRulePropertiesFormat withLoadDistributionPolicy(com.azure.core.management.SubResource loadDistributionPolicy)
      Set the loadDistributionPolicy property: Load Distribution Policy resource of URL path map path rule.
      Parameters:
      loadDistributionPolicy - the loadDistributionPolicy value to set.
      Returns:
      the ApplicationGatewayPathRulePropertiesFormat object itself.
    • provisioningState

      public ProvisioningState provisioningState()
      Get the provisioningState property: The provisioning state of the path rule resource.
      Returns:
      the provisioningState value.
    • firewallPolicy

      public com.azure.core.management.SubResource firewallPolicy()
      Get the firewallPolicy property: Reference to the FirewallPolicy resource.
      Returns:
      the firewallPolicy value.
    • withFirewallPolicy

      public ApplicationGatewayPathRulePropertiesFormat withFirewallPolicy(com.azure.core.management.SubResource firewallPolicy)
      Set the firewallPolicy property: Reference to the FirewallPolicy resource.
      Parameters:
      firewallPolicy - the firewallPolicy value to set.
      Returns:
      the ApplicationGatewayPathRulePropertiesFormat object itself.
    • 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<ApplicationGatewayPathRulePropertiesFormat>
      Throws:
      IOException
    • fromJson

      public static ApplicationGatewayPathRulePropertiesFormat fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ApplicationGatewayPathRulePropertiesFormat from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ApplicationGatewayPathRulePropertiesFormat 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 ApplicationGatewayPathRulePropertiesFormat.