ApplicationGatewayUrlConfiguration.java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.network.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Url configuration of the Actions set in Application Gateway. */
@Fluent
public final class ApplicationGatewayUrlConfiguration {
@JsonIgnore private final ClientLogger logger = new ClientLogger(ApplicationGatewayUrlConfiguration.class);
/*
* Url path which user has provided for url rewrite. Null means no path
* will be updated. Default value is null.
*/
@JsonProperty(value = "modifiedPath")
private String modifiedPath;
/*
* Query string which user has provided for url rewrite. Null means no
* query string will be updated. Default value is null.
*/
@JsonProperty(value = "modifiedQueryString")
private String modifiedQueryString;
/*
* 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.
*/
@JsonProperty(value = "reroute")
private Boolean reroute;
/**
* Get the modifiedPath property: Url path which user has provided for url rewrite. Null means no path will be
* updated. Default value is null.
*
* @return the modifiedPath value.
*/
public String modifiedPath() {
return this.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.
*
* @param modifiedPath the modifiedPath value to set.
* @return the ApplicationGatewayUrlConfiguration object itself.
*/
public ApplicationGatewayUrlConfiguration withModifiedPath(String modifiedPath) {
this.modifiedPath = modifiedPath;
return this;
}
/**
* 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.
*
* @return the modifiedQueryString value.
*/
public String modifiedQueryString() {
return this.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.
*
* @param modifiedQueryString the modifiedQueryString value to set.
* @return the ApplicationGatewayUrlConfiguration object itself.
*/
public ApplicationGatewayUrlConfiguration withModifiedQueryString(String modifiedQueryString) {
this.modifiedQueryString = modifiedQueryString;
return this;
}
/**
* 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.
*
* @return the reroute value.
*/
public Boolean reroute() {
return this.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.
*
* @param reroute the reroute value to set.
* @return the ApplicationGatewayUrlConfiguration object itself.
*/
public ApplicationGatewayUrlConfiguration withReroute(Boolean reroute) {
this.reroute = reroute;
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
}
}