com.pulumi.digitalocean.kotlin.outputs.LoadBalancerStickySessions.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.digitalocean.kotlin.outputs
import kotlin.Int
import kotlin.String
import kotlin.Suppress
/**
*
* @property cookieName The name to be used for the cookie sent to the client. This attribute is required when using `cookies` for the sticky sessions type.
* @property cookieTtlSeconds The number of seconds until the cookie set by the Load Balancer expires. This attribute is required when using `cookies` for the sticky sessions type.
* @property type An attribute indicating how and if requests from a client will be persistently served by the same backend Droplet. The possible values are `cookies` or `none`. If not specified, the default value is `none`.
*/
public data class LoadBalancerStickySessions(
public val cookieName: String? = null,
public val cookieTtlSeconds: Int? = null,
public val type: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.digitalocean.outputs.LoadBalancerStickySessions): LoadBalancerStickySessions = LoadBalancerStickySessions(
cookieName = javaType.cookieName().map({ args0 -> args0 }).orElse(null),
cookieTtlSeconds = javaType.cookieTtlSeconds().map({ args0 -> args0 }).orElse(null),
type = javaType.type().map({ args0 -> args0 }).orElse(null),
)
}
}