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

com.pulumi.azurenative.workloads.kotlin.inputs.LogSchedulePolicyArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.workloads.kotlin.inputs

import com.pulumi.azurenative.workloads.inputs.LogSchedulePolicyArgs.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

/**
 * Log policy schedule.
 * @property scheduleFrequencyInMins Frequency of the log schedule operation of this policy in minutes.
 * @property schedulePolicyType This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types.
 * Expected value is 'LogSchedulePolicy'.
 */
public data class LogSchedulePolicyArgs(
    public val scheduleFrequencyInMins: Output? = null,
    public val schedulePolicyType: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.workloads.inputs.LogSchedulePolicyArgs =
        com.pulumi.azurenative.workloads.inputs.LogSchedulePolicyArgs.builder()
            .scheduleFrequencyInMins(scheduleFrequencyInMins?.applyValue({ args0 -> args0 }))
            .schedulePolicyType(schedulePolicyType.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [LogSchedulePolicyArgs].
 */
@PulumiTagMarker
public class LogSchedulePolicyArgsBuilder internal constructor() {
    private var scheduleFrequencyInMins: Output? = null

    private var schedulePolicyType: Output? = null

    /**
     * @param value Frequency of the log schedule operation of this policy in minutes.
     */
    @JvmName("wmbwholfldcpmnvn")
    public suspend fun scheduleFrequencyInMins(`value`: Output) {
        this.scheduleFrequencyInMins = value
    }

    /**
     * @param value This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types.
     * Expected value is 'LogSchedulePolicy'.
     */
    @JvmName("cjbxfbupwktdfqlk")
    public suspend fun schedulePolicyType(`value`: Output) {
        this.schedulePolicyType = value
    }

    /**
     * @param value Frequency of the log schedule operation of this policy in minutes.
     */
    @JvmName("fbtyvidsvcyhpiru")
    public suspend fun scheduleFrequencyInMins(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.scheduleFrequencyInMins = mapped
    }

    /**
     * @param value This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types.
     * Expected value is 'LogSchedulePolicy'.
     */
    @JvmName("nebhkeicdfvxbkrg")
    public suspend fun schedulePolicyType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.schedulePolicyType = mapped
    }

    internal fun build(): LogSchedulePolicyArgs = LogSchedulePolicyArgs(
        scheduleFrequencyInMins = scheduleFrequencyInMins,
        schedulePolicyType = schedulePolicyType ?: throw PulumiNullFieldException("schedulePolicyType"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy