All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azure.devtest.kotlin.inputs.WindowsVirtualMachineInboundNatRuleArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.devtest.kotlin.inputs

import com.pulumi.azure.devtest.inputs.WindowsVirtualMachineInboundNatRuleArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
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

/**
 *
 * @property backendPort The Backend Port associated with this NAT Rule. Changing this forces a new resource to be created.
 * @property frontendPort The frontend port associated with this Inbound NAT Rule.
 * @property protocol The Protocol used for this NAT Rule. Possible values are `Tcp` and `Udp`.
 */
public data class WindowsVirtualMachineInboundNatRuleArgs(
    public val backendPort: Output,
    public val frontendPort: Output? = null,
    public val protocol: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.devtest.inputs.WindowsVirtualMachineInboundNatRuleArgs =
        com.pulumi.azure.devtest.inputs.WindowsVirtualMachineInboundNatRuleArgs.builder()
            .backendPort(backendPort.applyValue({ args0 -> args0 }))
            .frontendPort(frontendPort?.applyValue({ args0 -> args0 }))
            .protocol(protocol.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [WindowsVirtualMachineInboundNatRuleArgs].
 */
@PulumiTagMarker
public class WindowsVirtualMachineInboundNatRuleArgsBuilder internal constructor() {
    private var backendPort: Output? = null

    private var frontendPort: Output? = null

    private var protocol: Output? = null

    /**
     * @param value The Backend Port associated with this NAT Rule. Changing this forces a new resource to be created.
     */
    @JvmName("vtvbmjesjusblfge")
    public suspend fun backendPort(`value`: Output) {
        this.backendPort = value
    }

    /**
     * @param value The frontend port associated with this Inbound NAT Rule.
     */
    @JvmName("gabuyfkwglntwvvb")
    public suspend fun frontendPort(`value`: Output) {
        this.frontendPort = value
    }

    /**
     * @param value The Protocol used for this NAT Rule. Possible values are `Tcp` and `Udp`.
     */
    @JvmName("giubadbbpcmutdmc")
    public suspend fun protocol(`value`: Output) {
        this.protocol = value
    }

    /**
     * @param value The Backend Port associated with this NAT Rule. Changing this forces a new resource to be created.
     */
    @JvmName("ewxokihkroiiobiw")
    public suspend fun backendPort(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.backendPort = mapped
    }

    /**
     * @param value The frontend port associated with this Inbound NAT Rule.
     */
    @JvmName("akmjdmsyoaejdgrt")
    public suspend fun frontendPort(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.frontendPort = mapped
    }

    /**
     * @param value The Protocol used for this NAT Rule. Possible values are `Tcp` and `Udp`.
     */
    @JvmName("laucibrdiawvwcjs")
    public suspend fun protocol(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.protocol = mapped
    }

    internal fun build(): WindowsVirtualMachineInboundNatRuleArgs =
        WindowsVirtualMachineInboundNatRuleArgs(
            backendPort = backendPort ?: throw PulumiNullFieldException("backendPort"),
            frontendPort = frontendPort,
            protocol = protocol ?: throw PulumiNullFieldException("protocol"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy