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

com.pulumi.gcp.networkservices.kotlin.outputs.HttpRouteRuleMatchHeader.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 match exactly the content of exactMatch.
 * @property header The name of the HTTP header to match against.
 * @property invertMatch If specified, the match result will be inverted before checking. Default value is set to false.
 * @property prefixMatch The value of the header must start with the contents of prefixMatch.
 * @property presentMatch A header with headerName must exist. The match takes place whether or not the header has a value.
 * @property rangeMatch If specified, the rule will match if the request header value is within the range.
 * Structure is documented below.
 * @property regexMatch The value of the header must match the regular expression specified in regexMatch.
 * @property suffixMatch The value of the header must end with the contents of suffixMatch.
 */
public data class HttpRouteRuleMatchHeader(
    public val exactMatch: String? = null,
    public val `header`: String? = null,
    public val invertMatch: Boolean? = null,
    public val prefixMatch: String? = null,
    public val presentMatch: Boolean? = null,
    public val rangeMatch: HttpRouteRuleMatchHeaderRangeMatch? = null,
    public val regexMatch: String? = null,
    public val suffixMatch: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.networkservices.outputs.HttpRouteRuleMatchHeader): HttpRouteRuleMatchHeader = HttpRouteRuleMatchHeader(
            exactMatch = javaType.exactMatch().map({ args0 -> args0 }).orElse(null),
            `header` = javaType.`header`().map({ args0 -> args0 }).orElse(null),
            invertMatch = javaType.invertMatch().map({ args0 -> args0 }).orElse(null),
            prefixMatch = javaType.prefixMatch().map({ args0 -> args0 }).orElse(null),
            presentMatch = javaType.presentMatch().map({ args0 -> args0 }).orElse(null),
            rangeMatch = javaType.rangeMatch().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.networkservices.kotlin.outputs.HttpRouteRuleMatchHeaderRangeMatch.Companion.toKotlin(args0)
                })
            }).orElse(null),
            regexMatch = javaType.regexMatch().map({ args0 -> args0 }).orElse(null),
            suffixMatch = javaType.suffixMatch().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy