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

com.pulumi.azure.network.kotlin.outputs.ApplicationGatewayBackendHttpSetting.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.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.network.kotlin.outputs

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

/**
 *
 * @property affinityCookieName The name of the affinity cookie.
 * @property authenticationCertificates One or more `authentication_certificate_backend` blocks as defined below.
 * @property connectionDraining A `connection_draining` block as defined below.
 * @property cookieBasedAffinity Is Cookie-Based Affinity enabled? Possible values are `Enabled` and `Disabled`.
 * @property hostName Host header to be sent to the backend servers. Cannot be set if `pick_host_name_from_backend_address` is set to `true`.
 * @property id The ID of the Rewrite Rule Set
 * @property name The name of the Authentication Certificate.
 * @property path The Path which should be used as a prefix for all HTTP requests.
 * @property pickHostNameFromBackendAddress Whether host header should be picked from the host name of the backend server. Defaults to `false`.
 * @property port The port which should be used for this Backend HTTP Settings Collection.
 * @property probeId The ID of the associated Probe.
 * @property probeName The name of an associated HTTP Probe.
 * @property protocol The Protocol which should be used. Possible values are `Http` and `Https`.
 * @property requestTimeout The request timeout in seconds, which must be between 1 and 86400 seconds. Defaults to `30`.
 * @property trustedRootCertificateNames A list of `trusted_root_certificate` names.
 */
public data class ApplicationGatewayBackendHttpSetting(
    public val affinityCookieName: String? = null,
    public val authenticationCertificates:
    List? = null,
    public val connectionDraining: ApplicationGatewayBackendHttpSettingConnectionDraining? = null,
    public val cookieBasedAffinity: String,
    public val hostName: String? = null,
    public val id: String? = null,
    public val name: String,
    public val path: String? = null,
    public val pickHostNameFromBackendAddress: Boolean? = null,
    public val port: Int,
    public val probeId: String? = null,
    public val probeName: String? = null,
    public val protocol: String,
    public val requestTimeout: Int? = null,
    public val trustedRootCertificateNames: List? = null,
) {
    public companion object {
        public
        fun toKotlin(javaType: com.pulumi.azure.network.outputs.ApplicationGatewayBackendHttpSetting):
            ApplicationGatewayBackendHttpSetting = ApplicationGatewayBackendHttpSetting(
            affinityCookieName = javaType.affinityCookieName().map({ args0 -> args0 }).orElse(null),
            authenticationCertificates = javaType.authenticationCertificates().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.network.kotlin.outputs.ApplicationGatewayBackendHttpSettingAuthenticationCertificate.Companion.toKotlin(args0)
                })
            }),
            connectionDraining = javaType.connectionDraining().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.network.kotlin.outputs.ApplicationGatewayBackendHttpSettingConnectionDraining.Companion.toKotlin(args0)
                })
            }).orElse(null),
            cookieBasedAffinity = javaType.cookieBasedAffinity(),
            hostName = javaType.hostName().map({ args0 -> args0 }).orElse(null),
            id = javaType.id().map({ args0 -> args0 }).orElse(null),
            name = javaType.name(),
            path = javaType.path().map({ args0 -> args0 }).orElse(null),
            pickHostNameFromBackendAddress = javaType.pickHostNameFromBackendAddress().map({ args0 ->
                args0
            }).orElse(null),
            port = javaType.port(),
            probeId = javaType.probeId().map({ args0 -> args0 }).orElse(null),
            probeName = javaType.probeName().map({ args0 -> args0 }).orElse(null),
            protocol = javaType.protocol(),
            requestTimeout = javaType.requestTimeout().map({ args0 -> args0 }).orElse(null),
            trustedRootCertificateNames = javaType.trustedRootCertificateNames().map({ args0 -> args0 }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy