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

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

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

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

import com.pulumi.azure.network.inputs.ApplicationGatewayUrlPathMapPathRuleArgs.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 kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property backendAddressPoolId The ID of the associated Backend Address Pool.
 * @property backendAddressPoolName The Name of the Backend Address Pool to use for this Path Rule. Cannot be set if `redirect_configuration_name` is set.
 * @property backendHttpSettingsId The ID of the associated Backend HTTP Settings Configuration.
 * @property backendHttpSettingsName The Name of the Backend HTTP Settings Collection to use for this Path Rule. Cannot be set if `redirect_configuration_name` is set.
 * @property firewallPolicyId The ID of the Web Application Firewall Policy which should be used as an HTTP Listener.
 * @property id The ID of the Rewrite Rule Set
 * @property name The Name of the Path Rule.
 * @property paths A list of Paths used in this Path Rule.
 * @property redirectConfigurationId The ID of the associated Redirect Configuration.
 * @property redirectConfigurationName The Name of a Redirect Configuration to use for this Path Rule. Cannot be set if `backend_address_pool_name` or `backend_http_settings_name` is set.
 * @property rewriteRuleSetId The ID of the associated Rewrite Rule Set.
 * @property rewriteRuleSetName The Name of the Rewrite Rule Set which should be used for this URL Path Map. Only valid for v2 SKUs.
 */
public data class ApplicationGatewayUrlPathMapPathRuleArgs(
    public val backendAddressPoolId: Output? = null,
    public val backendAddressPoolName: Output? = null,
    public val backendHttpSettingsId: Output? = null,
    public val backendHttpSettingsName: Output? = null,
    public val firewallPolicyId: Output? = null,
    public val id: Output? = null,
    public val name: Output,
    public val paths: Output>,
    public val redirectConfigurationId: Output? = null,
    public val redirectConfigurationName: Output? = null,
    public val rewriteRuleSetId: Output? = null,
    public val rewriteRuleSetName: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.network.inputs.ApplicationGatewayUrlPathMapPathRuleArgs =
        com.pulumi.azure.network.inputs.ApplicationGatewayUrlPathMapPathRuleArgs.builder()
            .backendAddressPoolId(backendAddressPoolId?.applyValue({ args0 -> args0 }))
            .backendAddressPoolName(backendAddressPoolName?.applyValue({ args0 -> args0 }))
            .backendHttpSettingsId(backendHttpSettingsId?.applyValue({ args0 -> args0 }))
            .backendHttpSettingsName(backendHttpSettingsName?.applyValue({ args0 -> args0 }))
            .firewallPolicyId(firewallPolicyId?.applyValue({ args0 -> args0 }))
            .id(id?.applyValue({ args0 -> args0 }))
            .name(name.applyValue({ args0 -> args0 }))
            .paths(paths.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .redirectConfigurationId(redirectConfigurationId?.applyValue({ args0 -> args0 }))
            .redirectConfigurationName(redirectConfigurationName?.applyValue({ args0 -> args0 }))
            .rewriteRuleSetId(rewriteRuleSetId?.applyValue({ args0 -> args0 }))
            .rewriteRuleSetName(rewriteRuleSetName?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ApplicationGatewayUrlPathMapPathRuleArgs].
 */
@PulumiTagMarker
public class ApplicationGatewayUrlPathMapPathRuleArgsBuilder internal constructor() {
    private var backendAddressPoolId: Output? = null

    private var backendAddressPoolName: Output? = null

    private var backendHttpSettingsId: Output? = null

    private var backendHttpSettingsName: Output? = null

    private var firewallPolicyId: Output? = null

    private var id: Output? = null

    private var name: Output? = null

    private var paths: Output>? = null

    private var redirectConfigurationId: Output? = null

    private var redirectConfigurationName: Output? = null

    private var rewriteRuleSetId: Output? = null

    private var rewriteRuleSetName: Output? = null

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

    /**
     * @param value The Name of the Backend Address Pool to use for this Path Rule. Cannot be set if `redirect_configuration_name` is set.
     */
    @JvmName("vvumqshlbkvaastm")
    public suspend fun backendAddressPoolName(`value`: Output) {
        this.backendAddressPoolName = value
    }

    /**
     * @param value The ID of the associated Backend HTTP Settings Configuration.
     */
    @JvmName("kqbarjgjidtcwksp")
    public suspend fun backendHttpSettingsId(`value`: Output) {
        this.backendHttpSettingsId = value
    }

    /**
     * @param value The Name of the Backend HTTP Settings Collection to use for this Path Rule. Cannot be set if `redirect_configuration_name` is set.
     */
    @JvmName("dxsyggsqrtsxdeyg")
    public suspend fun backendHttpSettingsName(`value`: Output) {
        this.backendHttpSettingsName = value
    }

    /**
     * @param value The ID of the Web Application Firewall Policy which should be used as an HTTP Listener.
     */
    @JvmName("jmodhxcqdtesdmsi")
    public suspend fun firewallPolicyId(`value`: Output) {
        this.firewallPolicyId = value
    }

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

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

    /**
     * @param value A list of Paths used in this Path Rule.
     */
    @JvmName("cvgcmsssyqiangsa")
    public suspend fun paths(`value`: Output>) {
        this.paths = value
    }

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

    /**
     * @param values A list of Paths used in this Path Rule.
     */
    @JvmName("yfenyxaabqawwalh")
    public suspend fun paths(values: List>) {
        this.paths = Output.all(values)
    }

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

    /**
     * @param value The Name of a Redirect Configuration to use for this Path Rule. Cannot be set if `backend_address_pool_name` or `backend_http_settings_name` is set.
     */
    @JvmName("fbdgkyageolfaqpy")
    public suspend fun redirectConfigurationName(`value`: Output) {
        this.redirectConfigurationName = value
    }

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

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

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

    /**
     * @param value The Name of the Backend Address Pool to use for this Path Rule. Cannot be set if `redirect_configuration_name` is set.
     */
    @JvmName("mnjrrddjmunqlwii")
    public suspend fun backendAddressPoolName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.backendAddressPoolName = mapped
    }

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

    /**
     * @param value The Name of the Backend HTTP Settings Collection to use for this Path Rule. Cannot be set if `redirect_configuration_name` is set.
     */
    @JvmName("jitcdgmuotgxxuhn")
    public suspend fun backendHttpSettingsName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.backendHttpSettingsName = mapped
    }

    /**
     * @param value The ID of the Web Application Firewall Policy which should be used as an HTTP Listener.
     */
    @JvmName("kgxxlowqyphkrccm")
    public suspend fun firewallPolicyId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.firewallPolicyId = mapped
    }

    /**
     * @param value The ID of the Rewrite Rule Set
     */
    @JvmName("uuitmfiqhxaynebh")
    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 Path Rule.
     */
    @JvmName("amvrdttebhgtixgh")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value A list of Paths used in this Path Rule.
     */
    @JvmName("yvljvfrqelmhhwpy")
    public suspend fun paths(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.paths = mapped
    }

    /**
     * @param values A list of Paths used in this Path Rule.
     */
    @JvmName("xosnwyqqinjxguuo")
    public suspend fun paths(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.paths = mapped
    }

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

    /**
     * @param value The Name of a Redirect Configuration to use for this Path Rule. Cannot be set if `backend_address_pool_name` or `backend_http_settings_name` is set.
     */
    @JvmName("bbkwwaiqcvragldi")
    public suspend fun redirectConfigurationName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.redirectConfigurationName = mapped
    }

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

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

    internal fun build(): ApplicationGatewayUrlPathMapPathRuleArgs =
        ApplicationGatewayUrlPathMapPathRuleArgs(
            backendAddressPoolId = backendAddressPoolId,
            backendAddressPoolName = backendAddressPoolName,
            backendHttpSettingsId = backendHttpSettingsId,
            backendHttpSettingsName = backendHttpSettingsName,
            firewallPolicyId = firewallPolicyId,
            id = id,
            name = name ?: throw PulumiNullFieldException("name"),
            paths = paths ?: throw PulumiNullFieldException("paths"),
            redirectConfigurationId = redirectConfigurationId,
            redirectConfigurationName = redirectConfigurationName,
            rewriteRuleSetId = rewriteRuleSetId,
            rewriteRuleSetName = rewriteRuleSetName,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy