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

com.pulumi.azure.lb.kotlin.inputs.GetLBOutboundRulePlainArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.lb.kotlin.inputs

import com.pulumi.azure.lb.inputs.GetLBOutboundRulePlainArgs.builder
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

/**
 * A collection of arguments for invoking getLBOutboundRule.
 * @property loadbalancerId The ID of the Load Balancer in which the Outbound Rule exists.
 * @property name The name of this Load Balancer Outbound Rule.
 */
public data class GetLBOutboundRulePlainArgs(
    public val loadbalancerId: String,
    public val name: String,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.lb.inputs.GetLBOutboundRulePlainArgs =
        com.pulumi.azure.lb.inputs.GetLBOutboundRulePlainArgs.builder()
            .loadbalancerId(loadbalancerId.let({ args0 -> args0 }))
            .name(name.let({ args0 -> args0 })).build()
}

/**
 * Builder for [GetLBOutboundRulePlainArgs].
 */
@PulumiTagMarker
public class GetLBOutboundRulePlainArgsBuilder internal constructor() {
    private var loadbalancerId: String? = null

    private var name: String? = null

    /**
     * @param value The ID of the Load Balancer in which the Outbound Rule exists.
     */
    @JvmName("ntxptavsxbggcgtp")
    public suspend fun loadbalancerId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.loadbalancerId = mapped
    }

    /**
     * @param value The name of this Load Balancer Outbound Rule.
     */
    @JvmName("osaiowqktrkkuxyp")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.name = mapped
    }

    internal fun build(): GetLBOutboundRulePlainArgs = GetLBOutboundRulePlainArgs(
        loadbalancerId = loadbalancerId ?: throw PulumiNullFieldException("loadbalancerId"),
        name = name ?: throw PulumiNullFieldException("name"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy