Class ApplicationGatewayPathRuleInner
java.lang.Object
com.azure.core.management.SubResource
com.azure.resourcemanager.network.fluent.models.ApplicationGatewayPathRuleInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.SubResource>
public final class ApplicationGatewayPathRuleInner
extends com.azure.core.management.SubResource
Path rule of URL path map of an application gateway.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ApplicationGatewayPathRuleInner 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.etag()Get the etag property: A unique read-only string that changes whenever the resource is updated.com.azure.core.management.SubResourceGet the firewallPolicy property: Reference to the FirewallPolicy resource.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ApplicationGatewayPathRuleInner from the JsonReader.com.azure.core.management.SubResourceGet the loadDistributionPolicy property: Load Distribution Policy resource of URL path map path rule.name()Get the name property: Name of the path rule that is unique within an Application Gateway.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) 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 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 name property: Name of the path rule that is unique within an Application Gateway.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 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
-
ApplicationGatewayPathRuleInner
public ApplicationGatewayPathRuleInner()Creates an instance of ApplicationGatewayPathRuleInner class.
-
-
Method Details
-
name
Get the name property: Name of the path rule that is unique within an Application Gateway.- Returns:
- the name value.
-
withName
Set the name property: Name of the path rule that is unique within an Application Gateway.- Parameters:
name- the name value to set.- Returns:
- the ApplicationGatewayPathRuleInner 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
-
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 ApplicationGatewayPathRuleInner 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 ApplicationGatewayPathRuleInner 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 ApplicationGatewayPathRuleInner 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 ApplicationGatewayPathRuleInner 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 ApplicationGatewayPathRuleInner 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 ApplicationGatewayPathRuleInner 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 ApplicationGatewayPathRuleInner 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 ApplicationGatewayPathRuleInner 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 ApplicationGatewayPathRuleInner 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 ApplicationGatewayPathRuleInner 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 ApplicationGatewayPathRuleInner 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 ApplicationGatewayPathRuleInner 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 ApplicationGatewayPathRuleInner 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<com.azure.core.management.SubResource>- Overrides:
toJsonin classcom.azure.core.management.SubResource- Throws:
IOException
-
fromJson
public static ApplicationGatewayPathRuleInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ApplicationGatewayPathRuleInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ApplicationGatewayPathRuleInner 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 ApplicationGatewayPathRuleInner.
-