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

com.pulumi.gcp.compute.kotlin.outputs.RegionUrlMapPathMatcherRouteRuleMatchRuleQueryParameterMatch.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.compute.kotlin.outputs

import kotlin.Boolean
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property exactMatch The queryParameterMatch matches if the value of the parameter exactly matches
 * the contents of exactMatch. Only one of presentMatch, exactMatch and regexMatch
 * must be set.
 * @property name The name of the query parameter to match. The query parameter must exist in the
 * request, in the absence of which the request match fails.
 * @property presentMatch Specifies that the queryParameterMatch matches if the request contains the query
 * parameter, irrespective of whether the parameter has a value or not. Only one of
 * presentMatch, exactMatch and regexMatch must be set.
 * @property regexMatch The queryParameterMatch matches if the value of the parameter matches the
 * regular expression specified by regexMatch. For the regular expression grammar,
 * please see en.cppreference.com/w/cpp/regex/ecmascript  Only one of presentMatch,
 * exactMatch and regexMatch must be set.
 */
public data class RegionUrlMapPathMatcherRouteRuleMatchRuleQueryParameterMatch(
    public val exactMatch: String? = null,
    public val name: String,
    public val presentMatch: Boolean? = null,
    public val regexMatch: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.RegionUrlMapPathMatcherRouteRuleMatchRuleQueryParameterMatch): RegionUrlMapPathMatcherRouteRuleMatchRuleQueryParameterMatch =
            RegionUrlMapPathMatcherRouteRuleMatchRuleQueryParameterMatch(
                exactMatch = javaType.exactMatch().map({ args0 -> args0 }).orElse(null),
                name = javaType.name(),
                presentMatch = javaType.presentMatch().map({ args0 -> args0 }).orElse(null),
                regexMatch = javaType.regexMatch().map({ args0 -> args0 }).orElse(null),
            )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy