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

com.pulumi.azure.devtest.kotlin.outputs.LinuxVirtualMachineInboundNatRule.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.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.devtest.kotlin.outputs

import kotlin.Int
import kotlin.String
import kotlin.Suppress

/**
 *
 * @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 LinuxVirtualMachineInboundNatRule(
    public val backendPort: Int,
    public val frontendPort: Int? = null,
    public val protocol: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.devtest.outputs.LinuxVirtualMachineInboundNatRule): LinuxVirtualMachineInboundNatRule = LinuxVirtualMachineInboundNatRule(
            backendPort = javaType.backendPort(),
            frontendPort = javaType.frontendPort().map({ args0 -> args0 }).orElse(null),
            protocol = javaType.protocol(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy