![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.digitalocean.kotlin.inputs.GetDropletSnapshotPlainArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-digitalocean-kotlin Show documentation
Show all versions of pulumi-digitalocean-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.digitalocean.kotlin.inputs
import com.pulumi.digitalocean.inputs.GetDropletSnapshotPlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* A collection of arguments for invoking getDropletSnapshot.
* @property mostRecent If more than one result is returned, use the most recent Droplet snapshot.
* > **NOTE:** If more or less than a single match is returned by the search,
* the update will fail. Ensure that your search is specific enough to return
* a single Droplet snapshot ID only, or use `most_recent` to choose the most recent one.
* @property name The name of the Droplet snapshot.
* @property nameRegex A regex string to apply to the Droplet snapshot list returned by DigitalOcean. This allows more advanced filtering not supported from the DigitalOcean API. This filtering is done locally on what DigitalOcean returns.
* @property region A "slug" representing a DigitalOcean region (e.g. `nyc1`). If set, only Droplet snapshots available in the region will be returned.
*/
public data class GetDropletSnapshotPlainArgs(
public val mostRecent: Boolean? = null,
public val name: String? = null,
public val nameRegex: String? = null,
public val region: String? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.digitalocean.inputs.GetDropletSnapshotPlainArgs =
com.pulumi.digitalocean.inputs.GetDropletSnapshotPlainArgs.builder()
.mostRecent(mostRecent?.let({ args0 -> args0 }))
.name(name?.let({ args0 -> args0 }))
.nameRegex(nameRegex?.let({ args0 -> args0 }))
.region(region?.let({ args0 -> args0 })).build()
}
/**
* Builder for [GetDropletSnapshotPlainArgs].
*/
@PulumiTagMarker
public class GetDropletSnapshotPlainArgsBuilder internal constructor() {
private var mostRecent: Boolean? = null
private var name: String? = null
private var nameRegex: String? = null
private var region: String? = null
/**
* @param value If more than one result is returned, use the most recent Droplet snapshot.
* > **NOTE:** If more or less than a single match is returned by the search,
* the update will fail. Ensure that your search is specific enough to return
* a single Droplet snapshot ID only, or use `most_recent` to choose the most recent one.
*/
@JvmName("cpcobrtxxmtgfklu")
public suspend fun mostRecent(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.mostRecent = mapped
}
/**
* @param value The name of the Droplet snapshot.
*/
@JvmName("vuqqcdheteldgalw")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.name = mapped
}
/**
* @param value A regex string to apply to the Droplet snapshot list returned by DigitalOcean. This allows more advanced filtering not supported from the DigitalOcean API. This filtering is done locally on what DigitalOcean returns.
*/
@JvmName("rxvsxyfrsctemymu")
public suspend fun nameRegex(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.nameRegex = mapped
}
/**
* @param value A "slug" representing a DigitalOcean region (e.g. `nyc1`). If set, only Droplet snapshots available in the region will be returned.
*/
@JvmName("ydvjeahrtgpabljk")
public suspend fun region(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.region = mapped
}
internal fun build(): GetDropletSnapshotPlainArgs = GetDropletSnapshotPlainArgs(
mostRecent = mostRecent,
name = name,
nameRegex = nameRegex,
region = region,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy