com.pulumi.gcp.dns.kotlin.inputs.ManagedZonePeeringConfigArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.dns.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.dns.inputs.ManagedZonePeeringConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property targetNetwork The network with which to peer.
* Structure is documented below.
*/
public data class ManagedZonePeeringConfigArgs(
public val targetNetwork: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.dns.inputs.ManagedZonePeeringConfigArgs =
com.pulumi.gcp.dns.inputs.ManagedZonePeeringConfigArgs.builder()
.targetNetwork(targetNetwork.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [ManagedZonePeeringConfigArgs].
*/
@PulumiTagMarker
public class ManagedZonePeeringConfigArgsBuilder internal constructor() {
private var targetNetwork: Output? = null
/**
* @param value The network with which to peer.
* Structure is documented below.
*/
@JvmName("yhuutbidwyyglwfe")
public suspend fun targetNetwork(`value`: Output) {
this.targetNetwork = value
}
/**
* @param value The network with which to peer.
* Structure is documented below.
*/
@JvmName("jcsvhqawnrpykgay")
public suspend fun targetNetwork(`value`: ManagedZonePeeringConfigTargetNetworkArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.targetNetwork = mapped
}
/**
* @param argument The network with which to peer.
* Structure is documented below.
*/
@JvmName("qesuageyydhyrvsx")
public suspend fun targetNetwork(argument: suspend ManagedZonePeeringConfigTargetNetworkArgsBuilder.() -> Unit) {
val toBeMapped = ManagedZonePeeringConfigTargetNetworkArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.targetNetwork = mapped
}
internal fun build(): ManagedZonePeeringConfigArgs = ManagedZonePeeringConfigArgs(
targetNetwork = targetNetwork ?: throw PulumiNullFieldException("targetNetwork"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy