com.pulumi.gcp.notebooks.kotlin.inputs.InstanceVmImageArgs.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.notebooks.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.notebooks.inputs.InstanceVmImageArgs.builder
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 imageFamily Use this VM image family to find the image; the newest image in this family will be used.
* @property imageName Use VM image name to find the image.
* @property project The name of the Google Cloud project that this VM image belongs to.
* Format: projects/{project_id}
*/
public data class InstanceVmImageArgs(
public val imageFamily: Output? = null,
public val imageName: Output? = null,
public val project: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.notebooks.inputs.InstanceVmImageArgs =
com.pulumi.gcp.notebooks.inputs.InstanceVmImageArgs.builder()
.imageFamily(imageFamily?.applyValue({ args0 -> args0 }))
.imageName(imageName?.applyValue({ args0 -> args0 }))
.project(project.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [InstanceVmImageArgs].
*/
@PulumiTagMarker
public class InstanceVmImageArgsBuilder internal constructor() {
private var imageFamily: Output? = null
private var imageName: Output? = null
private var project: Output? = null
/**
* @param value Use this VM image family to find the image; the newest image in this family will be used.
*/
@JvmName("yycguguekbnrskwx")
public suspend fun imageFamily(`value`: Output) {
this.imageFamily = value
}
/**
* @param value Use VM image name to find the image.
*/
@JvmName("lfbqjinyumewonen")
public suspend fun imageName(`value`: Output) {
this.imageName = value
}
/**
* @param value The name of the Google Cloud project that this VM image belongs to.
* Format: projects/{project_id}
*/
@JvmName("wodgaidpqpdvuqoc")
public suspend fun project(`value`: Output) {
this.project = value
}
/**
* @param value Use this VM image family to find the image; the newest image in this family will be used.
*/
@JvmName("qkqkpqdlkmstsvya")
public suspend fun imageFamily(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.imageFamily = mapped
}
/**
* @param value Use VM image name to find the image.
*/
@JvmName("jvflnndtmkadsgib")
public suspend fun imageName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.imageName = mapped
}
/**
* @param value The name of the Google Cloud project that this VM image belongs to.
* Format: projects/{project_id}
*/
@JvmName("vxvngfobghsqpcxx")
public suspend fun project(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.project = mapped
}
internal fun build(): InstanceVmImageArgs = InstanceVmImageArgs(
imageFamily = imageFamily,
imageName = imageName,
project = project ?: throw PulumiNullFieldException("project"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy