com.pulumi.gcp.networkservices.kotlin.inputs.EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRuleHeaderMatchArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.networkservices.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.networkservices.inputs.EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRuleHeaderMatchArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property exactMatch The value of the header should exactly match contents of exactMatch.
* @property headerName The header name to match on.
* @property invertMatch If set to false (default), the headerMatch is considered a match if the match criteria above are met.
* If set to true, the headerMatch is considered a match if the match criteria above are NOT met.
* @property prefixMatch The value of the header must start with the contents of prefixMatch.
* @property presentMatch A header with the contents of headerName must exist. The match takes place whether or not the request's header has a value.
* @property suffixMatch The value of the header must end with the contents of suffixMatch.
*/
public data class EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRuleHeaderMatchArgs(
public val exactMatch: Output? = null,
public val headerName: Output,
public val invertMatch: Output? = null,
public val prefixMatch: Output? = null,
public val presentMatch: Output? = null,
public val suffixMatch: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.networkservices.inputs.EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRuleHeaderMatchArgs =
com.pulumi.gcp.networkservices.inputs.EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRuleHeaderMatchArgs.builder()
.exactMatch(exactMatch?.applyValue({ args0 -> args0 }))
.headerName(headerName.applyValue({ args0 -> args0 }))
.invertMatch(invertMatch?.applyValue({ args0 -> args0 }))
.prefixMatch(prefixMatch?.applyValue({ args0 -> args0 }))
.presentMatch(presentMatch?.applyValue({ args0 -> args0 }))
.suffixMatch(suffixMatch?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRuleHeaderMatchArgs].
*/
@PulumiTagMarker
public class EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRuleHeaderMatchArgsBuilder internal constructor() {
private var exactMatch: Output? = null
private var headerName: Output? = null
private var invertMatch: Output? = null
private var prefixMatch: Output? = null
private var presentMatch: Output? = null
private var suffixMatch: Output? = null
/**
* @param value The value of the header should exactly match contents of exactMatch.
*/
@JvmName("qtlssefpuvfivtwi")
public suspend fun exactMatch(`value`: Output) {
this.exactMatch = value
}
/**
* @param value The header name to match on.
*/
@JvmName("mwdmgjuuawwcsdqh")
public suspend fun headerName(`value`: Output) {
this.headerName = value
}
/**
* @param value If set to false (default), the headerMatch is considered a match if the match criteria above are met.
* If set to true, the headerMatch is considered a match if the match criteria above are NOT met.
*/
@JvmName("ykvbpyheugoybbpv")
public suspend fun invertMatch(`value`: Output) {
this.invertMatch = value
}
/**
* @param value The value of the header must start with the contents of prefixMatch.
*/
@JvmName("nbujuceuglorklls")
public suspend fun prefixMatch(`value`: Output) {
this.prefixMatch = value
}
/**
* @param value A header with the contents of headerName must exist. The match takes place whether or not the request's header has a value.
*/
@JvmName("wndnpuafvdugfbum")
public suspend fun presentMatch(`value`: Output) {
this.presentMatch = value
}
/**
* @param value The value of the header must end with the contents of suffixMatch.
*/
@JvmName("iigjodisushiufxs")
public suspend fun suffixMatch(`value`: Output) {
this.suffixMatch = value
}
/**
* @param value The value of the header should exactly match contents of exactMatch.
*/
@JvmName("cnrocscbtbddhrcl")
public suspend fun exactMatch(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.exactMatch = mapped
}
/**
* @param value The header name to match on.
*/
@JvmName("leunvkftoitpspkh")
public suspend fun headerName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.headerName = mapped
}
/**
* @param value If set to false (default), the headerMatch is considered a match if the match criteria above are met.
* If set to true, the headerMatch is considered a match if the match criteria above are NOT met.
*/
@JvmName("qdjmcecskpcwvica")
public suspend fun invertMatch(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.invertMatch = mapped
}
/**
* @param value The value of the header must start with the contents of prefixMatch.
*/
@JvmName("fgatfxebttrmqbsb")
public suspend fun prefixMatch(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.prefixMatch = mapped
}
/**
* @param value A header with the contents of headerName must exist. The match takes place whether or not the request's header has a value.
*/
@JvmName("hbcmwfihlghgcqbs")
public suspend fun presentMatch(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.presentMatch = mapped
}
/**
* @param value The value of the header must end with the contents of suffixMatch.
*/
@JvmName("nbpmdhmtxxngnpbm")
public suspend fun suffixMatch(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.suffixMatch = mapped
}
internal fun build(): EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRuleHeaderMatchArgs =
EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRuleHeaderMatchArgs(
exactMatch = exactMatch,
headerName = headerName ?: throw PulumiNullFieldException("headerName"),
invertMatch = invertMatch,
prefixMatch = prefixMatch,
presentMatch = presentMatch,
suffixMatch = suffixMatch,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy