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

com.pulumi.gcp.dataproc.kotlin.inputs.WorkflowTemplateParameterValidationRegexArgs.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.dataproc.kotlin.inputs

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

/**
 *
 * @property regexes Required. RE2 regular expressions used to validate the parameter's value. The value must match the regex in its entirety (substring matches are not sufficient).
 */
public data class WorkflowTemplateParameterValidationRegexArgs(
    public val regexes: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataproc.inputs.WorkflowTemplateParameterValidationRegexArgs = com.pulumi.gcp.dataproc.inputs.WorkflowTemplateParameterValidationRegexArgs.builder()
        .regexes(regexes.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

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

    /**
     * @param value Required. RE2 regular expressions used to validate the parameter's value. The value must match the regex in its entirety (substring matches are not sufficient).
     */
    @JvmName("yqjhffkthtosetka")
    public suspend fun regexes(`value`: Output>) {
        this.regexes = value
    }

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

    /**
     * @param values Required. RE2 regular expressions used to validate the parameter's value. The value must match the regex in its entirety (substring matches are not sufficient).
     */
    @JvmName("kxydhnxymyrwfigr")
    public suspend fun regexes(values: List>) {
        this.regexes = Output.all(values)
    }

    /**
     * @param value Required. RE2 regular expressions used to validate the parameter's value. The value must match the regex in its entirety (substring matches are not sufficient).
     */
    @JvmName("fiwnfahrwwakwyqt")
    public suspend fun regexes(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.regexes = mapped
    }

    /**
     * @param values Required. RE2 regular expressions used to validate the parameter's value. The value must match the regex in its entirety (substring matches are not sufficient).
     */
    @JvmName("bghmtopbmquqabiy")
    public suspend fun regexes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.regexes = mapped
    }

    internal fun build(): WorkflowTemplateParameterValidationRegexArgs =
        WorkflowTemplateParameterValidationRegexArgs(
            regexes = regexes ?: throw PulumiNullFieldException("regexes"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy