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

com.pulumi.aws.backup.kotlin.inputs.PlanAdvancedBackupSettingArgs.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.backup.kotlin.inputs

import com.pulumi.aws.backup.inputs.PlanAdvancedBackupSettingArgs.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 kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property backupOptions Specifies the backup option for a selected resource. This option is only available for Windows VSS backup jobs. Set to `{ WindowsVSS = "enabled" }` to enable Windows VSS backup option and create a VSS Windows backup.
 * @property resourceType The type of AWS resource to be backed up. For VSS Windows backups, the only supported resource type is Amazon EC2. Valid values: `EC2`.
 */
public data class PlanAdvancedBackupSettingArgs(
    public val backupOptions: Output>,
    public val resourceType: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.backup.inputs.PlanAdvancedBackupSettingArgs =
        com.pulumi.aws.backup.inputs.PlanAdvancedBackupSettingArgs.builder()
            .backupOptions(
                backupOptions.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .resourceType(resourceType.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [PlanAdvancedBackupSettingArgs].
 */
@PulumiTagMarker
public class PlanAdvancedBackupSettingArgsBuilder internal constructor() {
    private var backupOptions: Output>? = null

    private var resourceType: Output? = null

    /**
     * @param value Specifies the backup option for a selected resource. This option is only available for Windows VSS backup jobs. Set to `{ WindowsVSS = "enabled" }` to enable Windows VSS backup option and create a VSS Windows backup.
     */
    @JvmName("nbfgrlvundoyfmog")
    public suspend fun backupOptions(`value`: Output>) {
        this.backupOptions = value
    }

    /**
     * @param value The type of AWS resource to be backed up. For VSS Windows backups, the only supported resource type is Amazon EC2. Valid values: `EC2`.
     */
    @JvmName("xbncrrooquhuiyyh")
    public suspend fun resourceType(`value`: Output) {
        this.resourceType = value
    }

    /**
     * @param value Specifies the backup option for a selected resource. This option is only available for Windows VSS backup jobs. Set to `{ WindowsVSS = "enabled" }` to enable Windows VSS backup option and create a VSS Windows backup.
     */
    @JvmName("tppsmjxmhsvpxvnb")
    public suspend fun backupOptions(`value`: Map) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.backupOptions = mapped
    }

    /**
     * @param values Specifies the backup option for a selected resource. This option is only available for Windows VSS backup jobs. Set to `{ WindowsVSS = "enabled" }` to enable Windows VSS backup option and create a VSS Windows backup.
     */
    @JvmName("xysdtsbygpydvdro")
    public fun backupOptions(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.backupOptions = mapped
    }

    /**
     * @param value The type of AWS resource to be backed up. For VSS Windows backups, the only supported resource type is Amazon EC2. Valid values: `EC2`.
     */
    @JvmName("lmcpxeuwjvyucqqc")
    public suspend fun resourceType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.resourceType = mapped
    }

    internal fun build(): PlanAdvancedBackupSettingArgs = PlanAdvancedBackupSettingArgs(
        backupOptions = backupOptions ?: throw PulumiNullFieldException("backupOptions"),
        resourceType = resourceType ?: throw PulumiNullFieldException("resourceType"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy