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

com.pulumi.alicloud.oss.kotlin.inputs.BucketLifecycleRuleExpirationArgs.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: 3.62.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.alicloud.oss.kotlin.inputs

import com.pulumi.alicloud.oss.inputs.BucketLifecycleRuleExpirationArgs.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.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property createdBeforeDate Specifies the time before which the rules take effect. The date must conform to the ISO8601 format and always be UTC 00:00. For example: 2002-10-11T00:00:00.000Z indicates that parts created before 2002-10-11T00:00:00.000Z are deleted, and parts created after this time (including this time) are not deleted.
 * @property date Specifies the date after which you want the corresponding action to take effect. The value obeys ISO8601 format like `2017-03-09`.
 * @property days Specifies the number of days noncurrent object versions transition.
 * @property expiredObjectDeleteMarker On a versioned bucket (versioning-enabled or versioning-suspended bucket), you can add this element in the lifecycle configuration to direct OSS to delete expired object delete markers. This cannot be specified with Days, Date or CreatedBeforeDate in a Lifecycle Expiration Policy.
 * `NOTE`: One and only one of "date", "days", "created_before_date" and "expired_object_delete_marker" can be specified in one expiration configuration.
 */
public data class BucketLifecycleRuleExpirationArgs(
    public val createdBeforeDate: Output? = null,
    public val date: Output? = null,
    public val days: Output? = null,
    public val expiredObjectDeleteMarker: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.alicloud.oss.inputs.BucketLifecycleRuleExpirationArgs =
        com.pulumi.alicloud.oss.inputs.BucketLifecycleRuleExpirationArgs.builder()
            .createdBeforeDate(createdBeforeDate?.applyValue({ args0 -> args0 }))
            .date(date?.applyValue({ args0 -> args0 }))
            .days(days?.applyValue({ args0 -> args0 }))
            .expiredObjectDeleteMarker(expiredObjectDeleteMarker?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [BucketLifecycleRuleExpirationArgs].
 */
@PulumiTagMarker
public class BucketLifecycleRuleExpirationArgsBuilder internal constructor() {
    private var createdBeforeDate: Output? = null

    private var date: Output? = null

    private var days: Output? = null

    private var expiredObjectDeleteMarker: Output? = null

    /**
     * @param value Specifies the time before which the rules take effect. The date must conform to the ISO8601 format and always be UTC 00:00. For example: 2002-10-11T00:00:00.000Z indicates that parts created before 2002-10-11T00:00:00.000Z are deleted, and parts created after this time (including this time) are not deleted.
     */
    @JvmName("cccawyhelgaunpex")
    public suspend fun createdBeforeDate(`value`: Output) {
        this.createdBeforeDate = value
    }

    /**
     * @param value Specifies the date after which you want the corresponding action to take effect. The value obeys ISO8601 format like `2017-03-09`.
     */
    @JvmName("hxkkgrdwqihhchgc")
    public suspend fun date(`value`: Output) {
        this.date = value
    }

    /**
     * @param value Specifies the number of days noncurrent object versions transition.
     */
    @JvmName("uarmbeieiabgqkad")
    public suspend fun days(`value`: Output) {
        this.days = value
    }

    /**
     * @param value On a versioned bucket (versioning-enabled or versioning-suspended bucket), you can add this element in the lifecycle configuration to direct OSS to delete expired object delete markers. This cannot be specified with Days, Date or CreatedBeforeDate in a Lifecycle Expiration Policy.
     * `NOTE`: One and only one of "date", "days", "created_before_date" and "expired_object_delete_marker" can be specified in one expiration configuration.
     */
    @JvmName("wntennuxmvguxsgs")
    public suspend fun expiredObjectDeleteMarker(`value`: Output) {
        this.expiredObjectDeleteMarker = value
    }

    /**
     * @param value Specifies the time before which the rules take effect. The date must conform to the ISO8601 format and always be UTC 00:00. For example: 2002-10-11T00:00:00.000Z indicates that parts created before 2002-10-11T00:00:00.000Z are deleted, and parts created after this time (including this time) are not deleted.
     */
    @JvmName("haqfonkepkfjlsdk")
    public suspend fun createdBeforeDate(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.createdBeforeDate = mapped
    }

    /**
     * @param value Specifies the date after which you want the corresponding action to take effect. The value obeys ISO8601 format like `2017-03-09`.
     */
    @JvmName("tsixkglueisetbgd")
    public suspend fun date(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.date = mapped
    }

    /**
     * @param value Specifies the number of days noncurrent object versions transition.
     */
    @JvmName("ajcwsoijvfhmwpmf")
    public suspend fun days(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.days = mapped
    }

    /**
     * @param value On a versioned bucket (versioning-enabled or versioning-suspended bucket), you can add this element in the lifecycle configuration to direct OSS to delete expired object delete markers. This cannot be specified with Days, Date or CreatedBeforeDate in a Lifecycle Expiration Policy.
     * `NOTE`: One and only one of "date", "days", "created_before_date" and "expired_object_delete_marker" can be specified in one expiration configuration.
     */
    @JvmName("imldhcbhbntxvuqk")
    public suspend fun expiredObjectDeleteMarker(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.expiredObjectDeleteMarker = mapped
    }

    internal fun build(): BucketLifecycleRuleExpirationArgs = BucketLifecycleRuleExpirationArgs(
        createdBeforeDate = createdBeforeDate,
        date = date,
        days = days,
        expiredObjectDeleteMarker = expiredObjectDeleteMarker,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy