com.pulumi.cloudflare.kotlin.inputs.LoadBalancerRegionPoolArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-cloudflare-kotlin Show documentation
Show all versions of pulumi-cloudflare-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.cloudflare.kotlin.inputs
import com.pulumi.cloudflare.inputs.LoadBalancerRegionPoolArgs.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 in the given region.
* @property region A region code which must be in the list defined [here](https://developers.cloudflare.com/load-balancing/reference/region-mapping-api/#list-of-load-balancer-regions). Multiple entries should not be specified with the same region.
*/
public data class LoadBalancerRegionPoolArgs(
public val poolIds: Output>,
public val region: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.cloudflare.inputs.LoadBalancerRegionPoolArgs =
com.pulumi.cloudflare.inputs.LoadBalancerRegionPoolArgs.builder()
.poolIds(poolIds.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.region(region.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [LoadBalancerRegionPoolArgs].
*/
@PulumiTagMarker
public class LoadBalancerRegionPoolArgsBuilder internal constructor() {
private var poolIds: Output>? = null
private var region: Output? = null
/**
* @param value A list of pool IDs in failover priority to use in the given region.
*/
@JvmName("ywyuqechuexuomcm")
public suspend fun poolIds(`value`: Output>) {
this.poolIds = value
}
@JvmName("mcqjgkbfivvjsabv")
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 region.
*/
@JvmName("prpvmfymdmtkptvp")
public suspend fun poolIds(values: List