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

com.pulumi.azure.devtest.kotlin.outputs.WindowsVirtualMachineInboundNatRule.kt Maven / Gradle / Ivy

@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 WindowsVirtualMachineInboundNatRule(
    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.WindowsVirtualMachineInboundNatRule): WindowsVirtualMachineInboundNatRule = WindowsVirtualMachineInboundNatRule(
            backendPort = javaType.backendPort(),
            frontendPort = javaType.frontendPort().map({ args0 -> args0 }).orElse(null),
            protocol = javaType.protocol(),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy