com.pulumi.cloudflare.kotlin.inputs.DlpProfileContextAwarenessArgs.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.DlpProfileContextAwarenessArgs.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.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property enabled Scan the context of predefined entries to only return matches surrounded by keywords.
* @property skip Content types to exclude from context analysis and return all matches.
*/
public data class DlpProfileContextAwarenessArgs(
public val enabled: Output,
public val skip: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.cloudflare.inputs.DlpProfileContextAwarenessArgs =
com.pulumi.cloudflare.inputs.DlpProfileContextAwarenessArgs.builder()
.enabled(enabled.applyValue({ args0 -> args0 }))
.skip(skip.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [DlpProfileContextAwarenessArgs].
*/
@PulumiTagMarker
public class DlpProfileContextAwarenessArgsBuilder internal constructor() {
private var enabled: Output? = null
private var skip: Output? = null
/**
* @param value Scan the context of predefined entries to only return matches surrounded by keywords.
*/
@JvmName("cbaegjnbfnmtfpli")
public suspend fun enabled(`value`: Output) {
this.enabled = value
}
/**
* @param value Content types to exclude from context analysis and return all matches.
*/
@JvmName("rqntastfnfvvvfeb")
public suspend fun skip(`value`: Output) {
this.skip = value
}
/**
* @param value Scan the context of predefined entries to only return matches surrounded by keywords.
*/
@JvmName("hthicwtoohsmvjed")
public suspend fun enabled(`value`: Boolean) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.enabled = mapped
}
/**
* @param value Content types to exclude from context analysis and return all matches.
*/
@JvmName("dygbxpqnrbaipapo")
public suspend fun skip(`value`: DlpProfileContextAwarenessSkipArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.skip = mapped
}
/**
* @param argument Content types to exclude from context analysis and return all matches.
*/
@JvmName("fbvbisjvkfekddur")
public suspend fun skip(argument: suspend DlpProfileContextAwarenessSkipArgsBuilder.() -> Unit) {
val toBeMapped = DlpProfileContextAwarenessSkipArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.skip = mapped
}
internal fun build(): DlpProfileContextAwarenessArgs = DlpProfileContextAwarenessArgs(
enabled = enabled ?: throw PulumiNullFieldException("enabled"),
skip = skip ?: throw PulumiNullFieldException("skip"),
)
}