![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.vpclattice.kotlin.inputs.RuleMatchArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.vpclattice.kotlin.inputs
import com.pulumi.awsnative.vpclattice.inputs.RuleMatchArgs.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.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property httpMatch The HTTP criteria that a rule must match.
*/
public data class RuleMatchArgs(
public val httpMatch: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.vpclattice.inputs.RuleMatchArgs =
com.pulumi.awsnative.vpclattice.inputs.RuleMatchArgs.builder()
.httpMatch(httpMatch.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [RuleMatchArgs].
*/
@PulumiTagMarker
public class RuleMatchArgsBuilder internal constructor() {
private var httpMatch: Output? = null
/**
* @param value The HTTP criteria that a rule must match.
*/
@JvmName("qqblropvrstvebxd")
public suspend fun httpMatch(`value`: Output) {
this.httpMatch = value
}
/**
* @param value The HTTP criteria that a rule must match.
*/
@JvmName("ywewrldlfyevrhfy")
public suspend fun httpMatch(`value`: RuleHttpMatchArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.httpMatch = mapped
}
/**
* @param argument The HTTP criteria that a rule must match.
*/
@JvmName("kuatqppnliqhylge")
public suspend fun httpMatch(argument: suspend RuleHttpMatchArgsBuilder.() -> Unit) {
val toBeMapped = RuleHttpMatchArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.httpMatch = mapped
}
internal fun build(): RuleMatchArgs = RuleMatchArgs(
httpMatch = httpMatch ?: throw PulumiNullFieldException("httpMatch"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy