com.pulumi.gcp.networkservices.kotlin.inputs.GrpcRouteRuleMatchArgs.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.GrpcRouteRuleMatchArgs.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 headers Specifies a list of HTTP request headers to match against.
* Structure is documented below.
* @property method A gRPC method to match against. If this field is empty or omitted, will match all methods.
* Structure is documented below.
*/
public data class GrpcRouteRuleMatchArgs(
public val headers: Output>? = null,
public val method: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.networkservices.inputs.GrpcRouteRuleMatchArgs =
com.pulumi.gcp.networkservices.inputs.GrpcRouteRuleMatchArgs.builder()
.headers(
headers?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.method(method?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [GrpcRouteRuleMatchArgs].
*/
@PulumiTagMarker
public class GrpcRouteRuleMatchArgsBuilder internal constructor() {
private var headers: Output>? = null
private var method: Output? = null
/**
* @param value Specifies a list of HTTP request headers to match against.
* Structure is documented below.
*/
@JvmName("esircxicfsffkrpn")
public suspend fun headers(`value`: Output>) {
this.headers = value
}
@JvmName("uhrxjfegdjytimwc")
public suspend fun headers(vararg values: Output) {
this.headers = Output.all(values.asList())
}
/**
* @param values Specifies a list of HTTP request headers to match against.
* Structure is documented below.
*/
@JvmName("dhopmmvxowreywcw")
public suspend fun headers(values: List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy