com.pulumi.azure.network.kotlin.inputs.GetNatGatewayPlainArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.network.kotlin.inputs
import com.pulumi.azure.network.inputs.GetNatGatewayPlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* A collection of arguments for invoking getNatGateway.
* @property name Specifies the Name of the NAT Gateway.
* @property publicIpAddressIds A list of existing Public IP Address resource IDs which the NAT Gateway is using.
* @property publicIpPrefixIds A list of existing Public IP Prefix resource IDs which the NAT Gateway is using.
* @property resourceGroupName Specifies the name of the Resource Group where the NAT Gateway exists.
*/
public data class GetNatGatewayPlainArgs(
public val name: String,
public val publicIpAddressIds: List? = null,
public val publicIpPrefixIds: List? = null,
public val resourceGroupName: String,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.network.inputs.GetNatGatewayPlainArgs =
com.pulumi.azure.network.inputs.GetNatGatewayPlainArgs.builder()
.name(name.let({ args0 -> args0 }))
.publicIpAddressIds(publicIpAddressIds?.let({ args0 -> args0.map({ args0 -> args0 }) }))
.publicIpPrefixIds(publicIpPrefixIds?.let({ args0 -> args0.map({ args0 -> args0 }) }))
.resourceGroupName(resourceGroupName.let({ args0 -> args0 })).build()
}
/**
* Builder for [GetNatGatewayPlainArgs].
*/
@PulumiTagMarker
public class GetNatGatewayPlainArgsBuilder internal constructor() {
private var name: String? = null
private var publicIpAddressIds: List? = null
private var publicIpPrefixIds: List? = null
private var resourceGroupName: String? = null
/**
* @param value Specifies the Name of the NAT Gateway.
*/
@JvmName("cogegubtdhigojpu")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.name = mapped
}
/**
* @param value A list of existing Public IP Address resource IDs which the NAT Gateway is using.
*/
@JvmName("wumrhnesasurdtuy")
public suspend fun publicIpAddressIds(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.publicIpAddressIds = mapped
}
/**
* @param values A list of existing Public IP Address resource IDs which the NAT Gateway is using.
*/
@JvmName("rekxlqbndkwydntg")
public suspend fun publicIpAddressIds(vararg values: String) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> args0 })
this.publicIpAddressIds = mapped
}
/**
* @param value A list of existing Public IP Prefix resource IDs which the NAT Gateway is using.
*/
@JvmName("cpcohopvwsckmaah")
public suspend fun publicIpPrefixIds(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.publicIpPrefixIds = mapped
}
/**
* @param values A list of existing Public IP Prefix resource IDs which the NAT Gateway is using.
*/
@JvmName("sagyrspfgossnvya")
public suspend fun publicIpPrefixIds(vararg values: String) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> args0 })
this.publicIpPrefixIds = mapped
}
/**
* @param value Specifies the name of the Resource Group where the NAT Gateway exists.
*/
@JvmName("putjcapyugfsiuex")
public suspend fun resourceGroupName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.resourceGroupName = mapped
}
internal fun build(): GetNatGatewayPlainArgs = GetNatGatewayPlainArgs(
name = name ?: throw PulumiNullFieldException("name"),
publicIpAddressIds = publicIpAddressIds,
publicIpPrefixIds = publicIpPrefixIds,
resourceGroupName = resourceGroupName ?: throw PulumiNullFieldException("resourceGroupName"),
)
}