ApplicationGatewayUrlConfiguration Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.ApplicationGatewayUrlConfiguration

Implements

public final class ApplicationGatewayUrlConfiguration
implements JsonSerializable<ApplicationGatewayUrlConfiguration>

Url configuration of the Actions set in Application Gateway.

Constructor Summary

Constructor Description
ApplicationGatewayUrlConfiguration()

Creates an instance of ApplicationGatewayUrlConfiguration class.

Method Summary

Modifier and Type Method and Description
static ApplicationGatewayUrlConfiguration fromJson(JsonReader jsonReader)

Reads an instance of ApplicationGatewayUrlConfiguration from the JsonReader.

String modifiedPath()

Get the modifiedPath property: Url path which user has provided for url rewrite.

String modifiedQueryString()

Get the modifiedQueryString property: Query string which user has provided for url rewrite.

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ApplicationGatewayUrlConfiguration withModifiedPath(String modifiedPath)

Set the modifiedPath property: Url path which user has provided for url rewrite.

ApplicationGatewayUrlConfiguration withModifiedQueryString(String modifiedQueryString)

Set the modifiedQueryString property: Query string which user has provided for url rewrite.

ApplicationGatewayUrlConfiguration 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 java.lang.Object

Constructor Details

ApplicationGatewayUrlConfiguration

public ApplicationGatewayUrlConfiguration()

Creates an instance of ApplicationGatewayUrlConfiguration class.

Method Details

fromJson

public static ApplicationGatewayUrlConfiguration fromJson(JsonReader jsonReader)

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.

modifiedPath

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

modifiedQueryString

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

reroute

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withModifiedPath

public ApplicationGatewayUrlConfiguration withModifiedPath(String modifiedPath)

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.

withModifiedQueryString

public ApplicationGatewayUrlConfiguration withModifiedQueryString(String modifiedQueryString)

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.

withReroute

public ApplicationGatewayUrlConfiguration 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. Default value is false.

Parameters:

reroute - the reroute value to set.

Returns:

the ApplicationGatewayUrlConfiguration object itself.

Applies to