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

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

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

import com.pulumi.azure.mssql.inputs.VirtualMachineAssessmentArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
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 Should Assessment be enabled? Defaults to `true`.
 * @property runImmediately Should Assessment be run immediately? Defaults to `false`.
 * @property schedule An `schedule` block as defined below.
 */
public data class VirtualMachineAssessmentArgs(
    public val enabled: Output? = null,
    public val runImmediately: Output? = null,
    public val schedule: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.mssql.inputs.VirtualMachineAssessmentArgs =
        com.pulumi.azure.mssql.inputs.VirtualMachineAssessmentArgs.builder()
            .enabled(enabled?.applyValue({ args0 -> args0 }))
            .runImmediately(runImmediately?.applyValue({ args0 -> args0 }))
            .schedule(schedule?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [VirtualMachineAssessmentArgs].
 */
@PulumiTagMarker
public class VirtualMachineAssessmentArgsBuilder internal constructor() {
    private var enabled: Output? = null

    private var runImmediately: Output? = null

    private var schedule: Output? = null

    /**
     * @param value Should Assessment be enabled? Defaults to `true`.
     */
    @JvmName("poajftqulbbjvtns")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value Should Assessment be run immediately? Defaults to `false`.
     */
    @JvmName("inemeyrmwbpagbcr")
    public suspend fun runImmediately(`value`: Output) {
        this.runImmediately = value
    }

    /**
     * @param value An `schedule` block as defined below.
     */
    @JvmName("pqwxfqahtmbemuoc")
    public suspend fun schedule(`value`: Output) {
        this.schedule = value
    }

    /**
     * @param value Should Assessment be enabled? Defaults to `true`.
     */
    @JvmName("tgoilvnyawnmtnop")
    public suspend fun enabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enabled = mapped
    }

    /**
     * @param value Should Assessment be run immediately? Defaults to `false`.
     */
    @JvmName("ferbrassxmsvbihd")
    public suspend fun runImmediately(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.runImmediately = mapped
    }

    /**
     * @param value An `schedule` block as defined below.
     */
    @JvmName("gmlambjxhggvgyki")
    public suspend fun schedule(`value`: VirtualMachineAssessmentScheduleArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.schedule = mapped
    }

    /**
     * @param argument An `schedule` block as defined below.
     */
    @JvmName("jctktidpkrldikbl")
    public suspend fun schedule(argument: suspend VirtualMachineAssessmentScheduleArgsBuilder.() -> Unit) {
        val toBeMapped = VirtualMachineAssessmentScheduleArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.schedule = mapped
    }

    internal fun build(): VirtualMachineAssessmentArgs = VirtualMachineAssessmentArgs(
        enabled = enabled,
        runImmediately = runImmediately,
        schedule = schedule,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy