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

com.pulumi.azure.monitoring.kotlin.outputs.DiagnosticSettingEnabledLogRetentionPolicy.kt Maven / Gradle / Ivy

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

package com.pulumi.azure.monitoring.kotlin.outputs

import kotlin.Boolean
import kotlin.Int
import kotlin.Suppress

/**
 *
 * @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 DiagnosticSettingEnabledLogRetentionPolicy(
    public val days: Int? = null,
    public val enabled: Boolean,
) {
    public companion object {
        public
        fun toKotlin(javaType: com.pulumi.azure.monitoring.outputs.DiagnosticSettingEnabledLogRetentionPolicy):
            DiagnosticSettingEnabledLogRetentionPolicy = DiagnosticSettingEnabledLogRetentionPolicy(
            days = javaType.days().map({ args0 -> args0 }).orElse(null),
            enabled = javaType.enabled(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy