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

com.pulumi.cloudflare.kotlin.inputs.GetLoadBalancerPoolsPoolLoadShedding.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.GetLoadBalancerPoolsPoolLoadShedding.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Double
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property defaultPercent Percent of traffic to shed 0 - 100.
 * @property defaultPolicy Method of shedding traffic. Available values: `""`, `hash`, `random`
 * @property sessionPercent Percent of session traffic to shed 0 - 100.
 * @property sessionPolicy Method of shedding traffic. Available values: `""`, `hash`
 */
public data class GetLoadBalancerPoolsPoolLoadShedding(
    public val defaultPercent: Double? = null,
    public val defaultPolicy: String? = null,
    public val sessionPercent: Double? = null,
    public val sessionPolicy: String? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.cloudflare.inputs.GetLoadBalancerPoolsPoolLoadShedding =
        com.pulumi.cloudflare.inputs.GetLoadBalancerPoolsPoolLoadShedding.builder()
            .defaultPercent(defaultPercent?.let({ args0 -> args0 }))
            .defaultPolicy(defaultPolicy?.let({ args0 -> args0 }))
            .sessionPercent(sessionPercent?.let({ args0 -> args0 }))
            .sessionPolicy(sessionPolicy?.let({ args0 -> args0 })).build()
}

/**
 * Builder for [GetLoadBalancerPoolsPoolLoadShedding].
 */
@PulumiTagMarker
public class GetLoadBalancerPoolsPoolLoadSheddingBuilder internal constructor() {
    private var defaultPercent: Double? = null

    private var defaultPolicy: String? = null

    private var sessionPercent: Double? = null

    private var sessionPolicy: String? = null

    /**
     * @param value Percent of traffic to shed 0 - 100.
     */
    @JvmName("eitbawbcfwcxoram")
    public suspend fun defaultPercent(`value`: Double?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.defaultPercent = mapped
    }

    /**
     * @param value Method of shedding traffic. Available values: `""`, `hash`, `random`
     */
    @JvmName("mpdjyodrdoioqohs")
    public suspend fun defaultPolicy(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.defaultPolicy = mapped
    }

    /**
     * @param value Percent of session traffic to shed 0 - 100.
     */
    @JvmName("vdrvfvoadpmcrujv")
    public suspend fun sessionPercent(`value`: Double?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.sessionPercent = mapped
    }

    /**
     * @param value Method of shedding traffic. Available values: `""`, `hash`
     */
    @JvmName("geeewpmdlqswpfrk")
    public suspend fun sessionPolicy(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.sessionPolicy = mapped
    }

    internal fun build(): GetLoadBalancerPoolsPoolLoadShedding = GetLoadBalancerPoolsPoolLoadShedding(
        defaultPercent = defaultPercent,
        defaultPolicy = defaultPolicy,
        sessionPercent = sessionPercent,
        sessionPolicy = sessionPolicy,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy