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

com.pulumi.gcp.dataproc.kotlin.inputs.WorkflowTemplateParameterValidationArgs.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.12.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.WorkflowTemplateParameterValidationArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property regex Validation based on regular expressions.
 * @property values Validation based on a list of allowed values.
 */
public data class WorkflowTemplateParameterValidationArgs(
    public val regex: Output? = null,
    public val values: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataproc.inputs.WorkflowTemplateParameterValidationArgs =
        com.pulumi.gcp.dataproc.inputs.WorkflowTemplateParameterValidationArgs.builder()
            .regex(regex?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .values(values?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [WorkflowTemplateParameterValidationArgs].
 */
@PulumiTagMarker
public class WorkflowTemplateParameterValidationArgsBuilder internal constructor() {
    private var regex: Output? = null

    private var values: Output? = null

    /**
     * @param value Validation based on regular expressions.
     */
    @JvmName("lbjjnpvryclptckd")
    public suspend fun regex(`value`: Output) {
        this.regex = value
    }

    /**
     * @param value Validation based on a list of allowed values.
     */
    @JvmName("fsuxyrewadihaiwj")
    public suspend fun values(`value`: Output) {
        this.values = value
    }

    /**
     * @param value Validation based on regular expressions.
     */
    @JvmName("rqurlwsufbliduan")
    public suspend fun regex(`value`: WorkflowTemplateParameterValidationRegexArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.regex = mapped
    }

    /**
     * @param argument Validation based on regular expressions.
     */
    @JvmName("edotnqtjejxkrcis")
    public suspend fun regex(argument: suspend WorkflowTemplateParameterValidationRegexArgsBuilder.() -> Unit) {
        val toBeMapped = WorkflowTemplateParameterValidationRegexArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.regex = mapped
    }

    /**
     * @param value Validation based on a list of allowed values.
     */
    @JvmName("fmtvjyftlignqtcu")
    public suspend fun values(`value`: WorkflowTemplateParameterValidationValuesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.values = mapped
    }

    /**
     * @param argument Validation based on a list of allowed values.
     */
    @JvmName("nonpqpalibtctrvh")
    public suspend fun values(argument: suspend WorkflowTemplateParameterValidationValuesArgsBuilder.() -> Unit) {
        val toBeMapped = WorkflowTemplateParameterValidationValuesArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.values = mapped
    }

    internal fun build(): WorkflowTemplateParameterValidationArgs =
        WorkflowTemplateParameterValidationArgs(
            regex = regex,
            values = values,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy