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

com.pulumi.gcp.compute.kotlin.inputs.SecurityScanConfigScheduleArgs.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: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.compute.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.compute.inputs.SecurityScanConfigScheduleArgs.builder
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 intervalDurationDays The duration of time between executions in days
 * @property scheduleTime A timestamp indicates when the next run will be scheduled. The value is refreshed
 * by the server after each run. If unspecified, it will default to current server time,
 * which means the scan will be scheduled to start immediately.
 */
public data class SecurityScanConfigScheduleArgs(
    public val intervalDurationDays: Output,
    public val scheduleTime: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.compute.inputs.SecurityScanConfigScheduleArgs =
        com.pulumi.gcp.compute.inputs.SecurityScanConfigScheduleArgs.builder()
            .intervalDurationDays(intervalDurationDays.applyValue({ args0 -> args0 }))
            .scheduleTime(scheduleTime?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [SecurityScanConfigScheduleArgs].
 */
@PulumiTagMarker
public class SecurityScanConfigScheduleArgsBuilder internal constructor() {
    private var intervalDurationDays: Output? = null

    private var scheduleTime: Output? = null

    /**
     * @param value The duration of time between executions in days
     */
    @JvmName("fqbdjpkwuqmplmkw")
    public suspend fun intervalDurationDays(`value`: Output) {
        this.intervalDurationDays = value
    }

    /**
     * @param value A timestamp indicates when the next run will be scheduled. The value is refreshed
     * by the server after each run. If unspecified, it will default to current server time,
     * which means the scan will be scheduled to start immediately.
     */
    @JvmName("eneqluxvdfciyrsd")
    public suspend fun scheduleTime(`value`: Output) {
        this.scheduleTime = value
    }

    /**
     * @param value The duration of time between executions in days
     */
    @JvmName("slecvphqibucbqet")
    public suspend fun intervalDurationDays(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.intervalDurationDays = mapped
    }

    /**
     * @param value A timestamp indicates when the next run will be scheduled. The value is refreshed
     * by the server after each run. If unspecified, it will default to current server time,
     * which means the scan will be scheduled to start immediately.
     */
    @JvmName("himtuuhihttsfrhn")
    public suspend fun scheduleTime(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.scheduleTime = mapped
    }

    internal fun build(): SecurityScanConfigScheduleArgs = SecurityScanConfigScheduleArgs(
        intervalDurationDays = intervalDurationDays ?: throw
            PulumiNullFieldException("intervalDurationDays"),
        scheduleTime = scheduleTime,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy