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

com.pulumi.azure.monitoring.kotlin.inputs.LogProfileRetentionPolicyArgs.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.LogProfileRetentionPolicyArgs.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 the retention policy. Defaults to `0`.
 * @property enabled A boolean value to indicate whether the retention policy is enabled.
 */
public data class LogProfileRetentionPolicyArgs(
    public val days: Output? = null,
    public val enabled: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.monitoring.inputs.LogProfileRetentionPolicyArgs =
        com.pulumi.azure.monitoring.inputs.LogProfileRetentionPolicyArgs.builder()
            .days(days?.applyValue({ args0 -> args0 }))
            .enabled(enabled.applyValue({ args0 -> args0 })).build()
}

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

    private var enabled: Output? = null

    /**
     * @param value The number of days for the retention policy. Defaults to `0`.
     */
    @JvmName("eavyflagjofuuvjt")
    public suspend fun days(`value`: Output) {
        this.days = value
    }

    /**
     * @param value A boolean value to indicate whether the retention policy is enabled.
     */
    @JvmName("swhcfyvslmiqyqpq")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value The number of days for the retention policy. Defaults to `0`.
     */
    @JvmName("rhorxixsyhlbaphv")
    public suspend fun days(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.days = mapped
    }

    /**
     * @param value A boolean value to indicate whether the retention policy is enabled.
     */
    @JvmName("fawofqyepbkvgked")
    public suspend fun enabled(`value`: Boolean) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.enabled = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy