com.pulumi.gcp.netapp.kotlin.inputs.VolumeRestoreParametersArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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.VolumeRestoreParametersArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property sourceBackup Full name of the snapshot to use for creating this volume.
* `source_snapshot` and `source_backup` cannot be used simultaneously.
* Format: `projects/{{project}}/locations/{{location}}/backupVaults/{{backupVaultId}}/backups/{{backup}}`.
* @property sourceSnapshot Full name of the snapshot to use for creating this volume.
* `source_snapshot` and `source_backup` cannot be used simultaneously.
* Format: `projects/{{project}}/locations/{{location}}/volumes/{{volume}}/snapshots/{{snapshot}}`.
*/
public data class VolumeRestoreParametersArgs(
public val sourceBackup: Output? = null,
public val sourceSnapshot: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.netapp.inputs.VolumeRestoreParametersArgs =
com.pulumi.gcp.netapp.inputs.VolumeRestoreParametersArgs.builder()
.sourceBackup(sourceBackup?.applyValue({ args0 -> args0 }))
.sourceSnapshot(sourceSnapshot?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [VolumeRestoreParametersArgs].
*/
@PulumiTagMarker
public class VolumeRestoreParametersArgsBuilder internal constructor() {
private var sourceBackup: Output? = null
private var sourceSnapshot: Output? = null
/**
* @param value Full name of the snapshot to use for creating this volume.
* `source_snapshot` and `source_backup` cannot be used simultaneously.
* Format: `projects/{{project}}/locations/{{location}}/backupVaults/{{backupVaultId}}/backups/{{backup}}`.
*/
@JvmName("vlguwxbeqkldsglc")
public suspend fun sourceBackup(`value`: Output) {
this.sourceBackup = value
}
/**
* @param value Full name of the snapshot to use for creating this volume.
* `source_snapshot` and `source_backup` cannot be used simultaneously.
* Format: `projects/{{project}}/locations/{{location}}/volumes/{{volume}}/snapshots/{{snapshot}}`.
*/
@JvmName("rhflfkxlafcpwsnj")
public suspend fun sourceSnapshot(`value`: Output) {
this.sourceSnapshot = value
}
/**
* @param value Full name of the snapshot to use for creating this volume.
* `source_snapshot` and `source_backup` cannot be used simultaneously.
* Format: `projects/{{project}}/locations/{{location}}/backupVaults/{{backupVaultId}}/backups/{{backup}}`.
*/
@JvmName("wmssrsiuwvhjdtny")
public suspend fun sourceBackup(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.sourceBackup = mapped
}
/**
* @param value Full name of the snapshot to use for creating this volume.
* `source_snapshot` and `source_backup` cannot be used simultaneously.
* Format: `projects/{{project}}/locations/{{location}}/volumes/{{volume}}/snapshots/{{snapshot}}`.
*/
@JvmName("hhoabcuurhirfyii")
public suspend fun sourceSnapshot(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.sourceSnapshot = mapped
}
internal fun build(): VolumeRestoreParametersArgs = VolumeRestoreParametersArgs(
sourceBackup = sourceBackup,
sourceSnapshot = sourceSnapshot,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy