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

com.pulumi.cloudflare.kotlin.inputs.LoadBalancerPopPoolArgs.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: 5.40.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.cloudflare.kotlin.inputs

import com.pulumi.cloudflare.inputs.LoadBalancerPopPoolArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property poolIds A list of pool IDs in failover priority to use for traffic reaching the given PoP.
 * @property pop A 3-letter code for the Point-of-Presence. Allowed values can be found in the list of datacenters on the [status page](https://www.cloudflarestatus.com/). Multiple entries should not be specified with the same PoP.
 */
public data class LoadBalancerPopPoolArgs(
    public val poolIds: Output>,
    public val pop: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.cloudflare.inputs.LoadBalancerPopPoolArgs =
        com.pulumi.cloudflare.inputs.LoadBalancerPopPoolArgs.builder()
            .poolIds(poolIds.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .pop(pop.applyValue({ args0 -> args0 })).build()
}

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

    private var pop: Output? = null

    /**
     * @param value A list of pool IDs in failover priority to use for traffic reaching the given PoP.
     */
    @JvmName("bvbipnnmwhfmvlkg")
    public suspend fun poolIds(`value`: Output>) {
        this.poolIds = value
    }

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

    /**
     * @param values A list of pool IDs in failover priority to use for traffic reaching the given PoP.
     */
    @JvmName("hajhujatikujtnuw")
    public suspend fun poolIds(values: List>) {
        this.poolIds = Output.all(values)
    }

    /**
     * @param value A 3-letter code for the Point-of-Presence. Allowed values can be found in the list of datacenters on the [status page](https://www.cloudflarestatus.com/). Multiple entries should not be specified with the same PoP.
     */
    @JvmName("vglqnvepabofijhs")
    public suspend fun pop(`value`: Output) {
        this.pop = value
    }

    /**
     * @param value A list of pool IDs in failover priority to use for traffic reaching the given PoP.
     */
    @JvmName("cghlfsxgbplbipob")
    public suspend fun poolIds(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.poolIds = mapped
    }

    /**
     * @param values A list of pool IDs in failover priority to use for traffic reaching the given PoP.
     */
    @JvmName("nrsckrlbaaulihbe")
    public suspend fun poolIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.poolIds = mapped
    }

    /**
     * @param value A 3-letter code for the Point-of-Presence. Allowed values can be found in the list of datacenters on the [status page](https://www.cloudflarestatus.com/). Multiple entries should not be specified with the same PoP.
     */
    @JvmName("jhqwmqufmjknpvek")
    public suspend fun pop(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.pop = mapped
    }

    internal fun build(): LoadBalancerPopPoolArgs = LoadBalancerPopPoolArgs(
        poolIds = poolIds ?: throw PulumiNullFieldException("poolIds"),
        pop = pop ?: throw PulumiNullFieldException("pop"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy