
com.pulumi.azurenative.containerinstance.kotlin.inputs.ContainerGroupSubnetIdArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.containerinstance.kotlin.inputs
import com.pulumi.azurenative.containerinstance.inputs.ContainerGroupSubnetIdArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
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
/**
* Container group subnet information.
* @property id Resource ID of virtual network and subnet.
* @property name Friendly name for the subnet.
*/
public data class ContainerGroupSubnetIdArgs(
public val id: Output,
public val name: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.containerinstance.inputs.ContainerGroupSubnetIdArgs = com.pulumi.azurenative.containerinstance.inputs.ContainerGroupSubnetIdArgs.builder()
.id(id.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ContainerGroupSubnetIdArgs].
*/
@PulumiTagMarker
public class ContainerGroupSubnetIdArgsBuilder internal constructor() {
private var id: Output? = null
private var name: Output? = null
/**
* @param value Resource ID of virtual network and subnet.
*/
@JvmName("jgkwlvvdbiiqubin")
public suspend fun id(`value`: Output) {
this.id = value
}
/**
* @param value Friendly name for the subnet.
*/
@JvmName("srnmjoiklrkjjbmf")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value Resource ID of virtual network and subnet.
*/
@JvmName("ndwkkspngevwthee")
public suspend fun id(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.id = mapped
}
/**
* @param value Friendly name for the subnet.
*/
@JvmName("lugianpjkkyphreq")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
internal fun build(): ContainerGroupSubnetIdArgs = ContainerGroupSubnetIdArgs(
id = id ?: throw PulumiNullFieldException("id"),
name = name,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy