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

com.pulumi.gcp.compute.kotlin.inputs.RegionBackendServiceCircuitBreakersArgs.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: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.compute.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.compute.inputs.RegionBackendServiceCircuitBreakersArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property connectTimeout The timeout for new network connections to hosts.
 * Structure is documented below.
 * @property maxConnections The maximum number of connections to the backend cluster.
 * Defaults to 1024.
 * @property maxPendingRequests The maximum number of pending requests to the backend cluster.
 * Defaults to 1024.
 * @property maxRequests The maximum number of parallel requests to the backend cluster.
 * Defaults to 1024.
 * @property maxRequestsPerConnection Maximum requests for a single backend connection. This parameter
 * is respected by both the HTTP/1.1 and HTTP/2 implementations. If
 * not specified, there is no limit. Setting this parameter to 1
 * will effectively disable keep alive.
 * @property maxRetries The maximum number of parallel retries to the backend cluster.
 * Defaults to 3.
 */
public data class RegionBackendServiceCircuitBreakersArgs(
    public val connectTimeout: Output? = null,
    public val maxConnections: Output? = null,
    public val maxPendingRequests: Output? = null,
    public val maxRequests: Output? = null,
    public val maxRequestsPerConnection: Output? = null,
    public val maxRetries: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.compute.inputs.RegionBackendServiceCircuitBreakersArgs =
        com.pulumi.gcp.compute.inputs.RegionBackendServiceCircuitBreakersArgs.builder()
            .connectTimeout(connectTimeout?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .maxConnections(maxConnections?.applyValue({ args0 -> args0 }))
            .maxPendingRequests(maxPendingRequests?.applyValue({ args0 -> args0 }))
            .maxRequests(maxRequests?.applyValue({ args0 -> args0 }))
            .maxRequestsPerConnection(maxRequestsPerConnection?.applyValue({ args0 -> args0 }))
            .maxRetries(maxRetries?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [RegionBackendServiceCircuitBreakersArgs].
 */
@PulumiTagMarker
public class RegionBackendServiceCircuitBreakersArgsBuilder internal constructor() {
    private var connectTimeout: Output? = null

    private var maxConnections: Output? = null

    private var maxPendingRequests: Output? = null

    private var maxRequests: Output? = null

    private var maxRequestsPerConnection: Output? = null

    private var maxRetries: Output? = null

    /**
     * @param value The timeout for new network connections to hosts.
     * Structure is documented below.
     */
    @JvmName("eujgismiosrikmwe")
    public suspend fun connectTimeout(`value`: Output) {
        this.connectTimeout = value
    }

    /**
     * @param value The maximum number of connections to the backend cluster.
     * Defaults to 1024.
     */
    @JvmName("xvfbipyfvemfxrtw")
    public suspend fun maxConnections(`value`: Output) {
        this.maxConnections = value
    }

    /**
     * @param value The maximum number of pending requests to the backend cluster.
     * Defaults to 1024.
     */
    @JvmName("ubxvrgpjhsfdwmkt")
    public suspend fun maxPendingRequests(`value`: Output) {
        this.maxPendingRequests = value
    }

    /**
     * @param value The maximum number of parallel requests to the backend cluster.
     * Defaults to 1024.
     */
    @JvmName("doyliaxbxhooufqk")
    public suspend fun maxRequests(`value`: Output) {
        this.maxRequests = value
    }

    /**
     * @param value Maximum requests for a single backend connection. This parameter
     * is respected by both the HTTP/1.1 and HTTP/2 implementations. If
     * not specified, there is no limit. Setting this parameter to 1
     * will effectively disable keep alive.
     */
    @JvmName("qujfvhdvyredechb")
    public suspend fun maxRequestsPerConnection(`value`: Output) {
        this.maxRequestsPerConnection = value
    }

    /**
     * @param value The maximum number of parallel retries to the backend cluster.
     * Defaults to 3.
     */
    @JvmName("ktujneemonnramun")
    public suspend fun maxRetries(`value`: Output) {
        this.maxRetries = value
    }

    /**
     * @param value The timeout for new network connections to hosts.
     * Structure is documented below.
     */
    @JvmName("chdrjnmjlgawumqb")
    public suspend fun connectTimeout(`value`: RegionBackendServiceCircuitBreakersConnectTimeoutArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.connectTimeout = mapped
    }

    /**
     * @param argument The timeout for new network connections to hosts.
     * Structure is documented below.
     */
    @JvmName("xmmnucxssrighuvd")
    public suspend fun connectTimeout(argument: suspend RegionBackendServiceCircuitBreakersConnectTimeoutArgsBuilder.() -> Unit) {
        val toBeMapped = RegionBackendServiceCircuitBreakersConnectTimeoutArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.connectTimeout = mapped
    }

    /**
     * @param value The maximum number of connections to the backend cluster.
     * Defaults to 1024.
     */
    @JvmName("liglrlnrrtfvrfdv")
    public suspend fun maxConnections(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxConnections = mapped
    }

    /**
     * @param value The maximum number of pending requests to the backend cluster.
     * Defaults to 1024.
     */
    @JvmName("avangcllvgvsmnug")
    public suspend fun maxPendingRequests(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxPendingRequests = mapped
    }

    /**
     * @param value The maximum number of parallel requests to the backend cluster.
     * Defaults to 1024.
     */
    @JvmName("dvduwhmwttybqfmy")
    public suspend fun maxRequests(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxRequests = mapped
    }

    /**
     * @param value Maximum requests for a single backend connection. This parameter
     * is respected by both the HTTP/1.1 and HTTP/2 implementations. If
     * not specified, there is no limit. Setting this parameter to 1
     * will effectively disable keep alive.
     */
    @JvmName("lywcugfuoavwlhef")
    public suspend fun maxRequestsPerConnection(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxRequestsPerConnection = mapped
    }

    /**
     * @param value The maximum number of parallel retries to the backend cluster.
     * Defaults to 3.
     */
    @JvmName("gffoyjibnqwkqqqh")
    public suspend fun maxRetries(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxRetries = mapped
    }

    internal fun build(): RegionBackendServiceCircuitBreakersArgs =
        RegionBackendServiceCircuitBreakersArgs(
            connectTimeout = connectTimeout,
            maxConnections = maxConnections,
            maxPendingRequests = maxPendingRequests,
            maxRequests = maxRequests,
            maxRequestsPerConnection = maxRequestsPerConnection,
            maxRetries = maxRetries,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy