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

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.15.0.0
Show newest version
@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("krglynydbhkekbea")
    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("nipihgipwsghlnuo")
    public suspend fun defaultBackendAddressPoolName(`value`: Output) {
        this.defaultBackendAddressPoolName = value
    }

    /**
     * @param value The ID of the Default Backend HTTP Settings Collection.
     */
    @JvmName("kaokrnakqvymcasa")
    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("khflwxikgmbucgtq")
    public suspend fun defaultBackendHttpSettingsName(`value`: Output) {
        this.defaultBackendHttpSettingsName = value
    }

    /**
     * @param value The ID of the Default Redirect Configuration.
     */
    @JvmName("gkknujcvslboacda")
    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("nohsxfpbxbqwoyth")
    public suspend fun defaultRedirectConfigurationName(`value`: Output) {
        this.defaultRedirectConfigurationName = value
    }

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

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

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

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

    @JvmName("vkmqjmpegbsmgdws")
    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("xbqkgdtinyyytocs")
    public suspend fun pathRules(values: List>) {
        this.pathRules = Output.all(values)
    }

    /**
     * @param value The ID of the Default Backend Address Pool.
     */
    @JvmName("etjlyskcmfmgbkba")
    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("pjqwujfkwcivyble")
    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("ljrhpxmeeqtarwpt")
    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("kjyoaunxkefdvash")
    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("bmjdtbxqwlnikcux")
    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("rgxbuawekonfydju")
    public suspend fun defaultRedirectConfigurationName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.defaultRedirectConfigurationName = mapped
    }

    /**
     * @param value
     */
    @JvmName("xcstkuxfbkbjinwf")
    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("kwrijrvuwhxhgugm")
    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("thfwxkhlujmmdoxg")
    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("lkrywextvbjirdhw")
    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("gdyhguvrwbnyjadc")
    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("pmrxsqvpwsmnxlyt")
    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("fqedanvcmyjytayf")
    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("ckxvuaklcplostnw")
    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("fqcdoxdqwpweyijo")
    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