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

com.pulumi.gcp.netapp.kotlin.inputs.VolumeBackupConfigArgs.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: 8.13.1.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.netapp.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.netapp.inputs.VolumeBackupConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property backupPolicies Specify a single backup policy ID for scheduled backups. Format: `projects/{{projectId}}/locations/{{location}}/backupPolicies/{{backupPolicyName}}`
 * @property backupVault ID of the backup vault to use. A backup vault is reqired to create manual or scheduled backups.
 * Format: `projects/{{projectId}}/locations/{{location}}/backupVaults/{{backupVaultName}}`
 * @property scheduledBackupEnabled When set to true, scheduled backup is enabled on the volume. Omit if no backup_policy is specified.
 */
public data class VolumeBackupConfigArgs(
    public val backupPolicies: Output>? = null,
    public val backupVault: Output? = null,
    public val scheduledBackupEnabled: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.netapp.inputs.VolumeBackupConfigArgs =
        com.pulumi.gcp.netapp.inputs.VolumeBackupConfigArgs.builder()
            .backupPolicies(backupPolicies?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .backupVault(backupVault?.applyValue({ args0 -> args0 }))
            .scheduledBackupEnabled(scheduledBackupEnabled?.applyValue({ args0 -> args0 })).build()
}

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

    private var backupVault: Output? = null

    private var scheduledBackupEnabled: Output? = null

    /**
     * @param value Specify a single backup policy ID for scheduled backups. Format: `projects/{{projectId}}/locations/{{location}}/backupPolicies/{{backupPolicyName}}`
     */
    @JvmName("twsdgqacxhskxdal")
    public suspend fun backupPolicies(`value`: Output>) {
        this.backupPolicies = value
    }

    @JvmName("oxguvgaekxtoxwtm")
    public suspend fun backupPolicies(vararg values: Output) {
        this.backupPolicies = Output.all(values.asList())
    }

    /**
     * @param values Specify a single backup policy ID for scheduled backups. Format: `projects/{{projectId}}/locations/{{location}}/backupPolicies/{{backupPolicyName}}`
     */
    @JvmName("ipoaranqvddulplx")
    public suspend fun backupPolicies(values: List>) {
        this.backupPolicies = Output.all(values)
    }

    /**
     * @param value ID of the backup vault to use. A backup vault is reqired to create manual or scheduled backups.
     * Format: `projects/{{projectId}}/locations/{{location}}/backupVaults/{{backupVaultName}}`
     */
    @JvmName("gsxpcfblxgthcxsm")
    public suspend fun backupVault(`value`: Output) {
        this.backupVault = value
    }

    /**
     * @param value When set to true, scheduled backup is enabled on the volume. Omit if no backup_policy is specified.
     */
    @JvmName("ubxfastnrgosimkj")
    public suspend fun scheduledBackupEnabled(`value`: Output) {
        this.scheduledBackupEnabled = value
    }

    /**
     * @param value Specify a single backup policy ID for scheduled backups. Format: `projects/{{projectId}}/locations/{{location}}/backupPolicies/{{backupPolicyName}}`
     */
    @JvmName("rbqdrxwctunfqhdt")
    public suspend fun backupPolicies(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.backupPolicies = mapped
    }

    /**
     * @param values Specify a single backup policy ID for scheduled backups. Format: `projects/{{projectId}}/locations/{{location}}/backupPolicies/{{backupPolicyName}}`
     */
    @JvmName("huggivckrpulhyel")
    public suspend fun backupPolicies(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.backupPolicies = mapped
    }

    /**
     * @param value ID of the backup vault to use. A backup vault is reqired to create manual or scheduled backups.
     * Format: `projects/{{projectId}}/locations/{{location}}/backupVaults/{{backupVaultName}}`
     */
    @JvmName("lhffebxqiivrpjda")
    public suspend fun backupVault(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.backupVault = mapped
    }

    /**
     * @param value When set to true, scheduled backup is enabled on the volume. Omit if no backup_policy is specified.
     */
    @JvmName("akwjufkbtodhtern")
    public suspend fun scheduledBackupEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.scheduledBackupEnabled = mapped
    }

    internal fun build(): VolumeBackupConfigArgs = VolumeBackupConfigArgs(
        backupPolicies = backupPolicies,
        backupVault = backupVault,
        scheduledBackupEnabled = scheduledBackupEnabled,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy