com.pulumi.gcp.compute.kotlin.inputs.RegionBackendServiceConsistentHashHttpCookieArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.compute.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.compute.inputs.RegionBackendServiceConsistentHashHttpCookieArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property name Name of the cookie.
* @property path Path to set for the cookie.
* @property ttl Lifetime of the cookie.
* Structure is documented below.
*/
public data class RegionBackendServiceConsistentHashHttpCookieArgs(
public val name: Output? = null,
public val path: Output? = null,
public val ttl: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.compute.inputs.RegionBackendServiceConsistentHashHttpCookieArgs =
com.pulumi.gcp.compute.inputs.RegionBackendServiceConsistentHashHttpCookieArgs.builder()
.name(name?.applyValue({ args0 -> args0 }))
.path(path?.applyValue({ args0 -> args0 }))
.ttl(ttl?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [RegionBackendServiceConsistentHashHttpCookieArgs].
*/
@PulumiTagMarker
public class RegionBackendServiceConsistentHashHttpCookieArgsBuilder internal constructor() {
private var name: Output? = null
private var path: Output? = null
private var ttl: Output? = null
/**
* @param value Name of the cookie.
*/
@JvmName("kvwkthppemymrnqt")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value Path to set for the cookie.
*/
@JvmName("vvsqwkptwhftiuvv")
public suspend fun path(`value`: Output) {
this.path = value
}
/**
* @param value Lifetime of the cookie.
* Structure is documented below.
*/
@JvmName("gvlepaunbmfalhgp")
public suspend fun ttl(`value`: Output) {
this.ttl = value
}
/**
* @param value Name of the cookie.
*/
@JvmName("ejdudjgyxkrcednt")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value Path to set for the cookie.
*/
@JvmName("erutngokogpdolvn")
public suspend fun path(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.path = mapped
}
/**
* @param value Lifetime of the cookie.
* Structure is documented below.
*/
@JvmName("ovltxpgvrwtvhnch")
public suspend fun ttl(`value`: RegionBackendServiceConsistentHashHttpCookieTtlArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.ttl = mapped
}
/**
* @param argument Lifetime of the cookie.
* Structure is documented below.
*/
@JvmName("jkfcgbyvnvqtcqxe")
public suspend fun ttl(argument: suspend RegionBackendServiceConsistentHashHttpCookieTtlArgsBuilder.() -> Unit) {
val toBeMapped = RegionBackendServiceConsistentHashHttpCookieTtlArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.ttl = mapped
}
internal fun build(): RegionBackendServiceConsistentHashHttpCookieArgs =
RegionBackendServiceConsistentHashHttpCookieArgs(
name = name,
path = path,
ttl = ttl,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy