com.pulumi.gcp.dataloss.kotlin.inputs.PreventionDiscoveryConfigActionArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.dataloss.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.dataloss.inputs.PreventionDiscoveryConfigActionArgs.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 exportData Export data profiles into a provided location
* Structure is documented below.
* @property pubSubNotification Publish a message into the Pub/Sub topic.
* Structure is documented below.
*/
public data class PreventionDiscoveryConfigActionArgs(
public val exportData: Output? = null,
public val pubSubNotification: Output? =
null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.dataloss.inputs.PreventionDiscoveryConfigActionArgs =
com.pulumi.gcp.dataloss.inputs.PreventionDiscoveryConfigActionArgs.builder()
.exportData(exportData?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.pubSubNotification(
pubSubNotification?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [PreventionDiscoveryConfigActionArgs].
*/
@PulumiTagMarker
public class PreventionDiscoveryConfigActionArgsBuilder internal constructor() {
private var exportData: Output? = null
private var pubSubNotification: Output? =
null
/**
* @param value Export data profiles into a provided location
* Structure is documented below.
*/
@JvmName("tbuxghhoblnenhvo")
public suspend fun exportData(`value`: Output) {
this.exportData = value
}
/**
* @param value Publish a message into the Pub/Sub topic.
* Structure is documented below.
*/
@JvmName("ushlkktilbiatbnm")
public suspend fun pubSubNotification(`value`: Output) {
this.pubSubNotification = value
}
/**
* @param value Export data profiles into a provided location
* Structure is documented below.
*/
@JvmName("oseojyjewgtykiem")
public suspend fun exportData(`value`: PreventionDiscoveryConfigActionExportDataArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.exportData = mapped
}
/**
* @param argument Export data profiles into a provided location
* Structure is documented below.
*/
@JvmName("qwfgnkbluiegusji")
public suspend fun exportData(argument: suspend PreventionDiscoveryConfigActionExportDataArgsBuilder.() -> Unit) {
val toBeMapped = PreventionDiscoveryConfigActionExportDataArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.exportData = mapped
}
/**
* @param value Publish a message into the Pub/Sub topic.
* Structure is documented below.
*/
@JvmName("qhsbswbeomnuegtn")
public suspend fun pubSubNotification(`value`: PreventionDiscoveryConfigActionPubSubNotificationArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.pubSubNotification = mapped
}
/**
* @param argument Publish a message into the Pub/Sub topic.
* Structure is documented below.
*/
@JvmName("ycebsmlbsbicwrih")
public suspend fun pubSubNotification(argument: suspend PreventionDiscoveryConfigActionPubSubNotificationArgsBuilder.() -> Unit) {
val toBeMapped = PreventionDiscoveryConfigActionPubSubNotificationArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.pubSubNotification = mapped
}
internal fun build(): PreventionDiscoveryConfigActionArgs = PreventionDiscoveryConfigActionArgs(
exportData = exportData,
pubSubNotification = pubSubNotification,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy