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

com.pulumi.aws.dlm.kotlin.inputs.LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleArgs.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.dlm.kotlin.inputs

import com.pulumi.aws.dlm.inputs.LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleArgs.builder
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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property cmkArn
 * @property copyTags
 * @property deprecateRule
 * @property encrypted
 * @property retainRule
 * @property target
 */
public data class LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleArgs(
    public val cmkArn: Output? = null,
    public val copyTags: Output? = null,
    public val deprecateRule: Output? = null,
    public val encrypted: Output,
    public val retainRule: Output? = null,
    public val target: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.dlm.inputs.LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleArgs =
        com.pulumi.aws.dlm.inputs.LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleArgs.builder()
            .cmkArn(cmkArn?.applyValue({ args0 -> args0 }))
            .copyTags(copyTags?.applyValue({ args0 -> args0 }))
            .deprecateRule(deprecateRule?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .encrypted(encrypted.applyValue({ args0 -> args0 }))
            .retainRule(retainRule?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .target(target.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleArgs].
 */
@PulumiTagMarker
public class LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleArgsBuilder internal constructor() {
    private var cmkArn: Output? = null

    private var copyTags: Output? = null

    private var deprecateRule:
        Output? = null

    private var encrypted: Output? = null

    private var retainRule:
        Output? = null

    private var target: Output? = null

    /**
     * @param value
     */
    @JvmName("tutcgdsgalttagbw")
    public suspend fun cmkArn(`value`: Output) {
        this.cmkArn = value
    }

    /**
     * @param value
     */
    @JvmName("usncpwqrmpgfiwnn")
    public suspend fun copyTags(`value`: Output) {
        this.copyTags = value
    }

    /**
     * @param value
     */
    @JvmName("ltyhblqvxwnkowky")
    public suspend fun deprecateRule(`value`: Output) {
        this.deprecateRule = value
    }

    /**
     * @param value
     */
    @JvmName("xwpurtgjlfcdakpj")
    public suspend fun encrypted(`value`: Output) {
        this.encrypted = value
    }

    /**
     * @param value
     */
    @JvmName("gyuixmnlegjllibo")
    public suspend fun retainRule(`value`: Output) {
        this.retainRule = value
    }

    /**
     * @param value
     */
    @JvmName("loobdfpnkhmhkllw")
    public suspend fun target(`value`: Output) {
        this.target = value
    }

    /**
     * @param value
     */
    @JvmName("rnnisrjlynwexvbn")
    public suspend fun cmkArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cmkArn = mapped
    }

    /**
     * @param value
     */
    @JvmName("pdjdeelxqdugkgjc")
    public suspend fun copyTags(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.copyTags = mapped
    }

    /**
     * @param value
     */
    @JvmName("qlbpaarcughkiilu")
    public suspend fun deprecateRule(`value`: LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleDeprecateRuleArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.deprecateRule = mapped
    }

    /**
     * @param argument
     */
    @JvmName("cmdqxsdnijybtbqs")
    public suspend fun deprecateRule(argument: suspend LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleDeprecateRuleArgsBuilder.() -> Unit) {
        val toBeMapped =
            LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleDeprecateRuleArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.deprecateRule = mapped
    }

    /**
     * @param value
     */
    @JvmName("lblhkplhldvetdmr")
    public suspend fun encrypted(`value`: Boolean) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.encrypted = mapped
    }

    /**
     * @param value
     */
    @JvmName("nqburiaobdmjrsnf")
    public suspend fun retainRule(`value`: LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleRetainRuleArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.retainRule = mapped
    }

    /**
     * @param argument
     */
    @JvmName("pmihcwammnpaxtej")
    public suspend fun retainRule(argument: suspend LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleRetainRuleArgsBuilder.() -> Unit) {
        val toBeMapped =
            LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleRetainRuleArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.retainRule = mapped
    }

    /**
     * @param value
     */
    @JvmName("jhsxsnentiytkfwb")
    public suspend fun target(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.target = mapped
    }

    internal fun build(): LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleArgs =
        LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleArgs(
            cmkArn = cmkArn,
            copyTags = copyTags,
            deprecateRule = deprecateRule,
            encrypted = encrypted ?: throw PulumiNullFieldException("encrypted"),
            retainRule = retainRule,
            target = target ?: throw PulumiNullFieldException("target"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy