com.pulumi.azure.lb.kotlin.inputs.GetLBRulePlainArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.lb.kotlin.inputs
import com.pulumi.azure.lb.inputs.GetLBRulePlainArgs.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 getLBRule.
* @property loadbalancerId The ID of the Load Balancer Rule.
* @property name The name of this Load Balancer Rule.
*/
public data class GetLBRulePlainArgs(
public val loadbalancerId: String,
public val name: String,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.lb.inputs.GetLBRulePlainArgs =
com.pulumi.azure.lb.inputs.GetLBRulePlainArgs.builder()
.loadbalancerId(loadbalancerId.let({ args0 -> args0 }))
.name(name.let({ args0 -> args0 })).build()
}
/**
* Builder for [GetLBRulePlainArgs].
*/
@PulumiTagMarker
public class GetLBRulePlainArgsBuilder internal constructor() {
private var loadbalancerId: String? = null
private var name: String? = null
/**
* @param value The ID of the Load Balancer Rule.
*/
@JvmName("tfiefjcylittbnsp")
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 Rule.
*/
@JvmName("wwkxqyxhicvsqwyr")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.name = mapped
}
internal fun build(): GetLBRulePlainArgs = GetLBRulePlainArgs(
loadbalancerId = loadbalancerId ?: throw PulumiNullFieldException("loadbalancerId"),
name = name ?: throw PulumiNullFieldException("name"),
)
}