com.pulumi.cloudflare.kotlin.inputs.DlpProfileEntryArgs.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.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.cloudflare.kotlin.inputs
import com.pulumi.cloudflare.inputs.DlpProfileEntryArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property enabled Whether the entry is active. Defaults to `false`.
* @property id Unique entry identifier.
* @property name Name of the entry to deploy.
* @property pattern
*/
public data class DlpProfileEntryArgs(
public val enabled: Output? = null,
public val id: Output? = null,
public val name: Output,
public val pattern: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.cloudflare.inputs.DlpProfileEntryArgs =
com.pulumi.cloudflare.inputs.DlpProfileEntryArgs.builder()
.enabled(enabled?.applyValue({ args0 -> args0 }))
.id(id?.applyValue({ args0 -> args0 }))
.name(name.applyValue({ args0 -> args0 }))
.pattern(pattern?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [DlpProfileEntryArgs].
*/
@PulumiTagMarker
public class DlpProfileEntryArgsBuilder internal constructor() {
private var enabled: Output? = null
private var id: Output? = null
private var name: Output? = null
private var pattern: Output? = null
/**
* @param value Whether the entry is active. Defaults to `false`.
*/
@JvmName("ahymcbcnhxqyudga")
public suspend fun enabled(`value`: Output) {
this.enabled = value
}
/**
* @param value Unique entry identifier.
*/
@JvmName("vawgnyifgvqjctto")
public suspend fun id(`value`: Output) {
this.id = value
}
/**
* @param value Name of the entry to deploy.
*/
@JvmName("taqvqahopgxoowlj")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value
*/
@JvmName("dsgpgjatbigqbwqw")
public suspend fun pattern(`value`: Output) {
this.pattern = value
}
/**
* @param value Whether the entry is active. Defaults to `false`.
*/
@JvmName("pklekwuqenrrvdlh")
public suspend fun enabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.enabled = mapped
}
/**
* @param value Unique entry identifier.
*/
@JvmName("nkcvjnwdoxxtwjhr")
public suspend fun id(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.id = mapped
}
/**
* @param value Name of the entry to deploy.
*/
@JvmName("gxgtqxqmgfcclbdl")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value
*/
@JvmName("lsmfrvbomouhhscg")
public suspend fun pattern(`value`: DlpProfileEntryPatternArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.pattern = mapped
}
/**
* @param argument
*/
@JvmName("cllcunrbhoglhvnf")
public suspend fun pattern(argument: suspend DlpProfileEntryPatternArgsBuilder.() -> Unit) {
val toBeMapped = DlpProfileEntryPatternArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.pattern = mapped
}
internal fun build(): DlpProfileEntryArgs = DlpProfileEntryArgs(
enabled = enabled,
id = id,
name = name ?: throw PulumiNullFieldException("name"),
pattern = pattern,
)
}