com.pulumi.cloudflare.kotlin.inputs.ZeroTrustDlpProfileEntryArgs.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.ZeroTrustDlpProfileEntryArgs.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 ZeroTrustDlpProfileEntryArgs(
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.ZeroTrustDlpProfileEntryArgs =
com.pulumi.cloudflare.inputs.ZeroTrustDlpProfileEntryArgs.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 [ZeroTrustDlpProfileEntryArgs].
*/
@PulumiTagMarker
public class ZeroTrustDlpProfileEntryArgsBuilder 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("aecvflswooknrnkn")
public suspend fun enabled(`value`: Output) {
this.enabled = value
}
/**
* @param value Unique entry identifier.
*/
@JvmName("mhjebgtxxkfvtjsx")
public suspend fun id(`value`: Output) {
this.id = value
}
/**
* @param value Name of the entry to deploy.
*/
@JvmName("madymgvokjhbigaq")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value
*/
@JvmName("gwaalnyuhpiyiurn")
public suspend fun pattern(`value`: Output) {
this.pattern = value
}
/**
* @param value Whether the entry is active. Defaults to `false`.
*/
@JvmName("vpcuiymnqhiuqqbc")
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("isfblommlkqgafbr")
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("ymasgxxfdwhhymvi")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value
*/
@JvmName("wjiijppfnqwbbmwh")
public suspend fun pattern(`value`: ZeroTrustDlpProfileEntryPatternArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.pattern = mapped
}
/**
* @param argument
*/
@JvmName("xlhxfcflnivfmapy")
public suspend fun pattern(argument: suspend ZeroTrustDlpProfileEntryPatternArgsBuilder.() -> Unit) {
val toBeMapped = ZeroTrustDlpProfileEntryPatternArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.pattern = mapped
}
internal fun build(): ZeroTrustDlpProfileEntryArgs = ZeroTrustDlpProfileEntryArgs(
enabled = enabled,
id = id,
name = name ?: throw PulumiNullFieldException("name"),
pattern = pattern,
)
}