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

com.pulumi.awsnative.appstream.kotlin.EntitlementArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.appstream.kotlin

import com.pulumi.awsnative.appstream.EntitlementArgs.builder
import com.pulumi.awsnative.appstream.kotlin.inputs.EntitlementAttributeArgs
import com.pulumi.awsnative.appstream.kotlin.inputs.EntitlementAttributeArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
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.collections.List
import kotlin.jvm.JvmName

/**
 * Resource Type definition for AWS::AppStream::Entitlement
 * @property appVisibility Specifies whether to entitle all apps or only selected apps.
 * @property attributes The attributes of the entitlement.
 * @property description The description of the entitlement.
 * @property name The name of the entitlement.
 * @property stackName The name of the stack.
 */
public data class EntitlementArgs(
    public val appVisibility: Output? = null,
    public val attributes: Output>? = null,
    public val description: Output? = null,
    public val name: Output? = null,
    public val stackName: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.appstream.EntitlementArgs =
        com.pulumi.awsnative.appstream.EntitlementArgs.builder()
            .appVisibility(appVisibility?.applyValue({ args0 -> args0 }))
            .attributes(
                attributes?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .description(description?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .stackName(stackName?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [EntitlementArgs].
 */
@PulumiTagMarker
public class EntitlementArgsBuilder internal constructor() {
    private var appVisibility: Output? = null

    private var attributes: Output>? = null

    private var description: Output? = null

    private var name: Output? = null

    private var stackName: Output? = null

    /**
     * @param value Specifies whether to entitle all apps or only selected apps.
     */
    @JvmName("mqtwrhaskoxxegql")
    public suspend fun appVisibility(`value`: Output) {
        this.appVisibility = value
    }

    /**
     * @param value The attributes of the entitlement.
     */
    @JvmName("cqobhtfkkacqgwgu")
    public suspend fun attributes(`value`: Output>) {
        this.attributes = value
    }

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

    /**
     * @param values The attributes of the entitlement.
     */
    @JvmName("qqwdfqafluqtqhnv")
    public suspend fun attributes(values: List>) {
        this.attributes = Output.all(values)
    }

    /**
     * @param value The description of the entitlement.
     */
    @JvmName("taihanactkoybcrq")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The name of the entitlement.
     */
    @JvmName("ixafegqxbfuydylj")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The name of the stack.
     */
    @JvmName("eqlvapnkurpumrws")
    public suspend fun stackName(`value`: Output) {
        this.stackName = value
    }

    /**
     * @param value Specifies whether to entitle all apps or only selected apps.
     */
    @JvmName("kcoveouroxggtehc")
    public suspend fun appVisibility(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.appVisibility = mapped
    }

    /**
     * @param value The attributes of the entitlement.
     */
    @JvmName("kryiapjmwttsuaba")
    public suspend fun attributes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.attributes = mapped
    }

    /**
     * @param argument The attributes of the entitlement.
     */
    @JvmName("bsypydgyfoexictp")
    public suspend fun attributes(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            EntitlementAttributeArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.attributes = mapped
    }

    /**
     * @param argument The attributes of the entitlement.
     */
    @JvmName("ncptsfrroegpddpf")
    public suspend fun attributes(vararg argument: suspend EntitlementAttributeArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            EntitlementAttributeArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.attributes = mapped
    }

    /**
     * @param argument The attributes of the entitlement.
     */
    @JvmName("ykhxtucdhkfysgka")
    public suspend fun attributes(argument: suspend EntitlementAttributeArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(EntitlementAttributeArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.attributes = mapped
    }

    /**
     * @param values The attributes of the entitlement.
     */
    @JvmName("gicsbwxgbpnxthfb")
    public suspend fun attributes(vararg values: EntitlementAttributeArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.attributes = mapped
    }

    /**
     * @param value The description of the entitlement.
     */
    @JvmName("ncgqbibnytcfodjy")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The name of the entitlement.
     */
    @JvmName("ghsrubebptmnnytf")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The name of the stack.
     */
    @JvmName("uwdhvyksqsmnqjnv")
    public suspend fun stackName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.stackName = mapped
    }

    internal fun build(): EntitlementArgs = EntitlementArgs(
        appVisibility = appVisibility,
        attributes = attributes,
        description = description,
        name = name,
        stackName = stackName,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy