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

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

package com.pulumi.azure.netapp.kotlin.inputs

import com.pulumi.azure.netapp.inputs.VolumeDataProtectionSnapshotPolicyArgs.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.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property snapshotPolicyId Resource ID of the snapshot policy to apply to the volume.
 * A full example of the `data_protection_snapshot_policy` attribute usage can be found in the `./examples/netapp/nfsv3_volume_with_snapshot_policy` directory within the GitHub Repository
 * > **NOTE:** `data_protection_snapshot_policy` block can be used alone or with data_protection_replication in the primary volume only, if enabling it in the secondary, an error will be thrown.
 */
public data class VolumeDataProtectionSnapshotPolicyArgs(
    public val snapshotPolicyId: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.netapp.inputs.VolumeDataProtectionSnapshotPolicyArgs =
        com.pulumi.azure.netapp.inputs.VolumeDataProtectionSnapshotPolicyArgs.builder()
            .snapshotPolicyId(snapshotPolicyId.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [VolumeDataProtectionSnapshotPolicyArgs].
 */
@PulumiTagMarker
public class VolumeDataProtectionSnapshotPolicyArgsBuilder internal constructor() {
    private var snapshotPolicyId: Output? = null

    /**
     * @param value Resource ID of the snapshot policy to apply to the volume.
     * A full example of the `data_protection_snapshot_policy` attribute usage can be found in the `./examples/netapp/nfsv3_volume_with_snapshot_policy` directory within the GitHub Repository
     * > **NOTE:** `data_protection_snapshot_policy` block can be used alone or with data_protection_replication in the primary volume only, if enabling it in the secondary, an error will be thrown.
     */
    @JvmName("taetnkjdspwmcmpx")
    public suspend fun snapshotPolicyId(`value`: Output) {
        this.snapshotPolicyId = value
    }

    /**
     * @param value Resource ID of the snapshot policy to apply to the volume.
     * A full example of the `data_protection_snapshot_policy` attribute usage can be found in the `./examples/netapp/nfsv3_volume_with_snapshot_policy` directory within the GitHub Repository
     * > **NOTE:** `data_protection_snapshot_policy` block can be used alone or with data_protection_replication in the primary volume only, if enabling it in the secondary, an error will be thrown.
     */
    @JvmName("pdpvhhrtudhcjitt")
    public suspend fun snapshotPolicyId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.snapshotPolicyId = mapped
    }

    internal fun build(): VolumeDataProtectionSnapshotPolicyArgs =
        VolumeDataProtectionSnapshotPolicyArgs(
            snapshotPolicyId = snapshotPolicyId ?: throw PulumiNullFieldException("snapshotPolicyId"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy