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

com.pulumi.gcp.dataloss.kotlin.inputs.PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleRegexArgs.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.dataloss.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.dataloss.inputs.PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleRegexArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property groupIndexes The index of the submatch to extract as findings. When not specified, the entire match is returned. No more than 3 may be included.
 * @property pattern Pattern defining the regular expression.
 * Its syntax (https://github.com/google/re2/wiki/Syntax) can be found under the google/re2 repository on GitHub.
 */
public data class PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleRegexArgs(
    public val groupIndexes: Output>? = null,
    public val pattern: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataloss.inputs.PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleRegexArgs =
        com.pulumi.gcp.dataloss.inputs.PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleRegexArgs.builder()
            .groupIndexes(groupIndexes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .pattern(pattern.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleRegexArgs].
 */
@PulumiTagMarker
public class PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleRegexArgsBuilder internal constructor() {
    private var groupIndexes: Output>? = null

    private var pattern: Output? = null

    /**
     * @param value The index of the submatch to extract as findings. When not specified, the entire match is returned. No more than 3 may be included.
     */
    @JvmName("ojksdnsxdyqtvoww")
    public suspend fun groupIndexes(`value`: Output>) {
        this.groupIndexes = value
    }

    @JvmName("xlpmytytkismpxld")
    public suspend fun groupIndexes(vararg values: Output) {
        this.groupIndexes = Output.all(values.asList())
    }

    /**
     * @param values The index of the submatch to extract as findings. When not specified, the entire match is returned. No more than 3 may be included.
     */
    @JvmName("ovyshjtoetjyooce")
    public suspend fun groupIndexes(values: List>) {
        this.groupIndexes = Output.all(values)
    }

    /**
     * @param value Pattern defining the regular expression.
     * Its syntax (https://github.com/google/re2/wiki/Syntax) can be found under the google/re2 repository on GitHub.
     */
    @JvmName("jscrdxiytxsuxqqa")
    public suspend fun pattern(`value`: Output) {
        this.pattern = value
    }

    /**
     * @param value The index of the submatch to extract as findings. When not specified, the entire match is returned. No more than 3 may be included.
     */
    @JvmName("mrkyfygusrvdwinw")
    public suspend fun groupIndexes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.groupIndexes = mapped
    }

    /**
     * @param values The index of the submatch to extract as findings. When not specified, the entire match is returned. No more than 3 may be included.
     */
    @JvmName("bfsuagvofhpajcud")
    public suspend fun groupIndexes(vararg values: Int) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.groupIndexes = mapped
    }

    /**
     * @param value Pattern defining the regular expression.
     * Its syntax (https://github.com/google/re2/wiki/Syntax) can be found under the google/re2 repository on GitHub.
     */
    @JvmName("eakxoofhtwbujvab")
    public suspend fun pattern(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.pattern = mapped
    }

    internal fun build(): PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleRegexArgs =
        PreventionInspectTemplateInspectConfigRuleSetRuleExclusionRuleRegexArgs(
            groupIndexes = groupIndexes,
            pattern = pattern ?: throw PulumiNullFieldException("pattern"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy