com.pulumi.azure.network.kotlin.outputs.ApplicationGatewayRewriteRuleSetRewriteRuleUrl.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.network.kotlin.outputs
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
/**
*
* @property components The components used to rewrite the URL. Possible values are `path_only` and `query_string_only` to limit the rewrite to the URL Path or URL Query String only.
* > **Note:** One or both of `path` and `query_string` must be specified. If one of these is not specified, it means the value will be empty. If you only want to rewrite `path` or `query_string`, use `components`.
* @property path The URL path to rewrite.
* @property queryString The query string to rewrite.
* @property reroute Whether the URL path map should be reevaluated after this rewrite has been applied. [More info on rewrite configuration](https://docs.microsoft.com/azure/application-gateway/rewrite-http-headers-url#rewrite-configuration)
*/
public data class ApplicationGatewayRewriteRuleSetRewriteRuleUrl(
public val components: String? = null,
public val path: String? = null,
public val queryString: String? = null,
public val reroute: Boolean? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azure.network.outputs.ApplicationGatewayRewriteRuleSetRewriteRuleUrl): ApplicationGatewayRewriteRuleSetRewriteRuleUrl =
ApplicationGatewayRewriteRuleSetRewriteRuleUrl(
components = javaType.components().map({ args0 -> args0 }).orElse(null),
path = javaType.path().map({ args0 -> args0 }).orElse(null),
queryString = javaType.queryString().map({ args0 -> args0 }).orElse(null),
reroute = javaType.reroute().map({ args0 -> args0 }).orElse(null),
)
}
}