
com.pulumi.azure.network.kotlin.inputs.GetSubnetPlainArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.network.kotlin.inputs
import com.pulumi.azure.network.inputs.GetSubnetPlainArgs.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 getSubnet.
* @property name Specifies the name of the Subnet.
* @property resourceGroupName Specifies the name of the resource group the Virtual Network is located in.
* @property virtualNetworkName Specifies the name of the Virtual Network this Subnet is located within.
*/
public data class GetSubnetPlainArgs(
public val name: String,
public val resourceGroupName: String,
public val virtualNetworkName: String,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.network.inputs.GetSubnetPlainArgs =
com.pulumi.azure.network.inputs.GetSubnetPlainArgs.builder()
.name(name.let({ args0 -> args0 }))
.resourceGroupName(resourceGroupName.let({ args0 -> args0 }))
.virtualNetworkName(virtualNetworkName.let({ args0 -> args0 })).build()
}
/**
* Builder for [GetSubnetPlainArgs].
*/
@PulumiTagMarker
public class GetSubnetPlainArgsBuilder internal constructor() {
private var name: String? = null
private var resourceGroupName: String? = null
private var virtualNetworkName: String? = null
/**
* @param value Specifies the name of the Subnet.
*/
@JvmName("yguescpkculaasbr")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.name = mapped
}
/**
* @param value Specifies the name of the resource group the Virtual Network is located in.
*/
@JvmName("aelntycgsbonesmn")
public suspend fun resourceGroupName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.resourceGroupName = mapped
}
/**
* @param value Specifies the name of the Virtual Network this Subnet is located within.
*/
@JvmName("fmctgsqyjpxvxnxu")
public suspend fun virtualNetworkName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.virtualNetworkName = mapped
}
internal fun build(): GetSubnetPlainArgs = GetSubnetPlainArgs(
name = name ?: throw PulumiNullFieldException("name"),
resourceGroupName = resourceGroupName ?: throw PulumiNullFieldException("resourceGroupName"),
virtualNetworkName = virtualNetworkName ?: throw PulumiNullFieldException("virtualNetworkName"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy