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

com.pulumi.awsnative.workspacesweb.kotlin.inputs.UserSettingsCookieSynchronizationConfigurationArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.workspacesweb.kotlin.inputs

import com.pulumi.awsnative.workspacesweb.inputs.UserSettingsCookieSynchronizationConfigurationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property allowlist The list of cookie specifications that are allowed to be synchronized to the remote browser.
 * @property blocklist The list of cookie specifications that are blocked from being synchronized to the remote browser.
 */
public data class UserSettingsCookieSynchronizationConfigurationArgs(
    public val allowlist: Output>,
    public val blocklist: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.workspacesweb.inputs.UserSettingsCookieSynchronizationConfigurationArgs =
        com.pulumi.awsnative.workspacesweb.inputs.UserSettingsCookieSynchronizationConfigurationArgs.builder()
            .allowlist(
                allowlist.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .blocklist(
                blocklist?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [UserSettingsCookieSynchronizationConfigurationArgs].
 */
@PulumiTagMarker
public class UserSettingsCookieSynchronizationConfigurationArgsBuilder internal constructor() {
    private var allowlist: Output>? = null

    private var blocklist: Output>? = null

    /**
     * @param value The list of cookie specifications that are allowed to be synchronized to the remote browser.
     */
    @JvmName("urmgclxjaucvnjjc")
    public suspend fun allowlist(`value`: Output>) {
        this.allowlist = value
    }

    @JvmName("xixeujiumqdscimn")
    public suspend fun allowlist(vararg values: Output) {
        this.allowlist = Output.all(values.asList())
    }

    /**
     * @param values The list of cookie specifications that are allowed to be synchronized to the remote browser.
     */
    @JvmName("dydadvvyevumengq")
    public suspend fun allowlist(values: List>) {
        this.allowlist = Output.all(values)
    }

    /**
     * @param value The list of cookie specifications that are blocked from being synchronized to the remote browser.
     */
    @JvmName("esfxkinligqmghio")
    public suspend fun blocklist(`value`: Output>) {
        this.blocklist = value
    }

    @JvmName("llhxphfcmmjottmy")
    public suspend fun blocklist(vararg values: Output) {
        this.blocklist = Output.all(values.asList())
    }

    /**
     * @param values The list of cookie specifications that are blocked from being synchronized to the remote browser.
     */
    @JvmName("yychjbhqhmccsqaf")
    public suspend fun blocklist(values: List>) {
        this.blocklist = Output.all(values)
    }

    /**
     * @param value The list of cookie specifications that are allowed to be synchronized to the remote browser.
     */
    @JvmName("pnxadtyihknqyxlk")
    public suspend fun allowlist(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.allowlist = mapped
    }

    /**
     * @param argument The list of cookie specifications that are allowed to be synchronized to the remote browser.
     */
    @JvmName("rumfodrbimgiyetw")
    public suspend fun allowlist(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            UserSettingsCookieSpecificationArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.allowlist = mapped
    }

    /**
     * @param argument The list of cookie specifications that are allowed to be synchronized to the remote browser.
     */
    @JvmName("fiiisxjfsiwjjmou")
    public suspend fun allowlist(vararg argument: suspend UserSettingsCookieSpecificationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            UserSettingsCookieSpecificationArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.allowlist = mapped
    }

    /**
     * @param argument The list of cookie specifications that are allowed to be synchronized to the remote browser.
     */
    @JvmName("vdxsnorvfwenqwol")
    public suspend fun allowlist(argument: suspend UserSettingsCookieSpecificationArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            UserSettingsCookieSpecificationArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.allowlist = mapped
    }

    /**
     * @param values The list of cookie specifications that are allowed to be synchronized to the remote browser.
     */
    @JvmName("orwgqewpnksvgwfm")
    public suspend fun allowlist(vararg values: UserSettingsCookieSpecificationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.allowlist = mapped
    }

    /**
     * @param value The list of cookie specifications that are blocked from being synchronized to the remote browser.
     */
    @JvmName("ximroyrvryowocir")
    public suspend fun blocklist(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.blocklist = mapped
    }

    /**
     * @param argument The list of cookie specifications that are blocked from being synchronized to the remote browser.
     */
    @JvmName("heqseeyxvhclyfhm")
    public suspend fun blocklist(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            UserSettingsCookieSpecificationArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.blocklist = mapped
    }

    /**
     * @param argument The list of cookie specifications that are blocked from being synchronized to the remote browser.
     */
    @JvmName("iepghuxhqkmngabh")
    public suspend fun blocklist(vararg argument: suspend UserSettingsCookieSpecificationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            UserSettingsCookieSpecificationArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.blocklist = mapped
    }

    /**
     * @param argument The list of cookie specifications that are blocked from being synchronized to the remote browser.
     */
    @JvmName("lpvxsubwnilopaad")
    public suspend fun blocklist(argument: suspend UserSettingsCookieSpecificationArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            UserSettingsCookieSpecificationArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.blocklist = mapped
    }

    /**
     * @param values The list of cookie specifications that are blocked from being synchronized to the remote browser.
     */
    @JvmName("cklyqwfjqwaabjph")
    public suspend fun blocklist(vararg values: UserSettingsCookieSpecificationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.blocklist = mapped
    }

    internal fun build(): UserSettingsCookieSynchronizationConfigurationArgs =
        UserSettingsCookieSynchronizationConfigurationArgs(
            allowlist = allowlist ?: throw PulumiNullFieldException("allowlist"),
            blocklist = blocklist,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy