com.pulumi.awsnative.networkmanager.kotlin.inputs.ConnectPeerBgpOptionsArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.networkmanager.kotlin.inputs
import com.pulumi.awsnative.networkmanager.inputs.ConnectPeerBgpOptionsArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Double
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Bgp options
* @property peerAsn The Peer ASN of the BGP.
*/
public data class ConnectPeerBgpOptionsArgs(
public val peerAsn: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.networkmanager.inputs.ConnectPeerBgpOptionsArgs =
com.pulumi.awsnative.networkmanager.inputs.ConnectPeerBgpOptionsArgs.builder()
.peerAsn(peerAsn?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ConnectPeerBgpOptionsArgs].
*/
@PulumiTagMarker
public class ConnectPeerBgpOptionsArgsBuilder internal constructor() {
private var peerAsn: Output? = null
/**
* @param value The Peer ASN of the BGP.
*/
@JvmName("ncffshckjqaucpim")
public suspend fun peerAsn(`value`: Output) {
this.peerAsn = value
}
/**
* @param value The Peer ASN of the BGP.
*/
@JvmName("uucmhpwxstpbxslu")
public suspend fun peerAsn(`value`: Double?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.peerAsn = mapped
}
internal fun build(): ConnectPeerBgpOptionsArgs = ConnectPeerBgpOptionsArgs(
peerAsn = peerAsn,
)
}