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

com.pulumi.azurenative.devtestlab.kotlin.outputs.InboundNatRuleResponse.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.devtestlab.kotlin.outputs

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

/**
 * A rule for NAT - exposing a VM's port (backendPort) on the public IP address using a load balancer.
 * @property backendPort The port to which the external traffic will be redirected.
 * @property frontendPort The external endpoint port of the inbound connection. Possible values range between 1 and 65535, inclusive. If unspecified, a value will be allocated automatically.
 * @property transportProtocol The transport protocol for the endpoint.
 */
public data class InboundNatRuleResponse(
    public val backendPort: Int? = null,
    public val frontendPort: Int? = null,
    public val transportProtocol: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azurenative.devtestlab.outputs.InboundNatRuleResponse): InboundNatRuleResponse = InboundNatRuleResponse(
            backendPort = javaType.backendPort().map({ args0 -> args0 }).orElse(null),
            frontendPort = javaType.frontendPort().map({ args0 -> args0 }).orElse(null),
            transportProtocol = javaType.transportProtocol().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy