![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.devtestlab.kotlin.inputs.PortArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-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.azurenative.devtestlab.kotlin.inputs
import com.pulumi.azurenative.devtestlab.inputs.PortArgs.builder
import com.pulumi.azurenative.devtestlab.kotlin.enums.TransportProtocol
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Properties of a network port.
* @property backendPort Backend port of the target virtual machine.
* @property transportProtocol Protocol type of the port.
*/
public data class PortArgs(
public val backendPort: Output? = null,
public val transportProtocol: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.devtestlab.inputs.PortArgs =
com.pulumi.azurenative.devtestlab.inputs.PortArgs.builder()
.backendPort(backendPort?.applyValue({ args0 -> args0 }))
.transportProtocol(
transportProtocol?.applyValue({ args0 ->
args0.transform(
{ args0 -> args0 },
{ args0 -> args0.let({ args0 -> args0.toJava() }) },
)
}),
).build()
}
/**
* Builder for [PortArgs].
*/
@PulumiTagMarker
public class PortArgsBuilder internal constructor() {
private var backendPort: Output? = null
private var transportProtocol: Output>? = null
/**
* @param value Backend port of the target virtual machine.
*/
@JvmName("vldjgknnaglbglqt")
public suspend fun backendPort(`value`: Output) {
this.backendPort = value
}
/**
* @param value Protocol type of the port.
*/
@JvmName("brwjyddweggqxunq")
public suspend fun transportProtocol(`value`: Output>) {
this.transportProtocol = value
}
/**
* @param value Backend port of the target virtual machine.
*/
@JvmName("bbwnfqtsrhjqxfiv")
public suspend fun backendPort(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.backendPort = mapped
}
/**
* @param value Protocol type of the port.
*/
@JvmName("kolihiwnhhodqrgr")
public suspend fun transportProtocol(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.transportProtocol = mapped
}
/**
* @param value Protocol type of the port.
*/
@JvmName("pwejgohofnaoikrf")
public fun transportProtocol(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.transportProtocol = mapped
}
/**
* @param value Protocol type of the port.
*/
@JvmName("apcymoqarnndhvfr")
public fun transportProtocol(`value`: TransportProtocol) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.transportProtocol = mapped
}
internal fun build(): PortArgs = PortArgs(
backendPort = backendPort,
transportProtocol = transportProtocol,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy