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

com.pulumi.azure.monitoring.kotlin.inputs.DiagnosticSettingEnabledLogRetentionPolicyArgs.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.monitoring.kotlin.inputs

import com.pulumi.azure.monitoring.inputs.DiagnosticSettingEnabledLogRetentionPolicyArgs.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.Boolean
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property days The number of days for which this Retention Policy should apply.
 * > **NOTE:** Setting this to `0` will retain the events indefinitely.
 * @property enabled Is this Retention Policy enabled?
 */
public data class DiagnosticSettingEnabledLogRetentionPolicyArgs(
    public val days: Output? = null,
    public val enabled: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.monitoring.inputs.DiagnosticSettingEnabledLogRetentionPolicyArgs =
        com.pulumi.azure.monitoring.inputs.DiagnosticSettingEnabledLogRetentionPolicyArgs.builder()
            .days(days?.applyValue({ args0 -> args0 }))
            .enabled(enabled.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [DiagnosticSettingEnabledLogRetentionPolicyArgs].
 */
@PulumiTagMarker
public class DiagnosticSettingEnabledLogRetentionPolicyArgsBuilder internal constructor() {
    private var days: Output? = null

    private var enabled: Output? = null

    /**
     * @param value The number of days for which this Retention Policy should apply.
     * > **NOTE:** Setting this to `0` will retain the events indefinitely.
     */
    @JvmName("dhswiyeuujiojmdc")
    public suspend fun days(`value`: Output) {
        this.days = value
    }

    /**
     * @param value Is this Retention Policy enabled?
     */
    @JvmName("fbxgvyosifghtmuu")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value The number of days for which this Retention Policy should apply.
     * > **NOTE:** Setting this to `0` will retain the events indefinitely.
     */
    @JvmName("agdcnffpfkpqinsm")
    public suspend fun days(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.days = mapped
    }

    /**
     * @param value Is this Retention Policy enabled?
     */
    @JvmName("mtfpwjtxxnacgdyw")
    public suspend fun enabled(`value`: Boolean) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.enabled = mapped
    }

    internal fun build(): DiagnosticSettingEnabledLogRetentionPolicyArgs =
        DiagnosticSettingEnabledLogRetentionPolicyArgs(
            days = days,
            enabled = enabled ?: throw PulumiNullFieldException("enabled"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy