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

com.pulumi.gcp.gkeonprem.kotlin.inputs.BareMetalClusterLoadBalancerBgpLbConfigBgpPeerConfigArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.20.1.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.gkeonprem.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterLoadBalancerBgpLbConfigBgpPeerConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property asn BGP autonomous system number (ASN) for the network that contains the
 * external peer device.
 * @property controlPlaneNodes The IP address of the control plane node that connects to the external
 * peer.
 * If you don't specify any control plane nodes, all control plane nodes
 * can connect to the external peer. If you specify one or more IP addresses,
 * only the nodes specified participate in peering sessions.
 * @property ipAddress The IP address of the external peer device.
 */
public data class BareMetalClusterLoadBalancerBgpLbConfigBgpPeerConfigArgs(
    public val asn: Output,
    public val controlPlaneNodes: Output>? = null,
    public val ipAddress: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterLoadBalancerBgpLbConfigBgpPeerConfigArgs =
        com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterLoadBalancerBgpLbConfigBgpPeerConfigArgs.builder()
            .asn(asn.applyValue({ args0 -> args0 }))
            .controlPlaneNodes(controlPlaneNodes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .ipAddress(ipAddress.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [BareMetalClusterLoadBalancerBgpLbConfigBgpPeerConfigArgs].
 */
@PulumiTagMarker
public class BareMetalClusterLoadBalancerBgpLbConfigBgpPeerConfigArgsBuilder internal constructor() {
    private var asn: Output? = null

    private var controlPlaneNodes: Output>? = null

    private var ipAddress: Output? = null

    /**
     * @param value BGP autonomous system number (ASN) for the network that contains the
     * external peer device.
     */
    @JvmName("frlhkjebebqgmlgt")
    public suspend fun asn(`value`: Output) {
        this.asn = value
    }

    /**
     * @param value The IP address of the control plane node that connects to the external
     * peer.
     * If you don't specify any control plane nodes, all control plane nodes
     * can connect to the external peer. If you specify one or more IP addresses,
     * only the nodes specified participate in peering sessions.
     */
    @JvmName("twiperfjlmxkgosm")
    public suspend fun controlPlaneNodes(`value`: Output>) {
        this.controlPlaneNodes = value
    }

    @JvmName("crorxlceaodecvaf")
    public suspend fun controlPlaneNodes(vararg values: Output) {
        this.controlPlaneNodes = Output.all(values.asList())
    }

    /**
     * @param values The IP address of the control plane node that connects to the external
     * peer.
     * If you don't specify any control plane nodes, all control plane nodes
     * can connect to the external peer. If you specify one or more IP addresses,
     * only the nodes specified participate in peering sessions.
     */
    @JvmName("inxdcpxgxbbxtlgx")
    public suspend fun controlPlaneNodes(values: List>) {
        this.controlPlaneNodes = Output.all(values)
    }

    /**
     * @param value The IP address of the external peer device.
     */
    @JvmName("emlhxuoomfysulpp")
    public suspend fun ipAddress(`value`: Output) {
        this.ipAddress = value
    }

    /**
     * @param value BGP autonomous system number (ASN) for the network that contains the
     * external peer device.
     */
    @JvmName("dhdmynfmauxqcdfr")
    public suspend fun asn(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.asn = mapped
    }

    /**
     * @param value The IP address of the control plane node that connects to the external
     * peer.
     * If you don't specify any control plane nodes, all control plane nodes
     * can connect to the external peer. If you specify one or more IP addresses,
     * only the nodes specified participate in peering sessions.
     */
    @JvmName("ryebrxakcyuutppq")
    public suspend fun controlPlaneNodes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.controlPlaneNodes = mapped
    }

    /**
     * @param values The IP address of the control plane node that connects to the external
     * peer.
     * If you don't specify any control plane nodes, all control plane nodes
     * can connect to the external peer. If you specify one or more IP addresses,
     * only the nodes specified participate in peering sessions.
     */
    @JvmName("fedqtbyvkjqveyqu")
    public suspend fun controlPlaneNodes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.controlPlaneNodes = mapped
    }

    /**
     * @param value The IP address of the external peer device.
     */
    @JvmName("ilewubjynegepjea")
    public suspend fun ipAddress(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ipAddress = mapped
    }

    internal fun build(): BareMetalClusterLoadBalancerBgpLbConfigBgpPeerConfigArgs =
        BareMetalClusterLoadBalancerBgpLbConfigBgpPeerConfigArgs(
            asn = asn ?: throw PulumiNullFieldException("asn"),
            controlPlaneNodes = controlPlaneNodes,
            ipAddress = ipAddress ?: throw PulumiNullFieldException("ipAddress"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy