com.pulumi.azure.devtest.kotlin.inputs.VirtualNetworkSubnetArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.devtest.kotlin.inputs
import com.pulumi.azure.devtest.inputs.VirtualNetworkSubnetArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property name Specifies the name of the Dev Test Virtual Network. Changing this forces a new resource to be created.
* @property useInVirtualMachineCreation Can this subnet be used for creating Virtual Machines? Possible values are `Allow`, `Default` and `Deny`. Defaults to `Allow`.
* @property usePublicIpAddress Can Virtual Machines in this Subnet use Public IP Addresses? Possible values are `Allow`, `Default` and `Deny`. Defaults to `Allow`.
*/
public data class VirtualNetworkSubnetArgs(
public val name: Output? = null,
public val useInVirtualMachineCreation: Output? = null,
public val usePublicIpAddress: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.devtest.inputs.VirtualNetworkSubnetArgs =
com.pulumi.azure.devtest.inputs.VirtualNetworkSubnetArgs.builder()
.name(name?.applyValue({ args0 -> args0 }))
.useInVirtualMachineCreation(useInVirtualMachineCreation?.applyValue({ args0 -> args0 }))
.usePublicIpAddress(usePublicIpAddress?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [VirtualNetworkSubnetArgs].
*/
@PulumiTagMarker
public class VirtualNetworkSubnetArgsBuilder internal constructor() {
private var name: Output? = null
private var useInVirtualMachineCreation: Output? = null
private var usePublicIpAddress: Output? = null
/**
* @param value Specifies the name of the Dev Test Virtual Network. Changing this forces a new resource to be created.
*/
@JvmName("scsxxdhoggfgrxmp")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value Can this subnet be used for creating Virtual Machines? Possible values are `Allow`, `Default` and `Deny`. Defaults to `Allow`.
*/
@JvmName("jacmafwsmnjesnoi")
public suspend fun useInVirtualMachineCreation(`value`: Output) {
this.useInVirtualMachineCreation = value
}
/**
* @param value Can Virtual Machines in this Subnet use Public IP Addresses? Possible values are `Allow`, `Default` and `Deny`. Defaults to `Allow`.
*/
@JvmName("hnbcgtnnnvoadxpb")
public suspend fun usePublicIpAddress(`value`: Output) {
this.usePublicIpAddress = value
}
/**
* @param value Specifies the name of the Dev Test Virtual Network. Changing this forces a new resource to be created.
*/
@JvmName("nqiadbmohnvaujcr")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value Can this subnet be used for creating Virtual Machines? Possible values are `Allow`, `Default` and `Deny`. Defaults to `Allow`.
*/
@JvmName("ivdcbfcenvtrvtjr")
public suspend fun useInVirtualMachineCreation(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.useInVirtualMachineCreation = mapped
}
/**
* @param value Can Virtual Machines in this Subnet use Public IP Addresses? Possible values are `Allow`, `Default` and `Deny`. Defaults to `Allow`.
*/
@JvmName("dfakpmsnerbghxfw")
public suspend fun usePublicIpAddress(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.usePublicIpAddress = mapped
}
internal fun build(): VirtualNetworkSubnetArgs = VirtualNetworkSubnetArgs(
name = name,
useInVirtualMachineCreation = useInVirtualMachineCreation,
usePublicIpAddress = usePublicIpAddress,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy