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

com.pulumi.awsnative.connectcampaigns.kotlin.CampaignArgs.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.connectcampaigns.kotlin

import com.pulumi.awsnative.connectcampaigns.CampaignArgs.builder
import com.pulumi.awsnative.connectcampaigns.kotlin.inputs.CampaignDialerConfigArgs
import com.pulumi.awsnative.connectcampaigns.kotlin.inputs.CampaignDialerConfigArgsBuilder
import com.pulumi.awsnative.connectcampaigns.kotlin.inputs.CampaignOutboundCallConfigArgs
import com.pulumi.awsnative.connectcampaigns.kotlin.inputs.CampaignOutboundCallConfigArgsBuilder
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Definition of AWS::ConnectCampaigns::Campaign Resource Type
 * @property connectInstanceArn Amazon Connect Instance Arn
 * @property dialerConfig Contains information about the dialer configuration.
 * @property name Amazon Connect Campaign Name
 * @property outboundCallConfig Contains information about the outbound call configuration.
 * @property tags One or more tags.
 */
public data class CampaignArgs(
    public val connectInstanceArn: Output? = null,
    public val dialerConfig: Output? = null,
    public val name: Output? = null,
    public val outboundCallConfig: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.connectcampaigns.CampaignArgs =
        com.pulumi.awsnative.connectcampaigns.CampaignArgs.builder()
            .connectInstanceArn(connectInstanceArn?.applyValue({ args0 -> args0 }))
            .dialerConfig(dialerConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .name(name?.applyValue({ args0 -> args0 }))
            .outboundCallConfig(
                outboundCallConfig?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [CampaignArgs].
 */
@PulumiTagMarker
public class CampaignArgsBuilder internal constructor() {
    private var connectInstanceArn: Output? = null

    private var dialerConfig: Output? = null

    private var name: Output? = null

    private var outboundCallConfig: Output? = null

    private var tags: Output>? = null

    /**
     * @param value Amazon Connect Instance Arn
     */
    @JvmName("rablfnaaecwxgpcs")
    public suspend fun connectInstanceArn(`value`: Output) {
        this.connectInstanceArn = value
    }

    /**
     * @param value Contains information about the dialer configuration.
     */
    @JvmName("pmwjcrqbmykfqpcx")
    public suspend fun dialerConfig(`value`: Output) {
        this.dialerConfig = value
    }

    /**
     * @param value Amazon Connect Campaign Name
     */
    @JvmName("xppdeggorbwducgo")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Contains information about the outbound call configuration.
     */
    @JvmName("ccvqtfreqavtvsep")
    public suspend fun outboundCallConfig(`value`: Output) {
        this.outboundCallConfig = value
    }

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

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

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

    /**
     * @param value Amazon Connect Instance Arn
     */
    @JvmName("tklucjxawgobcvrn")
    public suspend fun connectInstanceArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.connectInstanceArn = mapped
    }

    /**
     * @param value Contains information about the dialer configuration.
     */
    @JvmName("nbdmrbiaakuflxoh")
    public suspend fun dialerConfig(`value`: CampaignDialerConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dialerConfig = mapped
    }

    /**
     * @param argument Contains information about the dialer configuration.
     */
    @JvmName("wotakxbvhesxxgvf")
    public suspend fun dialerConfig(argument: suspend CampaignDialerConfigArgsBuilder.() -> Unit) {
        val toBeMapped = CampaignDialerConfigArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.dialerConfig = mapped
    }

    /**
     * @param value Amazon Connect Campaign Name
     */
    @JvmName("bujxmuviyhtpbhke")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Contains information about the outbound call configuration.
     */
    @JvmName("otnebfdapsyslqax")
    public suspend fun outboundCallConfig(`value`: CampaignOutboundCallConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.outboundCallConfig = mapped
    }

    /**
     * @param argument Contains information about the outbound call configuration.
     */
    @JvmName("oadsyqukwbmjvoob")
    public suspend fun outboundCallConfig(argument: suspend CampaignOutboundCallConfigArgsBuilder.() -> Unit) {
        val toBeMapped = CampaignOutboundCallConfigArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.outboundCallConfig = mapped
    }

    /**
     * @param value One or more tags.
     */
    @JvmName("lgaiuulpjrxhdjql")
    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("ngxytujdfyutavsh")
    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("rrwuiybvlfxkbocl")
    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("jihoybylilchnjjk")
    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("uqkniguwqqeihobg")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): CampaignArgs = CampaignArgs(
        connectInstanceArn = connectInstanceArn,
        dialerConfig = dialerConfig,
        name = name,
        outboundCallConfig = outboundCallConfig,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy