![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.containerservice.kotlin.inputs.RegistryRetentionPolicyArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-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.azure.containerservice.kotlin.inputs
import com.pulumi.azure.containerservice.inputs.RegistryRetentionPolicyArgs.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 to retain an untagged manifest after which it gets purged. Default is `7`.
* @property enabled Boolean value that indicates whether the policy is enabled.
*/
public data class RegistryRetentionPolicyArgs(
public val days: Output? = null,
public val enabled: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.containerservice.inputs.RegistryRetentionPolicyArgs =
com.pulumi.azure.containerservice.inputs.RegistryRetentionPolicyArgs.builder()
.days(days?.applyValue({ args0 -> args0 }))
.enabled(enabled?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [RegistryRetentionPolicyArgs].
*/
@PulumiTagMarker
public class RegistryRetentionPolicyArgsBuilder internal constructor() {
private var days: Output? = null
private var enabled: Output? = null
/**
* @param value The number of days to retain an untagged manifest after which it gets purged. Default is `7`.
*/
@JvmName("rsydwbykmnpveidq")
public suspend fun days(`value`: Output) {
this.days = value
}
/**
* @param value Boolean value that indicates whether the policy is enabled.
*/
@JvmName("yxhoadjpooxgfeuc")
public suspend fun enabled(`value`: Output) {
this.enabled = value
}
/**
* @param value The number of days to retain an untagged manifest after which it gets purged. Default is `7`.
*/
@JvmName("wkqwhcllgauulfth")
public suspend fun days(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.days = mapped
}
/**
* @param value Boolean value that indicates whether the policy is enabled.
*/
@JvmName("bhxchlspqkcilbbh")
public suspend fun enabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.enabled = mapped
}
internal fun build(): RegistryRetentionPolicyArgs = RegistryRetentionPolicyArgs(
days = days,
enabled = enabled,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy