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

com.pulumi.gcp.gkeonprem.kotlin.inputs.VMwareClusterLoadBalancerMetalLbConfigAddressPoolArgs.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.10.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.VMwareClusterLoadBalancerMetalLbConfigAddressPoolArgs.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.
 * The `dataplane_v2` block supports:
 * @property pool The name of the address pool.
 */
public data class VMwareClusterLoadBalancerMetalLbConfigAddressPoolArgs(
    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.VMwareClusterLoadBalancerMetalLbConfigAddressPoolArgs =
        com.pulumi.gcp.gkeonprem.inputs.VMwareClusterLoadBalancerMetalLbConfigAddressPoolArgs.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 [VMwareClusterLoadBalancerMetalLbConfigAddressPoolArgs].
 */
@PulumiTagMarker
public class VMwareClusterLoadBalancerMetalLbConfigAddressPoolArgsBuilder 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("fahdwrccinkfbkkv")
    public suspend fun addresses(`value`: Output>) {
        this.addresses = value
    }

    @JvmName("aluhncbmhfofdnsg")
    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("sdrlvmaglehtwmdw")
    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("vgbhgmqmmrfaevht")
    public suspend fun avoidBuggyIps(`value`: Output) {
        this.avoidBuggyIps = value
    }

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

    /**
     * @param value The name of the address pool.
     */
    @JvmName("dtcnkhonajkheebo")
    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("ssghapjbgffrualy")
    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("jkawgmqyhjyxfyrd")
    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("wbrdfkenepwdwmwi")
    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.
     * The `dataplane_v2` block supports:
     */
    @JvmName("tpkybmmiercqrnnu")
    public suspend fun manualAssign(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.manualAssign = mapped
    }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy