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

com.pulumi.azurenative.network.kotlin.inputs.RetentionPolicyParametersArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.network.kotlin.inputs

import com.pulumi.azurenative.network.inputs.RetentionPolicyParametersArgs.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

/**
 * Parameters that define the retention policy for flow log.
 * @property days Number of days to retain flow log records.
 * @property enabled Flag to enable/disable retention.
 */
public data class RetentionPolicyParametersArgs(
    public val days: Output? = null,
    public val enabled: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.network.inputs.RetentionPolicyParametersArgs =
        com.pulumi.azurenative.network.inputs.RetentionPolicyParametersArgs.builder()
            .days(days?.applyValue({ args0 -> args0 }))
            .enabled(enabled?.applyValue({ args0 -> args0 })).build()
}

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

    private var enabled: Output? = null

    /**
     * @param value Number of days to retain flow log records.
     */
    @JvmName("gppgqpjchtntfnol")
    public suspend fun days(`value`: Output) {
        this.days = value
    }

    /**
     * @param value Flag to enable/disable retention.
     */
    @JvmName("vqlonlwreraqfnkr")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value Number of days to retain flow log records.
     */
    @JvmName("ynkrxwuabmtuswtd")
    public suspend fun days(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.days = mapped
    }

    /**
     * @param value Flag to enable/disable retention.
     */
    @JvmName("fhiytmkebppdcudn")
    public suspend fun enabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enabled = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy