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

com.pulumi.gcp.compute.kotlin.outputs.RegionBackendServiceCircuitBreakers.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.outputs

import kotlin.Int
import kotlin.Suppress

/**
 *
 * @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 RegionBackendServiceCircuitBreakers(
    public val connectTimeout: RegionBackendServiceCircuitBreakersConnectTimeout? = null,
    public val maxConnections: Int? = null,
    public val maxPendingRequests: Int? = null,
    public val maxRequests: Int? = null,
    public val maxRequestsPerConnection: Int? = null,
    public val maxRetries: Int? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.RegionBackendServiceCircuitBreakers): RegionBackendServiceCircuitBreakers = RegionBackendServiceCircuitBreakers(
            connectTimeout = javaType.connectTimeout().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.compute.kotlin.outputs.RegionBackendServiceCircuitBreakersConnectTimeout.Companion.toKotlin(args0)
                })
            }).orElse(null),
            maxConnections = javaType.maxConnections().map({ args0 -> args0 }).orElse(null),
            maxPendingRequests = javaType.maxPendingRequests().map({ args0 -> args0 }).orElse(null),
            maxRequests = javaType.maxRequests().map({ args0 -> args0 }).orElse(null),
            maxRequestsPerConnection = javaType.maxRequestsPerConnection().map({ args0 -> args0 }).orElse(null),
            maxRetries = javaType.maxRetries().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy