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

com.pulumi.gcp.networkservices.kotlin.outputs.EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRuleHeaderMatch.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.Boolean
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property exactMatch The value of the header should exactly match contents of exactMatch.
 * @property headerName The header name to match on.
 * @property invertMatch If set to false (default), the headerMatch is considered a match if the match criteria above are met.
 * If set to true, the headerMatch is considered a match if the match criteria above are NOT met.
 * @property prefixMatch The value of the header must start with the contents of prefixMatch.
 * @property presentMatch A header with the contents of headerName must exist. The match takes place whether or not the request's header has a value.
 * @property suffixMatch The value of the header must end with the contents of suffixMatch.
 */
public data class EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRuleHeaderMatch(
    public val exactMatch: String? = null,
    public val headerName: String,
    public val invertMatch: Boolean? = null,
    public val prefixMatch: String? = null,
    public val presentMatch: Boolean? = null,
    public val suffixMatch: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.networkservices.outputs.EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRuleHeaderMatch): EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRuleHeaderMatch =
            EdgeCacheServiceRoutingPathMatcherRouteRuleMatchRuleHeaderMatch(
                exactMatch = javaType.exactMatch().map({ args0 -> args0 }).orElse(null),
                headerName = javaType.headerName(),
                invertMatch = javaType.invertMatch().map({ args0 -> args0 }).orElse(null),
                prefixMatch = javaType.prefixMatch().map({ args0 -> args0 }).orElse(null),
                presentMatch = javaType.presentMatch().map({ args0 -> args0 }).orElse(null),
                suffixMatch = javaType.suffixMatch().map({ args0 -> args0 }).orElse(null),
            )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy