![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.network.kotlin.inputs.SubnetDelegationArgs.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.network.kotlin.inputs
import com.pulumi.azure.network.inputs.SubnetDelegationArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property name A name for this delegation.
* @property serviceDelegation A `service_delegation` block as defined below.
*/
public data class SubnetDelegationArgs(
public val name: Output,
public val serviceDelegation: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.network.inputs.SubnetDelegationArgs =
com.pulumi.azure.network.inputs.SubnetDelegationArgs.builder()
.name(name.applyValue({ args0 -> args0 }))
.serviceDelegation(
serviceDelegation.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [SubnetDelegationArgs].
*/
@PulumiTagMarker
public class SubnetDelegationArgsBuilder internal constructor() {
private var name: Output? = null
private var serviceDelegation: Output? = null
/**
* @param value A name for this delegation.
*/
@JvmName("vxwocpnqwgjoorwo")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value A `service_delegation` block as defined below.
*/
@JvmName("eavytalomoeqbncw")
public suspend fun serviceDelegation(`value`: Output) {
this.serviceDelegation = value
}
/**
* @param value A name for this delegation.
*/
@JvmName("piusysaxdyxxebuy")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value A `service_delegation` block as defined below.
*/
@JvmName("wvoahbetaultedlg")
public suspend fun serviceDelegation(`value`: SubnetDelegationServiceDelegationArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.serviceDelegation = mapped
}
/**
* @param argument A `service_delegation` block as defined below.
*/
@JvmName("jajhoetibkiwxtvj")
public suspend fun serviceDelegation(argument: suspend SubnetDelegationServiceDelegationArgsBuilder.() -> Unit) {
val toBeMapped = SubnetDelegationServiceDelegationArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.serviceDelegation = mapped
}
internal fun build(): SubnetDelegationArgs = SubnetDelegationArgs(
name = name ?: throw PulumiNullFieldException("name"),
serviceDelegation = serviceDelegation ?: throw PulumiNullFieldException("serviceDelegation"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy