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

com.pulumi.azure.cdn.kotlin.inputs.FrontdoorOriginGroupLoadBalancingArgs.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: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.cdn.kotlin.inputs

import com.pulumi.azure.cdn.inputs.FrontdoorOriginGroupLoadBalancingArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property additionalLatencyInMilliseconds Specifies the additional latency in milliseconds for probes to fall into the lowest latency bucket. Possible values are between `0` and `1000` milliseconds (inclusive). Defaults to `50`.
 * @property sampleSize Specifies the number of samples to consider for load balancing decisions. Possible values are between `0` and `255` (inclusive). Defaults to `4`.
 * @property successfulSamplesRequired Specifies the number of samples within the sample period that must succeed. Possible values are between `0` and `255` (inclusive). Defaults to `3`.
 */
public data class FrontdoorOriginGroupLoadBalancingArgs(
    public val additionalLatencyInMilliseconds: Output? = null,
    public val sampleSize: Output? = null,
    public val successfulSamplesRequired: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.cdn.inputs.FrontdoorOriginGroupLoadBalancingArgs =
        com.pulumi.azure.cdn.inputs.FrontdoorOriginGroupLoadBalancingArgs.builder()
            .additionalLatencyInMilliseconds(additionalLatencyInMilliseconds?.applyValue({ args0 -> args0 }))
            .sampleSize(sampleSize?.applyValue({ args0 -> args0 }))
            .successfulSamplesRequired(successfulSamplesRequired?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [FrontdoorOriginGroupLoadBalancingArgs].
 */
@PulumiTagMarker
public class FrontdoorOriginGroupLoadBalancingArgsBuilder internal constructor() {
    private var additionalLatencyInMilliseconds: Output? = null

    private var sampleSize: Output? = null

    private var successfulSamplesRequired: Output? = null

    /**
     * @param value Specifies the additional latency in milliseconds for probes to fall into the lowest latency bucket. Possible values are between `0` and `1000` milliseconds (inclusive). Defaults to `50`.
     */
    @JvmName("qhmrjanpbyaxvmwc")
    public suspend fun additionalLatencyInMilliseconds(`value`: Output) {
        this.additionalLatencyInMilliseconds = value
    }

    /**
     * @param value Specifies the number of samples to consider for load balancing decisions. Possible values are between `0` and `255` (inclusive). Defaults to `4`.
     */
    @JvmName("ygjcjrmbssxccboa")
    public suspend fun sampleSize(`value`: Output) {
        this.sampleSize = value
    }

    /**
     * @param value Specifies the number of samples within the sample period that must succeed. Possible values are between `0` and `255` (inclusive). Defaults to `3`.
     */
    @JvmName("ufairkdsfgslunfl")
    public suspend fun successfulSamplesRequired(`value`: Output) {
        this.successfulSamplesRequired = value
    }

    /**
     * @param value Specifies the additional latency in milliseconds for probes to fall into the lowest latency bucket. Possible values are between `0` and `1000` milliseconds (inclusive). Defaults to `50`.
     */
    @JvmName("tvxpxduuemrwgygw")
    public suspend fun additionalLatencyInMilliseconds(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.additionalLatencyInMilliseconds = mapped
    }

    /**
     * @param value Specifies the number of samples to consider for load balancing decisions. Possible values are between `0` and `255` (inclusive). Defaults to `4`.
     */
    @JvmName("geooegfrftvaxhmd")
    public suspend fun sampleSize(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sampleSize = mapped
    }

    /**
     * @param value Specifies the number of samples within the sample period that must succeed. Possible values are between `0` and `255` (inclusive). Defaults to `3`.
     */
    @JvmName("ywvupybphqemimct")
    public suspend fun successfulSamplesRequired(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.successfulSamplesRequired = mapped
    }

    internal fun build(): FrontdoorOriginGroupLoadBalancingArgs =
        FrontdoorOriginGroupLoadBalancingArgs(
            additionalLatencyInMilliseconds = additionalLatencyInMilliseconds,
            sampleSize = sampleSize,
            successfulSamplesRequired = successfulSamplesRequired,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy