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

com.pulumi.awsnative.s3.kotlin.inputs.BucketTransitionArgs.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: 1.11.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.s3.kotlin.inputs

import com.pulumi.awsnative.s3.inputs.BucketTransitionArgs.builder
import com.pulumi.awsnative.s3.kotlin.enums.BucketTransitionStorageClass
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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Specifies when an object transitions to a specified storage class. For more information about Amazon S3 lifecycle configuration rules, see [Transitioning Objects Using Amazon S3 Lifecycle](https://docs.aws.amazon.com/AmazonS3/latest/dev/lifecycle-transition-general-considerations.html) in the *Amazon S3 User Guide*.
 * @property storageClass The storage class to which you want the object to transition.
 * @property transitionDate Indicates when objects are transitioned to the specified storage class. The date value must be in ISO 8601 format. The time is always midnight UTC.
 * @property transitionInDays Indicates the number of days after creation when objects are transitioned to the specified storage class. The value must be a positive integer.
 */
public data class BucketTransitionArgs(
    public val storageClass: Output,
    public val transitionDate: Output? = null,
    public val transitionInDays: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.s3.inputs.BucketTransitionArgs =
        com.pulumi.awsnative.s3.inputs.BucketTransitionArgs.builder()
            .storageClass(storageClass.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .transitionDate(transitionDate?.applyValue({ args0 -> args0 }))
            .transitionInDays(transitionInDays?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [BucketTransitionArgs].
 */
@PulumiTagMarker
public class BucketTransitionArgsBuilder internal constructor() {
    private var storageClass: Output? = null

    private var transitionDate: Output? = null

    private var transitionInDays: Output? = null

    /**
     * @param value The storage class to which you want the object to transition.
     */
    @JvmName("hocefjysxhketkge")
    public suspend fun storageClass(`value`: Output) {
        this.storageClass = value
    }

    /**
     * @param value Indicates when objects are transitioned to the specified storage class. The date value must be in ISO 8601 format. The time is always midnight UTC.
     */
    @JvmName("rldxkvswqveijkgo")
    public suspend fun transitionDate(`value`: Output) {
        this.transitionDate = value
    }

    /**
     * @param value Indicates the number of days after creation when objects are transitioned to the specified storage class. The value must be a positive integer.
     */
    @JvmName("jbahcmfasoavusit")
    public suspend fun transitionInDays(`value`: Output) {
        this.transitionInDays = value
    }

    /**
     * @param value The storage class to which you want the object to transition.
     */
    @JvmName("ubjxeymbwsuacebv")
    public suspend fun storageClass(`value`: BucketTransitionStorageClass) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.storageClass = mapped
    }

    /**
     * @param value Indicates when objects are transitioned to the specified storage class. The date value must be in ISO 8601 format. The time is always midnight UTC.
     */
    @JvmName("sxujxymylnjovrbl")
    public suspend fun transitionDate(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.transitionDate = mapped
    }

    /**
     * @param value Indicates the number of days after creation when objects are transitioned to the specified storage class. The value must be a positive integer.
     */
    @JvmName("ttrhlonnqwpsxyao")
    public suspend fun transitionInDays(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.transitionInDays = mapped
    }

    internal fun build(): BucketTransitionArgs = BucketTransitionArgs(
        storageClass = storageClass ?: throw PulumiNullFieldException("storageClass"),
        transitionDate = transitionDate,
        transitionInDays = transitionInDays,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy