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

com.pulumi.azurenative.network.kotlin.inputs.BackendPoolsSettingsArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.network.kotlin.inputs

import com.pulumi.azurenative.network.inputs.BackendPoolsSettingsArgs.builder
import com.pulumi.azurenative.network.kotlin.enums.EnforceCertificateNameCheckEnabledState
import com.pulumi.core.Either
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.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Settings that apply to all backend pools.
 * @property enforceCertificateNameCheck Whether to enforce certificate name check on HTTPS requests to all backend pools. No effect on non-HTTPS requests.
 * @property sendRecvTimeoutSeconds Send and receive timeout on forwarding request to the backend. When timeout is reached, the request fails and returns.
 */
public data class BackendPoolsSettingsArgs(
    public val enforceCertificateNameCheck: Output>? = null,
    public val sendRecvTimeoutSeconds: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.network.inputs.BackendPoolsSettingsArgs =
        com.pulumi.azurenative.network.inputs.BackendPoolsSettingsArgs.builder()
            .enforceCertificateNameCheck(
                enforceCertificateNameCheck?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 -> args0.let({ args0 -> args0.toJava() }) })
                }),
            )
            .sendRecvTimeoutSeconds(sendRecvTimeoutSeconds?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [BackendPoolsSettingsArgs].
 */
@PulumiTagMarker
public class BackendPoolsSettingsArgsBuilder internal constructor() {
    private var enforceCertificateNameCheck:
        Output>? = null

    private var sendRecvTimeoutSeconds: Output? = null

    /**
     * @param value Whether to enforce certificate name check on HTTPS requests to all backend pools. No effect on non-HTTPS requests.
     */
    @JvmName("efisqujjdjdmyair")
    public suspend fun enforceCertificateNameCheck(`value`: Output>) {
        this.enforceCertificateNameCheck = value
    }

    /**
     * @param value Send and receive timeout on forwarding request to the backend. When timeout is reached, the request fails and returns.
     */
    @JvmName("pgbuymdvdamvcsrr")
    public suspend fun sendRecvTimeoutSeconds(`value`: Output) {
        this.sendRecvTimeoutSeconds = value
    }

    /**
     * @param value Whether to enforce certificate name check on HTTPS requests to all backend pools. No effect on non-HTTPS requests.
     */
    @JvmName("oidsxgyacqcjqefy")
    public suspend fun enforceCertificateNameCheck(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enforceCertificateNameCheck = mapped
    }

    /**
     * @param value Whether to enforce certificate name check on HTTPS requests to all backend pools. No effect on non-HTTPS requests.
     */
    @JvmName("tehhvdytnwawjumw")
    public fun enforceCertificateNameCheck(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.enforceCertificateNameCheck = mapped
    }

    /**
     * @param value Whether to enforce certificate name check on HTTPS requests to all backend pools. No effect on non-HTTPS requests.
     */
    @JvmName("vnokecbxveblqktg")
    public fun enforceCertificateNameCheck(`value`: EnforceCertificateNameCheckEnabledState) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.enforceCertificateNameCheck = mapped
    }

    /**
     * @param value Send and receive timeout on forwarding request to the backend. When timeout is reached, the request fails and returns.
     */
    @JvmName("nqegvnmjghsmamsd")
    public suspend fun sendRecvTimeoutSeconds(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sendRecvTimeoutSeconds = mapped
    }

    internal fun build(): BackendPoolsSettingsArgs = BackendPoolsSettingsArgs(
        enforceCertificateNameCheck = enforceCertificateNameCheck,
        sendRecvTimeoutSeconds = sendRecvTimeoutSeconds,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy