![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.insights.kotlin.inputs.RetentionPolicyArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.insights.kotlin.inputs
import com.pulumi.azurenative.insights.inputs.RetentionPolicyArgs.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
/**
* Specifies the retention policy for the log.
* @property days the number of days for the retention in days. A value of 0 will retain the events indefinitely.
* @property enabled a value indicating whether the retention policy is enabled.
*/
public data class RetentionPolicyArgs(
public val days: Output,
public val enabled: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.insights.inputs.RetentionPolicyArgs =
com.pulumi.azurenative.insights.inputs.RetentionPolicyArgs.builder()
.days(days.applyValue({ args0 -> args0 }))
.enabled(enabled.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [RetentionPolicyArgs].
*/
@PulumiTagMarker
public class RetentionPolicyArgsBuilder internal constructor() {
private var days: Output? = null
private var enabled: Output? = null
/**
* @param value the number of days for the retention in days. A value of 0 will retain the events indefinitely.
*/
@JvmName("robkahvyatqtxkfg")
public suspend fun days(`value`: Output) {
this.days = value
}
/**
* @param value a value indicating whether the retention policy is enabled.
*/
@JvmName("stxrffvawicxhdbb")
public suspend fun enabled(`value`: Output) {
this.enabled = value
}
/**
* @param value the number of days for the retention in days. A value of 0 will retain the events indefinitely.
*/
@JvmName("giesymvtxjharcun")
public suspend fun days(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.days = mapped
}
/**
* @param value a value indicating whether the retention policy is enabled.
*/
@JvmName("noqrwjshwyhwdxoj")
public suspend fun enabled(`value`: Boolean) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.enabled = mapped
}
internal fun build(): RetentionPolicyArgs = RetentionPolicyArgs(
days = days ?: throw PulumiNullFieldException("days"),
enabled = enabled ?: throw PulumiNullFieldException("enabled"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy