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

com.pulumi.digitalocean.kotlin.outputs.GetLoadBalancerGlbSetting.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.digitalocean.kotlin.outputs

import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map

/**
 *
 * @property cdns CDN specific configurations
 * @property failoverThreshold fail-over threshold
 * @property regionPriorities region priority map
 * @property targetPort target port rules
 * @property targetProtocol target protocol rules
 */
public data class GetLoadBalancerGlbSetting(
    public val cdns: List,
    public val failoverThreshold: Int,
    public val regionPriorities: Map,
    public val targetPort: Int,
    public val targetProtocol: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.digitalocean.outputs.GetLoadBalancerGlbSetting): GetLoadBalancerGlbSetting = GetLoadBalancerGlbSetting(
            cdns = javaType.cdns().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.digitalocean.kotlin.outputs.GetLoadBalancerGlbSettingCdn.Companion.toKotlin(args0)
                })
            }),
            failoverThreshold = javaType.failoverThreshold(),
            regionPriorities = javaType.regionPriorities().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            targetPort = javaType.targetPort(),
            targetProtocol = javaType.targetProtocol(),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy