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

com.pulumi.gcp.compute.kotlin.inputs.RegionBackendServiceConsistentHashHttpCookieArgs.kt Maven / Gradle / Ivy

@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("cxabkrnvpyofxgpl")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

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

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

    /**
     * @param value Name of the cookie.
     */
    @JvmName("uptxwulbcmkylony")
    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("esutbtycjslwnlof")
    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("qafmikgyimaaafio")
    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("qgjveuvypxamrang")
    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 - 2025 Weber Informatics LLC | Privacy Policy