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

com.pulumi.gcp.gkeonprem.kotlin.inputs.BareMetalClusterLoadBalancerBgpLbConfigAddressPoolArgs.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.12.0.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.BareMetalClusterLoadBalancerBgpLbConfigAddressPoolArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property addresses The addresses that are part of this pool. Each address must be either in the CIDR form (1.2.3.0/24) or range form (1.2.3.1-1.2.3.5).
 * @property avoidBuggyIps If true, avoid using IPs ending in .0 or .255.
 * This avoids buggy consumer devices mistakenly dropping IPv4 traffic for those special IP addresses.
 * @property manualAssign If true, prevent IP addresses from being automatically assigned.
 * @property pool The name of the address pool.
 */
public data class BareMetalClusterLoadBalancerBgpLbConfigAddressPoolArgs(
    public val addresses: Output>,
    public val avoidBuggyIps: Output? = null,
    public val manualAssign: Output? = null,
    public val pool: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterLoadBalancerBgpLbConfigAddressPoolArgs =
        com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterLoadBalancerBgpLbConfigAddressPoolArgs.builder()
            .addresses(addresses.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .avoidBuggyIps(avoidBuggyIps?.applyValue({ args0 -> args0 }))
            .manualAssign(manualAssign?.applyValue({ args0 -> args0 }))
            .pool(pool.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [BareMetalClusterLoadBalancerBgpLbConfigAddressPoolArgs].
 */
@PulumiTagMarker
public class BareMetalClusterLoadBalancerBgpLbConfigAddressPoolArgsBuilder internal constructor() {
    private var addresses: Output>? = null

    private var avoidBuggyIps: Output? = null

    private var manualAssign: Output? = null

    private var pool: Output? = null

    /**
     * @param value The addresses that are part of this pool. Each address must be either in the CIDR form (1.2.3.0/24) or range form (1.2.3.1-1.2.3.5).
     */
    @JvmName("sjfortjcxohuahwt")
    public suspend fun addresses(`value`: Output>) {
        this.addresses = value
    }

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

    /**
     * @param values The addresses that are part of this pool. Each address must be either in the CIDR form (1.2.3.0/24) or range form (1.2.3.1-1.2.3.5).
     */
    @JvmName("gghcmcfvcjaanmhb")
    public suspend fun addresses(values: List>) {
        this.addresses = Output.all(values)
    }

    /**
     * @param value If true, avoid using IPs ending in .0 or .255.
     * This avoids buggy consumer devices mistakenly dropping IPv4 traffic for those special IP addresses.
     */
    @JvmName("mcsbgqokurhauscg")
    public suspend fun avoidBuggyIps(`value`: Output) {
        this.avoidBuggyIps = value
    }

    /**
     * @param value If true, prevent IP addresses from being automatically assigned.
     */
    @JvmName("ydjlrsaayogtuqhe")
    public suspend fun manualAssign(`value`: Output) {
        this.manualAssign = value
    }

    /**
     * @param value The name of the address pool.
     */
    @JvmName("bstaqlntibdwehon")
    public suspend fun pool(`value`: Output) {
        this.pool = value
    }

    /**
     * @param value The addresses that are part of this pool. Each address must be either in the CIDR form (1.2.3.0/24) or range form (1.2.3.1-1.2.3.5).
     */
    @JvmName("xbckavrlalgapvyk")
    public suspend fun addresses(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.addresses = mapped
    }

    /**
     * @param values The addresses that are part of this pool. Each address must be either in the CIDR form (1.2.3.0/24) or range form (1.2.3.1-1.2.3.5).
     */
    @JvmName("ayqgcmmykbgexxef")
    public suspend fun addresses(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.addresses = mapped
    }

    /**
     * @param value If true, avoid using IPs ending in .0 or .255.
     * This avoids buggy consumer devices mistakenly dropping IPv4 traffic for those special IP addresses.
     */
    @JvmName("bkqdoslsnncsdsht")
    public suspend fun avoidBuggyIps(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.avoidBuggyIps = mapped
    }

    /**
     * @param value If true, prevent IP addresses from being automatically assigned.
     */
    @JvmName("ujmmerqcodxesfpj")
    public suspend fun manualAssign(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.manualAssign = mapped
    }

    /**
     * @param value The name of the address pool.
     */
    @JvmName("piupfahgsxtwxisi")
    public suspend fun pool(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.pool = mapped
    }

    internal fun build(): BareMetalClusterLoadBalancerBgpLbConfigAddressPoolArgs =
        BareMetalClusterLoadBalancerBgpLbConfigAddressPoolArgs(
            addresses = addresses ?: throw PulumiNullFieldException("addresses"),
            avoidBuggyIps = avoidBuggyIps,
            manualAssign = manualAssign,
            pool = pool ?: throw PulumiNullFieldException("pool"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy