com.pulumi.gcp.networkservices.kotlin.inputs.GrpcRouteRuleArgs.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.GrpcRouteRuleArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property action Required. A detailed rule defining how to route traffic.
* Structure is documented below.
* @property matches Matches define conditions used for matching the rule against incoming gRPC requests.
* Structure is documented below.
*/
public data class GrpcRouteRuleArgs(
public val action: Output? = null,
public val matches: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.networkservices.inputs.GrpcRouteRuleArgs =
com.pulumi.gcp.networkservices.inputs.GrpcRouteRuleArgs.builder()
.action(action?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.matches(
matches?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [GrpcRouteRuleArgs].
*/
@PulumiTagMarker
public class GrpcRouteRuleArgsBuilder internal constructor() {
private var action: Output? = null
private var matches: Output>? = null
/**
* @param value Required. A detailed rule defining how to route traffic.
* Structure is documented below.
*/
@JvmName("yfwsnwfbhkjuvgoo")
public suspend fun action(`value`: Output) {
this.action = value
}
/**
* @param value Matches define conditions used for matching the rule against incoming gRPC requests.
* Structure is documented below.
*/
@JvmName("udvdsogvlkwqeidm")
public suspend fun matches(`value`: Output>) {
this.matches = value
}
@JvmName("jekpxmgjisxryqsr")
public suspend fun matches(vararg values: Output) {
this.matches = Output.all(values.asList())
}
/**
* @param values Matches define conditions used for matching the rule against incoming gRPC requests.
* Structure is documented below.
*/
@JvmName("gbfelhixfauwerxa")
public suspend fun matches(values: List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy