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

com.pulumi.awsnative.ivschat.kotlin.RoomArgs.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.ivschat.kotlin

import com.pulumi.awsnative.ivschat.RoomArgs.builder
import com.pulumi.awsnative.ivschat.kotlin.inputs.RoomMessageReviewHandlerArgs
import com.pulumi.awsnative.ivschat.kotlin.inputs.RoomMessageReviewHandlerArgsBuilder
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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Resource type definition for AWS::IVSChat::Room.
 * ## Example Usage
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * @property loggingConfigurationIdentifiers Array of logging configuration identifiers attached to the room.
 * @property maximumMessageLength The maximum number of characters in a single message.
 * @property maximumMessageRatePerSecond The maximum number of messages per second that can be sent to the room.
 * @property messageReviewHandler Configuration information for optional review of messages.
 * @property name The name of the room. The value does not need to be unique.
 * @property tags An array of key-value pairs to apply to this resource.
 */
public data class RoomArgs(
    public val loggingConfigurationIdentifiers: Output>? = null,
    public val maximumMessageLength: Output? = null,
    public val maximumMessageRatePerSecond: Output? = null,
    public val messageReviewHandler: Output? = null,
    public val name: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ivschat.RoomArgs =
        com.pulumi.awsnative.ivschat.RoomArgs.builder()
            .loggingConfigurationIdentifiers(
                loggingConfigurationIdentifiers?.applyValue({ args0 ->
                    args0.map({ args0 -> args0 })
                }),
            )
            .maximumMessageLength(maximumMessageLength?.applyValue({ args0 -> args0 }))
            .maximumMessageRatePerSecond(maximumMessageRatePerSecond?.applyValue({ args0 -> args0 }))
            .messageReviewHandler(
                messageReviewHandler?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .name(name?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var maximumMessageLength: Output? = null

    private var maximumMessageRatePerSecond: Output? = null

    private var messageReviewHandler: Output? = null

    private var name: Output? = null

    private var tags: Output>? = null

    /**
     * @param value Array of logging configuration identifiers attached to the room.
     */
    @JvmName("aeilektoinjtirml")
    public suspend fun loggingConfigurationIdentifiers(`value`: Output>) {
        this.loggingConfigurationIdentifiers = value
    }

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

    /**
     * @param values Array of logging configuration identifiers attached to the room.
     */
    @JvmName("dstjiglklnpswwvg")
    public suspend fun loggingConfigurationIdentifiers(values: List>) {
        this.loggingConfigurationIdentifiers = Output.all(values)
    }

    /**
     * @param value The maximum number of characters in a single message.
     */
    @JvmName("bedmaplucyepfbqw")
    public suspend fun maximumMessageLength(`value`: Output) {
        this.maximumMessageLength = value
    }

    /**
     * @param value The maximum number of messages per second that can be sent to the room.
     */
    @JvmName("wxextcvrdxdbnxin")
    public suspend fun maximumMessageRatePerSecond(`value`: Output) {
        this.maximumMessageRatePerSecond = value
    }

    /**
     * @param value Configuration information for optional review of messages.
     */
    @JvmName("dptxpngmmxlhmgwo")
    public suspend fun messageReviewHandler(`value`: Output) {
        this.messageReviewHandler = value
    }

    /**
     * @param value The name of the room. The value does not need to be unique.
     */
    @JvmName("ldxeaauqeanqlxda")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("fgmpaqdhanafoeer")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values An array of key-value pairs to apply to this resource.
     */
    @JvmName("spqeqaqvadgnvnkt")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value Array of logging configuration identifiers attached to the room.
     */
    @JvmName("oqffrwoxgmsvtvty")
    public suspend fun loggingConfigurationIdentifiers(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.loggingConfigurationIdentifiers = mapped
    }

    /**
     * @param values Array of logging configuration identifiers attached to the room.
     */
    @JvmName("usnwtqulwimahekm")
    public suspend fun loggingConfigurationIdentifiers(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.loggingConfigurationIdentifiers = mapped
    }

    /**
     * @param value The maximum number of characters in a single message.
     */
    @JvmName("xseiixjhluvaopuq")
    public suspend fun maximumMessageLength(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maximumMessageLength = mapped
    }

    /**
     * @param value The maximum number of messages per second that can be sent to the room.
     */
    @JvmName("mxjyewuqsbxkpmas")
    public suspend fun maximumMessageRatePerSecond(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maximumMessageRatePerSecond = mapped
    }

    /**
     * @param value Configuration information for optional review of messages.
     */
    @JvmName("apjwkjbwlljqcqej")
    public suspend fun messageReviewHandler(`value`: RoomMessageReviewHandlerArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.messageReviewHandler = mapped
    }

    /**
     * @param argument Configuration information for optional review of messages.
     */
    @JvmName("lqbesgljixorhwpk")
    public suspend fun messageReviewHandler(argument: suspend RoomMessageReviewHandlerArgsBuilder.() -> Unit) {
        val toBeMapped = RoomMessageReviewHandlerArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.messageReviewHandler = mapped
    }

    /**
     * @param value The name of the room. The value does not need to be unique.
     */
    @JvmName("rmqhuwtbsgnqdqba")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("xwtcsrnumthagjgs")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("ahjukavtjtfbsflp")
    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 An array of key-value pairs to apply to this resource.
     */
    @JvmName("wbowghcfbydrppdp")
    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 An array of key-value pairs to apply to this resource.
     */
    @JvmName("hukrqqbiuiqnqort")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values An array of key-value pairs to apply to this resource.
     */
    @JvmName("rabwdbtcnhovmhmm")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): RoomArgs = RoomArgs(
        loggingConfigurationIdentifiers = loggingConfigurationIdentifiers,
        maximumMessageLength = maximumMessageLength,
        maximumMessageRatePerSecond = maximumMessageRatePerSecond,
        messageReviewHandler = messageReviewHandler,
        name = name,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy