All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azure.network.kotlin.inputs.ApplicationGatewayRewriteRuleSetRewriteRuleUrlArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.network.kotlin.inputs

import com.pulumi.azure.network.inputs.ApplicationGatewayRewriteRuleSetRewriteRuleUrlArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @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 ApplicationGatewayRewriteRuleSetRewriteRuleUrlArgs(
    public val components: Output? = null,
    public val path: Output? = null,
    public val queryString: Output? = null,
    public val reroute: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava():
        com.pulumi.azure.network.inputs.ApplicationGatewayRewriteRuleSetRewriteRuleUrlArgs =
        com.pulumi.azure.network.inputs.ApplicationGatewayRewriteRuleSetRewriteRuleUrlArgs.builder()
            .components(components?.applyValue({ args0 -> args0 }))
            .path(path?.applyValue({ args0 -> args0 }))
            .queryString(queryString?.applyValue({ args0 -> args0 }))
            .reroute(reroute?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ApplicationGatewayRewriteRuleSetRewriteRuleUrlArgs].
 */
@PulumiTagMarker
public class ApplicationGatewayRewriteRuleSetRewriteRuleUrlArgsBuilder internal constructor() {
    private var components: Output? = null

    private var path: Output? = null

    private var queryString: Output? = null

    private var reroute: Output? = null

    /**
     * @param value 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`.
     */
    @JvmName("lecrbmdjuppnfgde")
    public suspend fun components(`value`: Output) {
        this.components = value
    }

    /**
     * @param value The URL path to rewrite.
     */
    @JvmName("lekbbeqttskbrkbk")
    public suspend fun path(`value`: Output) {
        this.path = value
    }

    /**
     * @param value The query string to rewrite.
     */
    @JvmName("ikrhsrhgjgtloexe")
    public suspend fun queryString(`value`: Output) {
        this.queryString = value
    }

    /**
     * @param value 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)
     */
    @JvmName("hiwbgqothxrnucvi")
    public suspend fun reroute(`value`: Output) {
        this.reroute = value
    }

    /**
     * @param value 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`.
     */
    @JvmName("jlwohcyabdehbyaf")
    public suspend fun components(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.components = mapped
    }

    /**
     * @param value The URL path to rewrite.
     */
    @JvmName("nbstsilndacfchda")
    public suspend fun path(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.path = mapped
    }

    /**
     * @param value The query string to rewrite.
     */
    @JvmName("hxtmvsnqebfstcnl")
    public suspend fun queryString(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.queryString = mapped
    }

    /**
     * @param value 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)
     */
    @JvmName("rmagxndtahdcohdc")
    public suspend fun reroute(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.reroute = mapped
    }

    internal fun build(): ApplicationGatewayRewriteRuleSetRewriteRuleUrlArgs =
        ApplicationGatewayRewriteRuleSetRewriteRuleUrlArgs(
            components = components,
            path = path,
            queryString = queryString,
            reroute = reroute,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy