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

com.pulumi.cloudflare.kotlin.inputs.LoadBalancerRuleOverrideCountryPoolArgs.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.LoadBalancerRuleOverrideCountryPoolArgs.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 country A country code which can be determined with the Load Balancing Regions API described [here](https://developers.cloudflare.com/load-balancing/reference/region-mapping-api/). Multiple entries should not be specified with the same country.
 * @property poolIds A list of pool IDs in failover priority to use in the given country.
 */
public data class LoadBalancerRuleOverrideCountryPoolArgs(
    public val country: Output,
    public val poolIds: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.cloudflare.inputs.LoadBalancerRuleOverrideCountryPoolArgs =
        com.pulumi.cloudflare.inputs.LoadBalancerRuleOverrideCountryPoolArgs.builder()
            .country(country.applyValue({ args0 -> args0 }))
            .poolIds(poolIds.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [LoadBalancerRuleOverrideCountryPoolArgs].
 */
@PulumiTagMarker
public class LoadBalancerRuleOverrideCountryPoolArgsBuilder internal constructor() {
    private var country: Output? = null

    private var poolIds: Output>? = null

    /**
     * @param value A country code which can be determined with the Load Balancing Regions API described [here](https://developers.cloudflare.com/load-balancing/reference/region-mapping-api/). Multiple entries should not be specified with the same country.
     */
    @JvmName("aaymbpcgneyiybpx")
    public suspend fun country(`value`: Output) {
        this.country = value
    }

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

    @JvmName("rumtpxhscdpdxuxu")
    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 in the given country.
     */
    @JvmName("fvjeuolpdliitnue")
    public suspend fun poolIds(values: List>) {
        this.poolIds = Output.all(values)
    }

    /**
     * @param value A country code which can be determined with the Load Balancing Regions API described [here](https://developers.cloudflare.com/load-balancing/reference/region-mapping-api/). Multiple entries should not be specified with the same country.
     */
    @JvmName("etagajdaekbtphhu")
    public suspend fun country(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.country = mapped
    }

    /**
     * @param value A list of pool IDs in failover priority to use in the given country.
     */
    @JvmName("vmhcqplxvqotqwvq")
    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 in the given country.
     */
    @JvmName("dpaqkafltgucyqac")
    public suspend fun poolIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.poolIds = mapped
    }

    internal fun build(): LoadBalancerRuleOverrideCountryPoolArgs =
        LoadBalancerRuleOverrideCountryPoolArgs(
            country = country ?: throw PulumiNullFieldException("country"),
            poolIds = poolIds ?: throw PulumiNullFieldException("poolIds"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy