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 Summary
ConstructorsConstructorDescriptionCreates an instance of ApplicationGatewayPathRulePropertiesFormat class. -
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.management.SubResourceGet the backendAddressPool property: Backend address pool resource of URL path map path rule.com.azure.core.management.SubResourceGet the backendHttpSettings property: Backend http settings resource of URL path map path rule.com.azure.core.management.SubResourceGet the firewallPolicy property: Reference to the FirewallPolicy resource.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ApplicationGatewayPathRulePropertiesFormat from the JsonReader.com.azure.core.management.SubResourceGet the loadDistributionPolicy property: Load Distribution Policy resource of URL path map path rule.paths()Get the paths property: Path rules of URL path map.Get the provisioningState property: The provisioning state of the path rule resource.com.azure.core.management.SubResourceGet the redirectConfiguration property: Redirect configuration resource of URL path map path rule.com.azure.core.management.SubResourceGet the rewriteRuleSet property: Rewrite rule set resource of URL path map path rule.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 URL path map path rule.withBackendHttpSettings(com.azure.core.management.SubResource backendHttpSettings) Set the backendHttpSettings property: Backend http settings resource of URL path map path rule.withFirewallPolicy(com.azure.core.management.SubResource firewallPolicy) Set the firewallPolicy property: Reference to the FirewallPolicy resource.withLoadDistributionPolicy(com.azure.core.management.SubResource loadDistributionPolicy) Set the loadDistributionPolicy property: Load Distribution Policy resource of URL path map path rule.Set the paths property: Path rules of URL path map.withRedirectConfiguration(com.azure.core.management.SubResource redirectConfiguration) Set the redirectConfiguration property: Redirect configuration resource of URL path map path rule.withRewriteRuleSet(com.azure.core.management.SubResource rewriteRuleSet) Set the rewriteRuleSet property: Rewrite rule set resource of URL path map path rule.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
-
ApplicationGatewayPathRulePropertiesFormat
public ApplicationGatewayPathRulePropertiesFormat()Creates an instance of ApplicationGatewayPathRulePropertiesFormat class.
-
-
Method Details
-
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
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
- Specified by:
toJsonin interfacecom.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.
-