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

com.pulumi.gcp.compute.kotlin.inputs.BackendServiceConsistentHashHttpCookieArgs.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: 8.10.0.0
Show newest version
@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.BackendServiceConsistentHashHttpCookieArgs.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 BackendServiceConsistentHashHttpCookieArgs(
    public val name: Output? = null,
    public val path: Output? = null,
    public val ttl: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.compute.inputs.BackendServiceConsistentHashHttpCookieArgs =
        com.pulumi.gcp.compute.inputs.BackendServiceConsistentHashHttpCookieArgs.builder()
            .name(name?.applyValue({ args0 -> args0 }))
            .path(path?.applyValue({ args0 -> args0 }))
            .ttl(ttl?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [BackendServiceConsistentHashHttpCookieArgs].
 */
@PulumiTagMarker
public class BackendServiceConsistentHashHttpCookieArgsBuilder internal constructor() {
    private var name: Output? = null

    private var path: Output? = null

    private var ttl: Output? = null

    /**
     * @param value Name of the cookie.
     */
    @JvmName("fhfknmenieosxplk")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Path to set for the cookie.
     */
    @JvmName("ldlfhatesbjeswth")
    public suspend fun path(`value`: Output) {
        this.path = value
    }

    /**
     * @param value Lifetime of the cookie.
     * Structure is documented below.
     */
    @JvmName("xahdvaciyjnwchps")
    public suspend fun ttl(`value`: Output) {
        this.ttl = value
    }

    /**
     * @param value Name of the cookie.
     */
    @JvmName("xcjmhkqejuaofqdo")
    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("hrmjljcuigumibhy")
    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("atuqmtdcxvxgvpsx")
    public suspend fun ttl(`value`: BackendServiceConsistentHashHttpCookieTtlArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ttl = mapped
    }

    /**
     * @param argument Lifetime of the cookie.
     * Structure is documented below.
     */
    @JvmName("lpyimlfibbtfgdhg")
    public suspend fun ttl(argument: suspend BackendServiceConsistentHashHttpCookieTtlArgsBuilder.() -> Unit) {
        val toBeMapped = BackendServiceConsistentHashHttpCookieTtlArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.ttl = mapped
    }

    internal fun build(): BackendServiceConsistentHashHttpCookieArgs =
        BackendServiceConsistentHashHttpCookieArgs(
            name = name,
            path = path,
            ttl = ttl,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy