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

com.pulumi.azurenative.migrate.kotlin.inputs.LoadBalancerNatRuleReferenceArgs.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.migrate.kotlin.inputs

import com.pulumi.azurenative.migrate.inputs.LoadBalancerNatRuleReferenceArgs.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.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Defines reference to load balancer NAT rules.
 * @property name Gets the name of the proxy resource on the target side.
 * @property sourceArmResourceId Gets the ARM resource ID of the tracked resource being referenced.
 */
public data class LoadBalancerNatRuleReferenceArgs(
    public val name: Output? = null,
    public val sourceArmResourceId: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.migrate.inputs.LoadBalancerNatRuleReferenceArgs =
        com.pulumi.azurenative.migrate.inputs.LoadBalancerNatRuleReferenceArgs.builder()
            .name(name?.applyValue({ args0 -> args0 }))
            .sourceArmResourceId(sourceArmResourceId.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [LoadBalancerNatRuleReferenceArgs].
 */
@PulumiTagMarker
public class LoadBalancerNatRuleReferenceArgsBuilder internal constructor() {
    private var name: Output? = null

    private var sourceArmResourceId: Output? = null

    /**
     * @param value Gets the name of the proxy resource on the target side.
     */
    @JvmName("lonkgqogfsqhypnj")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Gets the ARM resource ID of the tracked resource being referenced.
     */
    @JvmName("qinidtrnflmcxinf")
    public suspend fun sourceArmResourceId(`value`: Output) {
        this.sourceArmResourceId = value
    }

    /**
     * @param value Gets the name of the proxy resource on the target side.
     */
    @JvmName("srummdxalqfnhuyj")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Gets the ARM resource ID of the tracked resource being referenced.
     */
    @JvmName("wjmhmrygcfqknmhr")
    public suspend fun sourceArmResourceId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sourceArmResourceId = mapped
    }

    internal fun build(): LoadBalancerNatRuleReferenceArgs = LoadBalancerNatRuleReferenceArgs(
        name = name,
        sourceArmResourceId = sourceArmResourceId ?: throw PulumiNullFieldException("sourceArmResourceId"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy