com.pulumi.cloudflare.kotlin.inputs.ZeroTrustGatewaySettingsAntivirusArgs.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.ZeroTrustGatewaySettingsAntivirusArgs.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 enabledDownloadPhase Scan on file download.
* @property enabledUploadPhase Scan on file upload.
* @property failClosed Block requests for files that cannot be scanned.
* @property notificationSettings Set notifications for antivirus.
*/
public data class ZeroTrustGatewaySettingsAntivirusArgs(
public val enabledDownloadPhase: Output,
public val enabledUploadPhase: Output,
public val failClosed: Output,
public val notificationSettings: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.cloudflare.inputs.ZeroTrustGatewaySettingsAntivirusArgs =
com.pulumi.cloudflare.inputs.ZeroTrustGatewaySettingsAntivirusArgs.builder()
.enabledDownloadPhase(enabledDownloadPhase.applyValue({ args0 -> args0 }))
.enabledUploadPhase(enabledUploadPhase.applyValue({ args0 -> args0 }))
.failClosed(failClosed.applyValue({ args0 -> args0 }))
.notificationSettings(
notificationSettings?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [ZeroTrustGatewaySettingsAntivirusArgs].
*/
@PulumiTagMarker
public class ZeroTrustGatewaySettingsAntivirusArgsBuilder internal constructor() {
private var enabledDownloadPhase: Output? = null
private var enabledUploadPhase: Output? = null
private var failClosed: Output? = null
private var notificationSettings:
Output? = null
/**
* @param value Scan on file download.
*/
@JvmName("yyhrqykashoyvrcm")
public suspend fun enabledDownloadPhase(`value`: Output) {
this.enabledDownloadPhase = value
}
/**
* @param value Scan on file upload.
*/
@JvmName("hhsxwbjugaxbngfj")
public suspend fun enabledUploadPhase(`value`: Output) {
this.enabledUploadPhase = value
}
/**
* @param value Block requests for files that cannot be scanned.
*/
@JvmName("igbnhjxbafjdixog")
public suspend fun failClosed(`value`: Output) {
this.failClosed = value
}
/**
* @param value Set notifications for antivirus.
*/
@JvmName("gmeotaswfxhsigpr")
public suspend fun notificationSettings(`value`: Output) {
this.notificationSettings = value
}
/**
* @param value Scan on file download.
*/
@JvmName("ivaxnobclnmlqarm")
public suspend fun enabledDownloadPhase(`value`: Boolean) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.enabledDownloadPhase = mapped
}
/**
* @param value Scan on file upload.
*/
@JvmName("nflscryounttbjqb")
public suspend fun enabledUploadPhase(`value`: Boolean) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.enabledUploadPhase = mapped
}
/**
* @param value Block requests for files that cannot be scanned.
*/
@JvmName("xajiparwxegfbvyc")
public suspend fun failClosed(`value`: Boolean) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.failClosed = mapped
}
/**
* @param value Set notifications for antivirus.
*/
@JvmName("cqcskrlxurthhnod")
public suspend fun notificationSettings(`value`: ZeroTrustGatewaySettingsAntivirusNotificationSettingsArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.notificationSettings = mapped
}
/**
* @param argument Set notifications for antivirus.
*/
@JvmName("edsopyuesngappyw")
public suspend fun notificationSettings(argument: suspend ZeroTrustGatewaySettingsAntivirusNotificationSettingsArgsBuilder.() -> Unit) {
val toBeMapped =
ZeroTrustGatewaySettingsAntivirusNotificationSettingsArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.notificationSettings = mapped
}
internal fun build(): ZeroTrustGatewaySettingsAntivirusArgs =
ZeroTrustGatewaySettingsAntivirusArgs(
enabledDownloadPhase = enabledDownloadPhase ?: throw
PulumiNullFieldException("enabledDownloadPhase"),
enabledUploadPhase = enabledUploadPhase ?: throw PulumiNullFieldException("enabledUploadPhase"),
failClosed = failClosed ?: throw PulumiNullFieldException("failClosed"),
notificationSettings = notificationSettings,
)
}