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