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

com.pulumi.azure.devtest.kotlin.inputs.VirtualNetworkSubnetArgs.kt Maven / Gradle / Ivy

@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 com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
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 sharedPublicIpAddress A `shared_public_ip_address` block as defined below.
 * @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 sharedPublicIpAddress: 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 }))
            .sharedPublicIpAddress(
                sharedPublicIpAddress?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .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 sharedPublicIpAddress: 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("anaukolbedqdbxqn")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value A `shared_public_ip_address` block as defined below.
     */
    @JvmName("kyyjejorexfobcea")
    public suspend fun sharedPublicIpAddress(`value`: Output) {
        this.sharedPublicIpAddress = value
    }

    /**
     * @param value Can this subnet be used for creating Virtual Machines? Possible values are `Allow`, `Default` and `Deny`. Defaults to `Allow`.
     */
    @JvmName("jiopfiwibwqsomgr")
    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("wnqipitiwgdyisgn")
    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("uqrdmwgcfittajds")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value A `shared_public_ip_address` block as defined below.
     */
    @JvmName("seysyqaktiynhihn")
    public suspend fun sharedPublicIpAddress(`value`: VirtualNetworkSubnetSharedPublicIpAddressArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sharedPublicIpAddress = mapped
    }

    /**
     * @param argument A `shared_public_ip_address` block as defined below.
     */
    @JvmName("ejwcmmnlgvfvqnja")
    public suspend fun sharedPublicIpAddress(argument: suspend VirtualNetworkSubnetSharedPublicIpAddressArgsBuilder.() -> Unit) {
        val toBeMapped = VirtualNetworkSubnetSharedPublicIpAddressArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.sharedPublicIpAddress = mapped
    }

    /**
     * @param value Can this subnet be used for creating Virtual Machines? Possible values are `Allow`, `Default` and `Deny`. Defaults to `Allow`.
     */
    @JvmName("ioiasmnbplvosddd")
    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("rfjbdptjudswunyw")
    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,
        sharedPublicIpAddress = sharedPublicIpAddress,
        useInVirtualMachineCreation = useInVirtualMachineCreation,
        usePublicIpAddress = usePublicIpAddress,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy