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

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

import kotlin.Double
import kotlin.String
import kotlin.Suppress

/**
 *
 * @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,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.cloudflare.outputs.GetLoadBalancerPoolsPoolLoadShedding): GetLoadBalancerPoolsPoolLoadShedding = GetLoadBalancerPoolsPoolLoadShedding(
            defaultPercent = javaType.defaultPercent().map({ args0 -> args0 }).orElse(null),
            defaultPolicy = javaType.defaultPolicy().map({ args0 -> args0 }).orElse(null),
            sessionPercent = javaType.sessionPercent().map({ args0 -> args0 }).orElse(null),
            sessionPolicy = javaType.sessionPolicy().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy