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

com.pulumi.azurenative.documentdb.kotlin.inputs.BackupPolicyMigrationStateArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.documentdb.kotlin.inputs

import com.pulumi.azurenative.documentdb.inputs.BackupPolicyMigrationStateArgs.builder
import com.pulumi.azurenative.documentdb.kotlin.enums.BackupPolicyMigrationStatus
import com.pulumi.azurenative.documentdb.kotlin.enums.BackupPolicyType
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * The object representing the state of the migration between the backup policies.
 * @property startTime Time at which the backup policy migration started (ISO-8601 format).
 * @property status Describes the status of migration between backup policy types.
 * @property targetType Describes the target backup policy type of the backup policy migration.
 */
public data class BackupPolicyMigrationStateArgs(
    public val startTime: Output? = null,
    public val status: Output>? = null,
    public val targetType: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.documentdb.inputs.BackupPolicyMigrationStateArgs =
        com.pulumi.azurenative.documentdb.inputs.BackupPolicyMigrationStateArgs.builder()
            .startTime(startTime?.applyValue({ args0 -> args0 }))
            .status(
                status?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .targetType(
                targetType?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            ).build()
}

/**
 * Builder for [BackupPolicyMigrationStateArgs].
 */
@PulumiTagMarker
public class BackupPolicyMigrationStateArgsBuilder internal constructor() {
    private var startTime: Output? = null

    private var status: Output>? = null

    private var targetType: Output>? = null

    /**
     * @param value Time at which the backup policy migration started (ISO-8601 format).
     */
    @JvmName("vjcmvtxbcfiwgrjr")
    public suspend fun startTime(`value`: Output) {
        this.startTime = value
    }

    /**
     * @param value Describes the status of migration between backup policy types.
     */
    @JvmName("pkmxpgihappvaqgn")
    public suspend fun status(`value`: Output>) {
        this.status = value
    }

    /**
     * @param value Describes the target backup policy type of the backup policy migration.
     */
    @JvmName("huarakohwygepbdp")
    public suspend fun targetType(`value`: Output>) {
        this.targetType = value
    }

    /**
     * @param value Time at which the backup policy migration started (ISO-8601 format).
     */
    @JvmName("dbugafbisdajjvnq")
    public suspend fun startTime(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.startTime = mapped
    }

    /**
     * @param value Describes the status of migration between backup policy types.
     */
    @JvmName("xpkhqowwwksmypdt")
    public suspend fun status(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.status = mapped
    }

    /**
     * @param value Describes the status of migration between backup policy types.
     */
    @JvmName("duxnbjocbstbtlxf")
    public fun status(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.status = mapped
    }

    /**
     * @param value Describes the status of migration between backup policy types.
     */
    @JvmName("qgpiacbnrfkfcsdc")
    public fun status(`value`: BackupPolicyMigrationStatus) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.status = mapped
    }

    /**
     * @param value Describes the target backup policy type of the backup policy migration.
     */
    @JvmName("hqyyaanobeenindp")
    public suspend fun targetType(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.targetType = mapped
    }

    /**
     * @param value Describes the target backup policy type of the backup policy migration.
     */
    @JvmName("qcfuprrrtqsnrmhp")
    public fun targetType(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.targetType = mapped
    }

    /**
     * @param value Describes the target backup policy type of the backup policy migration.
     */
    @JvmName("wrtsvlefputnmchv")
    public fun targetType(`value`: BackupPolicyType) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.targetType = mapped
    }

    internal fun build(): BackupPolicyMigrationStateArgs = BackupPolicyMigrationStateArgs(
        startTime = startTime,
        status = status,
        targetType = targetType,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy