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

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

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

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

import com.pulumi.azure.mssql.inputs.VirtualMachineAssessmentScheduleArgs.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 kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property dayOfWeek What day of the week the assessment will be run. Possible values are `Friday`, `Monday`, `Saturday`, `Sunday`, `Thursday`, `Tuesday` and `Wednesday`.
 * @property monthlyOccurrence How many months between assessment runs. Valid values are between `1` and `5`.
 * > **NOTE:** Either one of `weekly_interval` or `monthly_occurrence` must be specified.
 * @property startTime What time the assessment will be run. Must be in the format `HH:mm`.
 * @property weeklyInterval How many weeks between assessment runs. Valid values are between `1` and `6`.
 */
public data class VirtualMachineAssessmentScheduleArgs(
    public val dayOfWeek: Output,
    public val monthlyOccurrence: Output? = null,
    public val startTime: Output,
    public val weeklyInterval: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.mssql.inputs.VirtualMachineAssessmentScheduleArgs =
        com.pulumi.azure.mssql.inputs.VirtualMachineAssessmentScheduleArgs.builder()
            .dayOfWeek(dayOfWeek.applyValue({ args0 -> args0 }))
            .monthlyOccurrence(monthlyOccurrence?.applyValue({ args0 -> args0 }))
            .startTime(startTime.applyValue({ args0 -> args0 }))
            .weeklyInterval(weeklyInterval?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [VirtualMachineAssessmentScheduleArgs].
 */
@PulumiTagMarker
public class VirtualMachineAssessmentScheduleArgsBuilder internal constructor() {
    private var dayOfWeek: Output? = null

    private var monthlyOccurrence: Output? = null

    private var startTime: Output? = null

    private var weeklyInterval: Output? = null

    /**
     * @param value What day of the week the assessment will be run. Possible values are `Friday`, `Monday`, `Saturday`, `Sunday`, `Thursday`, `Tuesday` and `Wednesday`.
     */
    @JvmName("yxroaxrbmfgvnjks")
    public suspend fun dayOfWeek(`value`: Output) {
        this.dayOfWeek = value
    }

    /**
     * @param value How many months between assessment runs. Valid values are between `1` and `5`.
     * > **NOTE:** Either one of `weekly_interval` or `monthly_occurrence` must be specified.
     */
    @JvmName("qdwqxyaeydtjudbv")
    public suspend fun monthlyOccurrence(`value`: Output) {
        this.monthlyOccurrence = value
    }

    /**
     * @param value What time the assessment will be run. Must be in the format `HH:mm`.
     */
    @JvmName("cucmgfgspjbtffkn")
    public suspend fun startTime(`value`: Output) {
        this.startTime = value
    }

    /**
     * @param value How many weeks between assessment runs. Valid values are between `1` and `6`.
     */
    @JvmName("yfqcrgshnorkbcqj")
    public suspend fun weeklyInterval(`value`: Output) {
        this.weeklyInterval = value
    }

    /**
     * @param value What day of the week the assessment will be run. Possible values are `Friday`, `Monday`, `Saturday`, `Sunday`, `Thursday`, `Tuesday` and `Wednesday`.
     */
    @JvmName("bqoukhlyrytgclnq")
    public suspend fun dayOfWeek(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.dayOfWeek = mapped
    }

    /**
     * @param value How many months between assessment runs. Valid values are between `1` and `5`.
     * > **NOTE:** Either one of `weekly_interval` or `monthly_occurrence` must be specified.
     */
    @JvmName("noyrcutreinmcldy")
    public suspend fun monthlyOccurrence(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.monthlyOccurrence = mapped
    }

    /**
     * @param value What time the assessment will be run. Must be in the format `HH:mm`.
     */
    @JvmName("vasoppqpuifhhuuu")
    public suspend fun startTime(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.startTime = mapped
    }

    /**
     * @param value How many weeks between assessment runs. Valid values are between `1` and `6`.
     */
    @JvmName("lvejujpmkwcfmfcw")
    public suspend fun weeklyInterval(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.weeklyInterval = mapped
    }

    internal fun build(): VirtualMachineAssessmentScheduleArgs = VirtualMachineAssessmentScheduleArgs(
        dayOfWeek = dayOfWeek ?: throw PulumiNullFieldException("dayOfWeek"),
        monthlyOccurrence = monthlyOccurrence,
        startTime = startTime ?: throw PulumiNullFieldException("startTime"),
        weeklyInterval = weeklyInterval,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy