com.pulumi.gcp.notebooks.kotlin.inputs.RuntimeVirtualMachineArgs.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.RuntimeVirtualMachineArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property instanceId (Output)
* The unique identifier of the Managed Compute Engine instance.
* @property instanceName (Output)
* The user-friendly name of the Managed Compute Engine instance.
* @property virtualMachineConfig Virtual Machine configuration settings.
* Structure is documented below.
*/
public data class RuntimeVirtualMachineArgs(
public val instanceId: Output? = null,
public val instanceName: Output? = null,
public val virtualMachineConfig: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.notebooks.inputs.RuntimeVirtualMachineArgs =
com.pulumi.gcp.notebooks.inputs.RuntimeVirtualMachineArgs.builder()
.instanceId(instanceId?.applyValue({ args0 -> args0 }))
.instanceName(instanceName?.applyValue({ args0 -> args0 }))
.virtualMachineConfig(
virtualMachineConfig?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [RuntimeVirtualMachineArgs].
*/
@PulumiTagMarker
public class RuntimeVirtualMachineArgsBuilder internal constructor() {
private var instanceId: Output? = null
private var instanceName: Output? = null
private var virtualMachineConfig: Output? = null
/**
* @param value (Output)
* The unique identifier of the Managed Compute Engine instance.
*/
@JvmName("tsqvuilaidfybflv")
public suspend fun instanceId(`value`: Output) {
this.instanceId = value
}
/**
* @param value (Output)
* The user-friendly name of the Managed Compute Engine instance.
*/
@JvmName("rdcdowqlqdivkces")
public suspend fun instanceName(`value`: Output) {
this.instanceName = value
}
/**
* @param value Virtual Machine configuration settings.
* Structure is documented below.
*/
@JvmName("ncxgeokyfojbppan")
public suspend fun virtualMachineConfig(`value`: Output) {
this.virtualMachineConfig = value
}
/**
* @param value (Output)
* The unique identifier of the Managed Compute Engine instance.
*/
@JvmName("grlibihuhabifywy")
public suspend fun instanceId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.instanceId = mapped
}
/**
* @param value (Output)
* The user-friendly name of the Managed Compute Engine instance.
*/
@JvmName("dechyjdgqsrhdipt")
public suspend fun instanceName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.instanceName = mapped
}
/**
* @param value Virtual Machine configuration settings.
* Structure is documented below.
*/
@JvmName("qdqnjoasbpqlertu")
public suspend fun virtualMachineConfig(`value`: RuntimeVirtualMachineVirtualMachineConfigArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.virtualMachineConfig = mapped
}
/**
* @param argument Virtual Machine configuration settings.
* Structure is documented below.
*/
@JvmName("oduijddebgxfffmc")
public suspend fun virtualMachineConfig(argument: suspend RuntimeVirtualMachineVirtualMachineConfigArgsBuilder.() -> Unit) {
val toBeMapped = RuntimeVirtualMachineVirtualMachineConfigArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.virtualMachineConfig = mapped
}
internal fun build(): RuntimeVirtualMachineArgs = RuntimeVirtualMachineArgs(
instanceId = instanceId,
instanceName = instanceName,
virtualMachineConfig = virtualMachineConfig,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy