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

com.pulumi.digitalocean.kotlin.inputs.SpacesBucketLifecycleRuleNoncurrentVersionExpirationArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.digitalocean.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.digitalocean.inputs.SpacesBucketLifecycleRuleNoncurrentVersionExpirationArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property days Specifies the number of days after which an object's non-current versions expire.
 */
public data class SpacesBucketLifecycleRuleNoncurrentVersionExpirationArgs(
    public val days: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.digitalocean.inputs.SpacesBucketLifecycleRuleNoncurrentVersionExpirationArgs =
        com.pulumi.digitalocean.inputs.SpacesBucketLifecycleRuleNoncurrentVersionExpirationArgs.builder()
            .days(days?.applyValue({ args0 -> args0 })).build()
}

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

    /**
     * @param value Specifies the number of days after which an object's non-current versions expire.
     */
    @JvmName("wewnpdtrmqmrhadc")
    public suspend fun days(`value`: Output) {
        this.days = value
    }

    /**
     * @param value Specifies the number of days after which an object's non-current versions expire.
     */
    @JvmName("xkldgnyitikgbrxe")
    public suspend fun days(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.days = mapped
    }

    internal fun build(): SpacesBucketLifecycleRuleNoncurrentVersionExpirationArgs =
        SpacesBucketLifecycleRuleNoncurrentVersionExpirationArgs(
            days = days,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy