com.pulumi.gcp.networkservices.kotlin.outputs.HttpRouteRuleMatch.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.outputs
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property fullPathMatch The HTTP request path value should exactly match this value.
* @property headers Specifies a list of HTTP request headers to match against.
* Structure is documented below.
* @property ignoreCase Specifies if prefixMatch and fullPathMatch matches are case sensitive. The default value is false.
* @property prefixMatch The HTTP request path value must begin with specified prefixMatch. prefixMatch must begin with a /.
* @property queryParameters Specifies a list of query parameters to match against.
* Structure is documented below.
* @property regexMatch The HTTP request path value must satisfy the regular expression specified by regexMatch after removing any query parameters and anchor supplied with the original URL. For regular expression grammar, please see https://github.com/google/re2/wiki/Syntax
*/
public data class HttpRouteRuleMatch(
public val fullPathMatch: String? = null,
public val headers: List? = null,
public val ignoreCase: Boolean? = null,
public val prefixMatch: String? = null,
public val queryParameters: List? = null,
public val regexMatch: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.networkservices.outputs.HttpRouteRuleMatch): HttpRouteRuleMatch = HttpRouteRuleMatch(
fullPathMatch = javaType.fullPathMatch().map({ args0 -> args0 }).orElse(null),
headers = javaType.headers().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.networkservices.kotlin.outputs.HttpRouteRuleMatchHeader.Companion.toKotlin(args0)
})
}),
ignoreCase = javaType.ignoreCase().map({ args0 -> args0 }).orElse(null),
prefixMatch = javaType.prefixMatch().map({ args0 -> args0 }).orElse(null),
queryParameters = javaType.queryParameters().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.networkservices.kotlin.outputs.HttpRouteRuleMatchQueryParameter.Companion.toKotlin(args0)
})
}),
regexMatch = javaType.regexMatch().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy