Class ApplicationGatewayUrlConfiguration
java.lang.Object
com.azure.resourcemanager.network.models.ApplicationGatewayUrlConfiguration
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ApplicationGatewayUrlConfiguration>
public final class ApplicationGatewayUrlConfiguration
extends Object
implements com.azure.json.JsonSerializable<ApplicationGatewayUrlConfiguration>
Url configuration of the Actions set in Application Gateway.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ApplicationGatewayUrlConfiguration class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ApplicationGatewayUrlConfiguration from the JsonReader.Get the modifiedPath property: Url path which user has provided for url rewrite.Get the modifiedQueryString property: Query string which user has provided for url rewrite.reroute()Get the reroute property: If set as true, it will re-evaluate the url path map provided in path based request routing rules using modified path.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withModifiedPath(String modifiedPath) Set the modifiedPath property: Url path which user has provided for url rewrite.withModifiedQueryString(String modifiedQueryString) Set the modifiedQueryString property: Query string which user has provided for url rewrite.withReroute(Boolean reroute) Set the reroute property: If set as true, it will re-evaluate the url path map provided in path based request routing rules using modified path.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
-
ApplicationGatewayUrlConfiguration
public ApplicationGatewayUrlConfiguration()Creates an instance of ApplicationGatewayUrlConfiguration class.
-
-
Method Details
-
modifiedPath
Get the modifiedPath property: Url path which user has provided for url rewrite. Null means no path will be updated. Default value is null.- Returns:
- the modifiedPath value.
-
withModifiedPath
Set the modifiedPath property: Url path which user has provided for url rewrite. Null means no path will be updated. Default value is null.- Parameters:
modifiedPath- the modifiedPath value to set.- Returns:
- the ApplicationGatewayUrlConfiguration object itself.
-
modifiedQueryString
Get the modifiedQueryString property: Query string which user has provided for url rewrite. Null means no query string will be updated. Default value is null.- Returns:
- the modifiedQueryString value.
-
withModifiedQueryString
Set the modifiedQueryString property: Query string which user has provided for url rewrite. Null means no query string will be updated. Default value is null.- Parameters:
modifiedQueryString- the modifiedQueryString value to set.- Returns:
- the ApplicationGatewayUrlConfiguration object itself.
-
reroute
Get the reroute property: If set as true, it will re-evaluate the url path map provided in path based request routing rules using modified path. Default value is false.- Returns:
- the reroute value.
-
withReroute
Set the reroute property: If set as true, it will re-evaluate the url path map provided in path based request routing rules using modified path. Default value is false.- Parameters:
reroute- the reroute value to set.- Returns:
- the ApplicationGatewayUrlConfiguration 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<ApplicationGatewayUrlConfiguration>- Throws:
IOException
-
fromJson
public static ApplicationGatewayUrlConfiguration fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ApplicationGatewayUrlConfiguration from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ApplicationGatewayUrlConfiguration 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 ApplicationGatewayUrlConfiguration.
-