All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.networkservices.kotlin.outputs.GrpcRouteRuleMatch.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.networkservices.kotlin.outputs

import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @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 GrpcRouteRuleMatch(
    public val headers: List? = null,
    public val method: GrpcRouteRuleMatchMethod? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.networkservices.outputs.GrpcRouteRuleMatch): GrpcRouteRuleMatch = GrpcRouteRuleMatch(
            headers = javaType.headers().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.networkservices.kotlin.outputs.GrpcRouteRuleMatchHeader.Companion.toKotlin(args0)
                })
            }),
            method = javaType.method().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.networkservices.kotlin.outputs.GrpcRouteRuleMatchMethod.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy