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

com.pulumi.azure.monitoring.kotlin.inputs.AadDiagnosticSettingLogRetentionPolicyArgs.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.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.monitoring.kotlin.inputs

import com.pulumi.azure.monitoring.inputs.AadDiagnosticSettingLogRetentionPolicyArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
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. Defaults to `0`.
 * @property enabled Is this Retention Policy enabled? Defaults to `false`.
 */
public data class AadDiagnosticSettingLogRetentionPolicyArgs(
    public val days: Output? = null,
    public val enabled: Output? = null,
) : ConvertibleToJava {
    override fun toJava():
        com.pulumi.azure.monitoring.inputs.AadDiagnosticSettingLogRetentionPolicyArgs =
        com.pulumi.azure.monitoring.inputs.AadDiagnosticSettingLogRetentionPolicyArgs.builder()
            .days(days?.applyValue({ args0 -> args0 }))
            .enabled(enabled?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AadDiagnosticSettingLogRetentionPolicyArgs].
 */
@PulumiTagMarker
public class AadDiagnosticSettingLogRetentionPolicyArgsBuilder 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. Defaults to `0`.
     */
    @JvmName("owgufjexhsyqamsm")
    public suspend fun days(`value`: Output) {
        this.days = value
    }

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

    /**
     * @param value The number of days for which this Retention Policy should apply. Defaults to `0`.
     */
    @JvmName("tmyxqeefhthkeovf")
    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? Defaults to `false`.
     */
    @JvmName("jpyjulhfbgmuxyoo")
    public suspend fun enabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enabled = mapped
    }

    internal fun build(): AadDiagnosticSettingLogRetentionPolicyArgs =
        AadDiagnosticSettingLogRetentionPolicyArgs(
            days = days,
            enabled = enabled,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy