com.pulumi.cloudflare.kotlin.inputs.TeamsAccountAntivirusArgs.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.TeamsAccountAntivirusArgs.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 TeamsAccountAntivirusArgs(
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.TeamsAccountAntivirusArgs =
com.pulumi.cloudflare.inputs.TeamsAccountAntivirusArgs.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 [TeamsAccountAntivirusArgs].
*/
@PulumiTagMarker
public class TeamsAccountAntivirusArgsBuilder 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("qppfqwmybqnejbre")
public suspend fun enabledDownloadPhase(`value`: Output) {
this.enabledDownloadPhase = value
}
/**
* @param value Scan on file upload.
*/
@JvmName("wjgundqsjbwnfdau")
public suspend fun enabledUploadPhase(`value`: Output) {
this.enabledUploadPhase = value
}
/**
* @param value Block requests for files that cannot be scanned.
*/
@JvmName("vrdcajblpyeadrxe")
public suspend fun failClosed(`value`: Output) {
this.failClosed = value
}
/**
* @param value Set notifications for antivirus.
*/
@JvmName("onavaniuvockpldo")
public suspend fun notificationSettings(`value`: Output) {
this.notificationSettings = value
}
/**
* @param value Scan on file download.
*/
@JvmName("atdqovrubhfbrqxf")
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("ymrudjpktgvpwdoe")
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("mqclfrrsqwhvbfhi")
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("ucyawbhafxoliqhk")
public suspend fun notificationSettings(`value`: TeamsAccountAntivirusNotificationSettingsArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.notificationSettings = mapped
}
/**
* @param argument Set notifications for antivirus.
*/
@JvmName("dkkpmjtdqtolstnc")
public suspend fun notificationSettings(argument: suspend TeamsAccountAntivirusNotificationSettingsArgsBuilder.() -> Unit) {
val toBeMapped = TeamsAccountAntivirusNotificationSettingsArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.notificationSettings = mapped
}
internal fun build(): TeamsAccountAntivirusArgs = TeamsAccountAntivirusArgs(
enabledDownloadPhase = enabledDownloadPhase ?: throw
PulumiNullFieldException("enabledDownloadPhase"),
enabledUploadPhase = enabledUploadPhase ?: throw PulumiNullFieldException("enabledUploadPhase"),
failClosed = failClosed ?: throw PulumiNullFieldException("failClosed"),
notificationSettings = notificationSettings,
)
}