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

com.pulumi.awsnative.s3.kotlin.inputs.BucketReplicationTimeArgs.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.BucketReplicationTimeArgs.builder
import com.pulumi.awsnative.s3.kotlin.enums.BucketReplicationTimeStatus
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 com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * A container specifying S3 Replication Time Control (S3 RTC) related information, including whether S3 RTC is enabled and the time when all objects and operations on objects must be replicated. Must be specified together with a ``Metrics`` block.
 * @property status Specifies whether the replication time is enabled.
 * @property time A container specifying the time by which replication should be complete for all objects and operations on objects.
 */
public data class BucketReplicationTimeArgs(
    public val status: Output,
    public val time: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.s3.inputs.BucketReplicationTimeArgs =
        com.pulumi.awsnative.s3.inputs.BucketReplicationTimeArgs.builder()
            .status(status.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .time(time.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [BucketReplicationTimeArgs].
 */
@PulumiTagMarker
public class BucketReplicationTimeArgsBuilder internal constructor() {
    private var status: Output? = null

    private var time: Output? = null

    /**
     * @param value Specifies whether the replication time is enabled.
     */
    @JvmName("ohuibrlbwhsrrepr")
    public suspend fun status(`value`: Output) {
        this.status = value
    }

    /**
     * @param value A container specifying the time by which replication should be complete for all objects and operations on objects.
     */
    @JvmName("mvkwdomjsdxnurji")
    public suspend fun time(`value`: Output) {
        this.time = value
    }

    /**
     * @param value Specifies whether the replication time is enabled.
     */
    @JvmName("ohjwfkmnlcvyagkv")
    public suspend fun status(`value`: BucketReplicationTimeStatus) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.status = mapped
    }

    /**
     * @param value A container specifying the time by which replication should be complete for all objects and operations on objects.
     */
    @JvmName("jqvthcoqumsedxur")
    public suspend fun time(`value`: BucketReplicationTimeValueArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.time = mapped
    }

    /**
     * @param argument A container specifying the time by which replication should be complete for all objects and operations on objects.
     */
    @JvmName("oxdmcnfahgtfncfq")
    public suspend fun time(argument: suspend BucketReplicationTimeValueArgsBuilder.() -> Unit) {
        val toBeMapped = BucketReplicationTimeValueArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.time = mapped
    }

    internal fun build(): BucketReplicationTimeArgs = BucketReplicationTimeArgs(
        status = status ?: throw PulumiNullFieldException("status"),
        time = time ?: throw PulumiNullFieldException("time"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy