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

com.pulumi.cloudflare.kotlin.inputs.LoadBalancerAdaptiveRoutingArgs.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.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.cloudflare.kotlin.inputs

import com.pulumi.cloudflare.inputs.LoadBalancerAdaptiveRoutingArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property failoverAcrossPools Extends zero-downtime failover of requests to healthy origins from alternate pools, when no healthy alternate exists in the same pool, according to the failover order defined by traffic and origin steering. When set `false`, zero-downtime failover will only occur between origins within the same pool. Defaults to `false`.
 */
public data class LoadBalancerAdaptiveRoutingArgs(
    public val failoverAcrossPools: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.cloudflare.inputs.LoadBalancerAdaptiveRoutingArgs =
        com.pulumi.cloudflare.inputs.LoadBalancerAdaptiveRoutingArgs.builder()
            .failoverAcrossPools(failoverAcrossPools?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [LoadBalancerAdaptiveRoutingArgs].
 */
@PulumiTagMarker
public class LoadBalancerAdaptiveRoutingArgsBuilder internal constructor() {
    private var failoverAcrossPools: Output? = null

    /**
     * @param value Extends zero-downtime failover of requests to healthy origins from alternate pools, when no healthy alternate exists in the same pool, according to the failover order defined by traffic and origin steering. When set `false`, zero-downtime failover will only occur between origins within the same pool. Defaults to `false`.
     */
    @JvmName("sxpfvptaymhohgjt")
    public suspend fun failoverAcrossPools(`value`: Output) {
        this.failoverAcrossPools = value
    }

    /**
     * @param value Extends zero-downtime failover of requests to healthy origins from alternate pools, when no healthy alternate exists in the same pool, according to the failover order defined by traffic and origin steering. When set `false`, zero-downtime failover will only occur between origins within the same pool. Defaults to `false`.
     */
    @JvmName("kpfdhsxwtfcmflyx")
    public suspend fun failoverAcrossPools(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.failoverAcrossPools = mapped
    }

    internal fun build(): LoadBalancerAdaptiveRoutingArgs = LoadBalancerAdaptiveRoutingArgs(
        failoverAcrossPools = failoverAcrossPools,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy