com.pulumi.aws.appmesh.kotlin.inputs.GatewayRouteSpecHttp2RouteArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-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.aws.appmesh.kotlin.inputs
import com.pulumi.aws.appmesh.inputs.GatewayRouteSpecHttp2RouteArgs.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 action Action to take if a match is determined.
* @property match Criteria for determining a request match.
*/
public data class GatewayRouteSpecHttp2RouteArgs(
public val action: Output,
public val match: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.appmesh.inputs.GatewayRouteSpecHttp2RouteArgs =
com.pulumi.aws.appmesh.inputs.GatewayRouteSpecHttp2RouteArgs.builder()
.action(action.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.match(match.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [GatewayRouteSpecHttp2RouteArgs].
*/
@PulumiTagMarker
public class GatewayRouteSpecHttp2RouteArgsBuilder internal constructor() {
private var action: Output? = null
private var match: Output? = null
/**
* @param value Action to take if a match is determined.
*/
@JvmName("slfigpkkwgbpphag")
public suspend fun action(`value`: Output) {
this.action = value
}
/**
* @param value Criteria for determining a request match.
*/
@JvmName("pwkeuiwlrunoprna")
public suspend fun match(`value`: Output) {
this.match = value
}
/**
* @param value Action to take if a match is determined.
*/
@JvmName("ldkerhjgwekvrsad")
public suspend fun action(`value`: GatewayRouteSpecHttp2RouteActionArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.action = mapped
}
/**
* @param argument Action to take if a match is determined.
*/
@JvmName("rspbkcqsaswvhxni")
public suspend fun action(argument: suspend GatewayRouteSpecHttp2RouteActionArgsBuilder.() -> Unit) {
val toBeMapped = GatewayRouteSpecHttp2RouteActionArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.action = mapped
}
/**
* @param value Criteria for determining a request match.
*/
@JvmName("forlcuewxrlcrkaf")
public suspend fun match(`value`: GatewayRouteSpecHttp2RouteMatchArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.match = mapped
}
/**
* @param argument Criteria for determining a request match.
*/
@JvmName("kuayrvgnksgkkwnm")
public suspend fun match(argument: suspend GatewayRouteSpecHttp2RouteMatchArgsBuilder.() -> Unit) {
val toBeMapped = GatewayRouteSpecHttp2RouteMatchArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.match = mapped
}
internal fun build(): GatewayRouteSpecHttp2RouteArgs = GatewayRouteSpecHttp2RouteArgs(
action = action ?: throw PulumiNullFieldException("action"),
match = match ?: throw PulumiNullFieldException("match"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy