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

com.pulumi.gcp.compute.kotlin.inputs.RegionUrlMapPathMatcherRouteRuleMatchRuleQueryParameterMatchArgs.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.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.compute.inputs.RegionUrlMapPathMatcherRouteRuleMatchRuleQueryParameterMatchArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @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 RegionUrlMapPathMatcherRouteRuleMatchRuleQueryParameterMatchArgs(
    public val exactMatch: Output? = null,
    public val name: Output,
    public val presentMatch: Output? = null,
    public val regexMatch: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.compute.inputs.RegionUrlMapPathMatcherRouteRuleMatchRuleQueryParameterMatchArgs =
        com.pulumi.gcp.compute.inputs.RegionUrlMapPathMatcherRouteRuleMatchRuleQueryParameterMatchArgs.builder()
            .exactMatch(exactMatch?.applyValue({ args0 -> args0 }))
            .name(name.applyValue({ args0 -> args0 }))
            .presentMatch(presentMatch?.applyValue({ args0 -> args0 }))
            .regexMatch(regexMatch?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [RegionUrlMapPathMatcherRouteRuleMatchRuleQueryParameterMatchArgs].
 */
@PulumiTagMarker
public class RegionUrlMapPathMatcherRouteRuleMatchRuleQueryParameterMatchArgsBuilder internal constructor() {
    private var exactMatch: Output? = null

    private var name: Output? = null

    private var presentMatch: Output? = null

    private var regexMatch: Output? = null

    /**
     * @param value 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.
     */
    @JvmName("eddwqtfhfmqbtbvy")
    public suspend fun exactMatch(`value`: Output) {
        this.exactMatch = value
    }

    /**
     * @param value 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.
     */
    @JvmName("fpioykcprtdmxngn")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value 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.
     */
    @JvmName("xlemrxvcslkuosjr")
    public suspend fun presentMatch(`value`: Output) {
        this.presentMatch = value
    }

    /**
     * @param value 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.
     */
    @JvmName("argaoicuevbewpsn")
    public suspend fun regexMatch(`value`: Output) {
        this.regexMatch = value
    }

    /**
     * @param value 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.
     */
    @JvmName("bjubtmdhmhnakmhy")
    public suspend fun exactMatch(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.exactMatch = mapped
    }

    /**
     * @param value 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.
     */
    @JvmName("ouwnfohgyakyeoov")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value 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.
     */
    @JvmName("xvwpyofaeogipoqw")
    public suspend fun presentMatch(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.presentMatch = mapped
    }

    /**
     * @param value 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.
     */
    @JvmName("ppybgqknaugucfjd")
    public suspend fun regexMatch(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.regexMatch = mapped
    }

    internal fun build(): RegionUrlMapPathMatcherRouteRuleMatchRuleQueryParameterMatchArgs =
        RegionUrlMapPathMatcherRouteRuleMatchRuleQueryParameterMatchArgs(
            exactMatch = exactMatch,
            name = name ?: throw PulumiNullFieldException("name"),
            presentMatch = presentMatch,
            regexMatch = regexMatch,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy