com.pulumi.cloudflare.kotlin.inputs.DlpProfileEntryPatternArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-cloudflare-kotlin Show documentation
Show all versions of pulumi-cloudflare-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.cloudflare.kotlin.inputs
import com.pulumi.cloudflare.inputs.DlpProfileEntryPatternArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property regex The regex that defines the pattern.
* @property validation The validation algorithm to apply with this pattern.
*/
public data class DlpProfileEntryPatternArgs(
public val regex: Output,
public val validation: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.cloudflare.inputs.DlpProfileEntryPatternArgs =
com.pulumi.cloudflare.inputs.DlpProfileEntryPatternArgs.builder()
.regex(regex.applyValue({ args0 -> args0 }))
.validation(validation?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [DlpProfileEntryPatternArgs].
*/
@PulumiTagMarker
public class DlpProfileEntryPatternArgsBuilder internal constructor() {
private var regex: Output? = null
private var validation: Output? = null
/**
* @param value The regex that defines the pattern.
*/
@JvmName("bmawewdkcadhrotm")
public suspend fun regex(`value`: Output) {
this.regex = value
}
/**
* @param value The validation algorithm to apply with this pattern.
*/
@JvmName("lhvqjmtgddjjxuji")
public suspend fun validation(`value`: Output) {
this.validation = value
}
/**
* @param value The regex that defines the pattern.
*/
@JvmName("ysdfgqtygqnaktfi")
public suspend fun regex(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.regex = mapped
}
/**
* @param value The validation algorithm to apply with this pattern.
*/
@JvmName("kosgfekfxhcwkhot")
public suspend fun validation(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.validation = mapped
}
internal fun build(): DlpProfileEntryPatternArgs = DlpProfileEntryPatternArgs(
regex = regex ?: throw PulumiNullFieldException("regex"),
validation = validation,
)
}