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

com.pulumi.aws.connect.kotlin.inputs.GetInstancePlainArgs.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.connect.kotlin.inputs

import com.pulumi.aws.connect.inputs.GetInstancePlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * A collection of arguments for invoking getInstance.
 * @property instanceAlias Returns information on a specific connect instance by alias
 * @property instanceId Returns information on a specific connect instance by id
 * @property tags A map of tags to assigned to the instance.
 */
public data class GetInstancePlainArgs(
    public val instanceAlias: String? = null,
    public val instanceId: String? = null,
    public val tags: Map? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.connect.inputs.GetInstancePlainArgs =
        com.pulumi.aws.connect.inputs.GetInstancePlainArgs.builder()
            .instanceAlias(instanceAlias?.let({ args0 -> args0 }))
            .instanceId(instanceId?.let({ args0 -> args0 }))
            .tags(tags?.let({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() })).build()
}

/**
 * Builder for [GetInstancePlainArgs].
 */
@PulumiTagMarker
public class GetInstancePlainArgsBuilder internal constructor() {
    private var instanceAlias: String? = null

    private var instanceId: String? = null

    private var tags: Map? = null

    /**
     * @param value Returns information on a specific connect instance by alias
     */
    @JvmName("njwkaqhxhujocutb")
    public suspend fun instanceAlias(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.instanceAlias = mapped
    }

    /**
     * @param value Returns information on a specific connect instance by id
     */
    @JvmName("rmuxttpljtpigwhd")
    public suspend fun instanceId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.instanceId = mapped
    }

    /**
     * @param value A map of tags to assigned to the instance.
     */
    @JvmName("suudncqaqmkxoavw")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.tags = mapped
    }

    /**
     * @param values A map of tags to assigned to the instance.
     */
    @JvmName("puvasprccqsygyws")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.tags = mapped
    }

    internal fun build(): GetInstancePlainArgs = GetInstancePlainArgs(
        instanceAlias = instanceAlias,
        instanceId = instanceId,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy