All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azure.mssql.kotlin.inputs.ManagedInstanceVulnerabilityAssessmentRecurringScansArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.mssql.kotlin.inputs

import com.pulumi.azure.mssql.inputs.ManagedInstanceVulnerabilityAssessmentRecurringScansArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property emailSubscriptionAdmins Boolean flag which specifies if the schedule scan notification will be sent to the subscription administrators. Defaults to `true`.
 * @property emails Specifies an array of e-mail addresses to which the scan notification is sent.
 * @property enabled Boolean flag which specifies if recurring scans is enabled or disabled. Defaults to `false`.
 */
public data class ManagedInstanceVulnerabilityAssessmentRecurringScansArgs(
    public val emailSubscriptionAdmins: Output? = null,
    public val emails: Output>? = null,
    public val enabled: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.mssql.inputs.ManagedInstanceVulnerabilityAssessmentRecurringScansArgs =
        com.pulumi.azure.mssql.inputs.ManagedInstanceVulnerabilityAssessmentRecurringScansArgs.builder()
            .emailSubscriptionAdmins(emailSubscriptionAdmins?.applyValue({ args0 -> args0 }))
            .emails(emails?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .enabled(enabled?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ManagedInstanceVulnerabilityAssessmentRecurringScansArgs].
 */
@PulumiTagMarker
public class ManagedInstanceVulnerabilityAssessmentRecurringScansArgsBuilder internal constructor() {
    private var emailSubscriptionAdmins: Output? = null

    private var emails: Output>? = null

    private var enabled: Output? = null

    /**
     * @param value Boolean flag which specifies if the schedule scan notification will be sent to the subscription administrators. Defaults to `true`.
     */
    @JvmName("jogvyyvapexsxiio")
    public suspend fun emailSubscriptionAdmins(`value`: Output) {
        this.emailSubscriptionAdmins = value
    }

    /**
     * @param value Specifies an array of e-mail addresses to which the scan notification is sent.
     */
    @JvmName("hksbehlxcckhpqgj")
    public suspend fun emails(`value`: Output>) {
        this.emails = value
    }

    @JvmName("xswuxgfkaovadewb")
    public suspend fun emails(vararg values: Output) {
        this.emails = Output.all(values.asList())
    }

    /**
     * @param values Specifies an array of e-mail addresses to which the scan notification is sent.
     */
    @JvmName("lyfvfccddalskmxd")
    public suspend fun emails(values: List>) {
        this.emails = Output.all(values)
    }

    /**
     * @param value Boolean flag which specifies if recurring scans is enabled or disabled. Defaults to `false`.
     */
    @JvmName("wrmoehhkqhlbfcoy")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value Boolean flag which specifies if the schedule scan notification will be sent to the subscription administrators. Defaults to `true`.
     */
    @JvmName("qsnrwybiqahjuyvo")
    public suspend fun emailSubscriptionAdmins(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.emailSubscriptionAdmins = mapped
    }

    /**
     * @param value Specifies an array of e-mail addresses to which the scan notification is sent.
     */
    @JvmName("yhtrapljsydvjgar")
    public suspend fun emails(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.emails = mapped
    }

    /**
     * @param values Specifies an array of e-mail addresses to which the scan notification is sent.
     */
    @JvmName("pibtihirtciwuumc")
    public suspend fun emails(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.emails = mapped
    }

    /**
     * @param value Boolean flag which specifies if recurring scans is enabled or disabled. Defaults to `false`.
     */
    @JvmName("tbfpppklbelspcwq")
    public suspend fun enabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enabled = mapped
    }

    internal fun build(): ManagedInstanceVulnerabilityAssessmentRecurringScansArgs =
        ManagedInstanceVulnerabilityAssessmentRecurringScansArgs(
            emailSubscriptionAdmins = emailSubscriptionAdmins,
            emails = emails,
            enabled = enabled,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy