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

com.pulumi.awsnative.connect.kotlin.ViewArgs.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: 1.11.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.connect.kotlin

import com.pulumi.awsnative.connect.ViewArgs.builder
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
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.Any
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Resource Type definition for AWS::Connect::View
 * @property actions The actions of the view in an array.
 * @property description The description of the view.
 * @property instanceArn The Amazon Resource Name (ARN) of the instance.
 * @property name The name of the view.
 * @property tags One or more tags.
 * @property template The template of the view as JSON.
 * Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::Connect::View` for more information about the expected schema for this property.
 */
public data class ViewArgs(
    public val actions: Output>? = null,
    public val description: Output? = null,
    public val instanceArn: Output? = null,
    public val name: Output? = null,
    public val tags: Output>? = null,
    public val template: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.connect.ViewArgs =
        com.pulumi.awsnative.connect.ViewArgs.builder()
            .actions(actions?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .description(description?.applyValue({ args0 -> args0 }))
            .instanceArn(instanceArn?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .template(template?.applyValue({ args0 -> args0 })).build()
}

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

    private var description: Output? = null

    private var instanceArn: Output? = null

    private var name: Output? = null

    private var tags: Output>? = null

    private var template: Output? = null

    /**
     * @param value The actions of the view in an array.
     */
    @JvmName("hjsjxmiqbrqbtlra")
    public suspend fun actions(`value`: Output>) {
        this.actions = value
    }

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

    /**
     * @param values The actions of the view in an array.
     */
    @JvmName("usqcmruxqtxfkapt")
    public suspend fun actions(values: List>) {
        this.actions = Output.all(values)
    }

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

    /**
     * @param value The Amazon Resource Name (ARN) of the instance.
     */
    @JvmName("nnxecpknhlmeherj")
    public suspend fun instanceArn(`value`: Output) {
        this.instanceArn = value
    }

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

    /**
     * @param value One or more tags.
     */
    @JvmName("uhscohqndwnicgph")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values One or more tags.
     */
    @JvmName("sxbhpqywlcjkkibl")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The template of the view as JSON.
     * Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::Connect::View` for more information about the expected schema for this property.
     */
    @JvmName("cxbampdyxpwtkbuq")
    public suspend fun template(`value`: Output) {
        this.template = value
    }

    /**
     * @param value The actions of the view in an array.
     */
    @JvmName("nbfeqjmhkxhpkrgt")
    public suspend fun actions(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.actions = mapped
    }

    /**
     * @param values The actions of the view in an array.
     */
    @JvmName("seghfdoogrqcigwr")
    public suspend fun actions(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.actions = mapped
    }

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

    /**
     * @param value The Amazon Resource Name (ARN) of the instance.
     */
    @JvmName("dtkkkfrjfdvareav")
    public suspend fun instanceArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.instanceArn = mapped
    }

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

    /**
     * @param value One or more tags.
     */
    @JvmName("ofttradqhjmmfvfd")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument One or more tags.
     */
    @JvmName("ofraqmtjowqdpovp")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument One or more tags.
     */
    @JvmName("vnbaetchsugwkyuh")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument One or more tags.
     */
    @JvmName("qvchexwxhkqxupov")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values One or more tags.
     */
    @JvmName("kwoklycnrenxsola")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value The template of the view as JSON.
     * Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::Connect::View` for more information about the expected schema for this property.
     */
    @JvmName("qgpvysvrwgxkeapv")
    public suspend fun template(`value`: Any?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.template = mapped
    }

    internal fun build(): ViewArgs = ViewArgs(
        actions = actions,
        description = description,
        instanceArn = instanceArn,
        name = name,
        tags = tags,
        template = template,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy