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

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

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

    private var path: Output? = null

    private var ttl: Output? = null

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

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

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

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy