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

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

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

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

import com.pulumi.azure.network.inputs.ApplicationGatewayUrlPathMapArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property defaultBackendAddressPoolId The ID of the Default Backend Address Pool.
 * @property defaultBackendAddressPoolName The Name of the Default Backend Address Pool which should be used for this URL Path Map. Cannot be set if `default_redirect_configuration_name` is set.
 * @property defaultBackendHttpSettingsId The ID of the Default Backend HTTP Settings Collection.
 * @property defaultBackendHttpSettingsName The Name of the Default Backend HTTP Settings Collection which should be used for this URL Path Map. Cannot be set if `default_redirect_configuration_name` is set.
 * @property defaultRedirectConfigurationId The ID of the Default Redirect Configuration.
 * @property defaultRedirectConfigurationName The Name of the Default Redirect Configuration which should be used for this URL Path Map. Cannot be set if either `default_backend_address_pool_name` or `default_backend_http_settings_name` is set.
 * > **NOTE:** Both `default_backend_address_pool_name` and `default_backend_http_settings_name` or `default_redirect_configuration_name` should be specified.
 * @property defaultRewriteRuleSetId
 * @property defaultRewriteRuleSetName The Name of the Default Rewrite Rule Set which should be used for this URL Path Map. Only valid for v2 SKUs.
 * @property id The ID of the Rewrite Rule Set
 * @property name The Name of the URL Path Map.
 * @property pathRules One or more `path_rule` blocks as defined above.
 */
public data class ApplicationGatewayUrlPathMapArgs(
    public val defaultBackendAddressPoolId: Output? = null,
    public val defaultBackendAddressPoolName: Output? = null,
    public val defaultBackendHttpSettingsId: Output? = null,
    public val defaultBackendHttpSettingsName: Output? = null,
    public val defaultRedirectConfigurationId: Output? = null,
    public val defaultRedirectConfigurationName: Output? = null,
    public val defaultRewriteRuleSetId: Output? = null,
    public val defaultRewriteRuleSetName: Output? = null,
    public val id: Output? = null,
    public val name: Output,
    public val pathRules: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.network.inputs.ApplicationGatewayUrlPathMapArgs =
        com.pulumi.azure.network.inputs.ApplicationGatewayUrlPathMapArgs.builder()
            .defaultBackendAddressPoolId(defaultBackendAddressPoolId?.applyValue({ args0 -> args0 }))
            .defaultBackendAddressPoolName(defaultBackendAddressPoolName?.applyValue({ args0 -> args0 }))
            .defaultBackendHttpSettingsId(defaultBackendHttpSettingsId?.applyValue({ args0 -> args0 }))
            .defaultBackendHttpSettingsName(defaultBackendHttpSettingsName?.applyValue({ args0 -> args0 }))
            .defaultRedirectConfigurationId(defaultRedirectConfigurationId?.applyValue({ args0 -> args0 }))
            .defaultRedirectConfigurationName(defaultRedirectConfigurationName?.applyValue({ args0 -> args0 }))
            .defaultRewriteRuleSetId(defaultRewriteRuleSetId?.applyValue({ args0 -> args0 }))
            .defaultRewriteRuleSetName(defaultRewriteRuleSetName?.applyValue({ args0 -> args0 }))
            .id(id?.applyValue({ args0 -> args0 }))
            .name(name.applyValue({ args0 -> args0 }))
            .pathRules(
                pathRules.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [ApplicationGatewayUrlPathMapArgs].
 */
@PulumiTagMarker
public class ApplicationGatewayUrlPathMapArgsBuilder internal constructor() {
    private var defaultBackendAddressPoolId: Output? = null

    private var defaultBackendAddressPoolName: Output? = null

    private var defaultBackendHttpSettingsId: Output? = null

    private var defaultBackendHttpSettingsName: Output? = null

    private var defaultRedirectConfigurationId: Output? = null

    private var defaultRedirectConfigurationName: Output? = null

    private var defaultRewriteRuleSetId: Output? = null

    private var defaultRewriteRuleSetName: Output? = null

    private var id: Output? = null

    private var name: Output? = null

    private var pathRules: Output>? = null

    /**
     * @param value The ID of the Default Backend Address Pool.
     */
    @JvmName("dfvhfeymvwikgcaj")
    public suspend fun defaultBackendAddressPoolId(`value`: Output) {
        this.defaultBackendAddressPoolId = value
    }

    /**
     * @param value The Name of the Default Backend Address Pool which should be used for this URL Path Map. Cannot be set if `default_redirect_configuration_name` is set.
     */
    @JvmName("ebhkwrmddagjvaxc")
    public suspend fun defaultBackendAddressPoolName(`value`: Output) {
        this.defaultBackendAddressPoolName = value
    }

    /**
     * @param value The ID of the Default Backend HTTP Settings Collection.
     */
    @JvmName("yvmhhkxmdovakfjh")
    public suspend fun defaultBackendHttpSettingsId(`value`: Output) {
        this.defaultBackendHttpSettingsId = value
    }

    /**
     * @param value The Name of the Default Backend HTTP Settings Collection which should be used for this URL Path Map. Cannot be set if `default_redirect_configuration_name` is set.
     */
    @JvmName("ocqvvhtotfhjhoqt")
    public suspend fun defaultBackendHttpSettingsName(`value`: Output) {
        this.defaultBackendHttpSettingsName = value
    }

    /**
     * @param value The ID of the Default Redirect Configuration.
     */
    @JvmName("hxxvffnamebmghnj")
    public suspend fun defaultRedirectConfigurationId(`value`: Output) {
        this.defaultRedirectConfigurationId = value
    }

    /**
     * @param value The Name of the Default Redirect Configuration which should be used for this URL Path Map. Cannot be set if either `default_backend_address_pool_name` or `default_backend_http_settings_name` is set.
     * > **NOTE:** Both `default_backend_address_pool_name` and `default_backend_http_settings_name` or `default_redirect_configuration_name` should be specified.
     */
    @JvmName("kytdpdtfrihhdkje")
    public suspend fun defaultRedirectConfigurationName(`value`: Output) {
        this.defaultRedirectConfigurationName = value
    }

    /**
     * @param value
     */
    @JvmName("vpjqssfqnxtncysy")
    public suspend fun defaultRewriteRuleSetId(`value`: Output) {
        this.defaultRewriteRuleSetId = value
    }

    /**
     * @param value The Name of the Default Rewrite Rule Set which should be used for this URL Path Map. Only valid for v2 SKUs.
     */
    @JvmName("binvmdhdtncfsvhf")
    public suspend fun defaultRewriteRuleSetName(`value`: Output) {
        this.defaultRewriteRuleSetName = value
    }

    /**
     * @param value The ID of the Rewrite Rule Set
     */
    @JvmName("knpxrahfhsjmejpd")
    public suspend fun id(`value`: Output) {
        this.id = value
    }

    /**
     * @param value The Name of the URL Path Map.
     */
    @JvmName("wmdkyltibfafgxvk")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value One or more `path_rule` blocks as defined above.
     */
    @JvmName("pcppkhabxryvwjsv")
    public suspend fun pathRules(`value`: Output>) {
        this.pathRules = value
    }

    @JvmName("ejqdkholgqdqvvag")
    public suspend fun pathRules(vararg values: Output) {
        this.pathRules = Output.all(values.asList())
    }

    /**
     * @param values One or more `path_rule` blocks as defined above.
     */
    @JvmName("oejoqvaoqgdvgixr")
    public suspend fun pathRules(values: List>) {
        this.pathRules = Output.all(values)
    }

    /**
     * @param value The ID of the Default Backend Address Pool.
     */
    @JvmName("skgvduxaeclsxiqc")
    public suspend fun defaultBackendAddressPoolId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.defaultBackendAddressPoolId = mapped
    }

    /**
     * @param value The Name of the Default Backend Address Pool which should be used for this URL Path Map. Cannot be set if `default_redirect_configuration_name` is set.
     */
    @JvmName("ffijqxlasrnblkfn")
    public suspend fun defaultBackendAddressPoolName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.defaultBackendAddressPoolName = mapped
    }

    /**
     * @param value The ID of the Default Backend HTTP Settings Collection.
     */
    @JvmName("sbsbqndruqtvlwne")
    public suspend fun defaultBackendHttpSettingsId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.defaultBackendHttpSettingsId = mapped
    }

    /**
     * @param value The Name of the Default Backend HTTP Settings Collection which should be used for this URL Path Map. Cannot be set if `default_redirect_configuration_name` is set.
     */
    @JvmName("qeawbgutuxvqldmq")
    public suspend fun defaultBackendHttpSettingsName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.defaultBackendHttpSettingsName = mapped
    }

    /**
     * @param value The ID of the Default Redirect Configuration.
     */
    @JvmName("yvsweboxqrdlbfta")
    public suspend fun defaultRedirectConfigurationId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.defaultRedirectConfigurationId = mapped
    }

    /**
     * @param value The Name of the Default Redirect Configuration which should be used for this URL Path Map. Cannot be set if either `default_backend_address_pool_name` or `default_backend_http_settings_name` is set.
     * > **NOTE:** Both `default_backend_address_pool_name` and `default_backend_http_settings_name` or `default_redirect_configuration_name` should be specified.
     */
    @JvmName("uncewwqkpplycaua")
    public suspend fun defaultRedirectConfigurationName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.defaultRedirectConfigurationName = mapped
    }

    /**
     * @param value
     */
    @JvmName("ofkfcdssiwvlwsgv")
    public suspend fun defaultRewriteRuleSetId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.defaultRewriteRuleSetId = mapped
    }

    /**
     * @param value The Name of the Default Rewrite Rule Set which should be used for this URL Path Map. Only valid for v2 SKUs.
     */
    @JvmName("iqnfipgbclrprext")
    public suspend fun defaultRewriteRuleSetName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.defaultRewriteRuleSetName = mapped
    }

    /**
     * @param value The ID of the Rewrite Rule Set
     */
    @JvmName("xvhbsaurpfvxohtv")
    public suspend fun id(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.id = mapped
    }

    /**
     * @param value The Name of the URL Path Map.
     */
    @JvmName("oaljtlusomkyaxkr")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value One or more `path_rule` blocks as defined above.
     */
    @JvmName("xgvhabrilkxqeiva")
    public suspend fun pathRules(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.pathRules = mapped
    }

    /**
     * @param argument One or more `path_rule` blocks as defined above.
     */
    @JvmName("dytjfmxwsqxvvrfd")
    public suspend fun pathRules(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ApplicationGatewayUrlPathMapPathRuleArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.pathRules = mapped
    }

    /**
     * @param argument One or more `path_rule` blocks as defined above.
     */
    @JvmName("hbjgtbdjimmrmfjg")
    public suspend fun pathRules(vararg argument: suspend ApplicationGatewayUrlPathMapPathRuleArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ApplicationGatewayUrlPathMapPathRuleArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.pathRules = mapped
    }

    /**
     * @param argument One or more `path_rule` blocks as defined above.
     */
    @JvmName("ihnlovwewgeexngs")
    public suspend fun pathRules(argument: suspend ApplicationGatewayUrlPathMapPathRuleArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ApplicationGatewayUrlPathMapPathRuleArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.pathRules = mapped
    }

    /**
     * @param values One or more `path_rule` blocks as defined above.
     */
    @JvmName("youtnvuckgihsfbp")
    public suspend fun pathRules(vararg values: ApplicationGatewayUrlPathMapPathRuleArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.pathRules = mapped
    }

    internal fun build(): ApplicationGatewayUrlPathMapArgs = ApplicationGatewayUrlPathMapArgs(
        defaultBackendAddressPoolId = defaultBackendAddressPoolId,
        defaultBackendAddressPoolName = defaultBackendAddressPoolName,
        defaultBackendHttpSettingsId = defaultBackendHttpSettingsId,
        defaultBackendHttpSettingsName = defaultBackendHttpSettingsName,
        defaultRedirectConfigurationId = defaultRedirectConfigurationId,
        defaultRedirectConfigurationName = defaultRedirectConfigurationName,
        defaultRewriteRuleSetId = defaultRewriteRuleSetId,
        defaultRewriteRuleSetName = defaultRewriteRuleSetName,
        id = id,
        name = name ?: throw PulumiNullFieldException("name"),
        pathRules = pathRules ?: throw PulumiNullFieldException("pathRules"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy