com.pulumi.gcp.compute.kotlin.inputs.GetInstanceSerialPortPlainArgs.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.compute.kotlin.inputs
import com.pulumi.gcp.compute.inputs.GetInstanceSerialPortPlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* A collection of arguments for invoking getInstanceSerialPort.
* @property instance The name of the Compute Instance to read output from.
* @property port The number of the serial port to read output from. Possible values are 1-4.
* - - -
* @property project The project in which the Compute Instance exists. If it
* is not provided, the provider project is used.
* @property zone The zone in which the Compute Instance exists.
* If it is not provided, the provider zone is used.
*/
public data class GetInstanceSerialPortPlainArgs(
public val instance: String,
public val port: Int,
public val project: String? = null,
public val zone: String? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.compute.inputs.GetInstanceSerialPortPlainArgs =
com.pulumi.gcp.compute.inputs.GetInstanceSerialPortPlainArgs.builder()
.instance(instance.let({ args0 -> args0 }))
.port(port.let({ args0 -> args0 }))
.project(project?.let({ args0 -> args0 }))
.zone(zone?.let({ args0 -> args0 })).build()
}
/**
* Builder for [GetInstanceSerialPortPlainArgs].
*/
@PulumiTagMarker
public class GetInstanceSerialPortPlainArgsBuilder internal constructor() {
private var instance: String? = null
private var port: Int? = null
private var project: String? = null
private var zone: String? = null
/**
* @param value The name of the Compute Instance to read output from.
*/
@JvmName("ghuueiwlyintnadi")
public suspend fun instance(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.instance = mapped
}
/**
* @param value The number of the serial port to read output from. Possible values are 1-4.
* - - -
*/
@JvmName("eflhenehvtksjqck")
public suspend fun port(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.port = mapped
}
/**
* @param value The project in which the Compute Instance exists. If it
* is not provided, the provider project is used.
*/
@JvmName("lyapwoutcaarfjkx")
public suspend fun project(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.project = mapped
}
/**
* @param value The zone in which the Compute Instance exists.
* If it is not provided, the provider zone is used.
*/
@JvmName("rhgtqtxrglqkembu")
public suspend fun zone(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.zone = mapped
}
internal fun build(): GetInstanceSerialPortPlainArgs = GetInstanceSerialPortPlainArgs(
instance = instance ?: throw PulumiNullFieldException("instance"),
port = port ?: throw PulumiNullFieldException("port"),
project = project,
zone = zone,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy