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

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

package com.pulumi.awsnative.connect.kotlin

import com.pulumi.awsnative.connect.PhoneNumberArgs.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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Resource Type definition for AWS::Connect::PhoneNumber
 * @property countryCode The phone number country code.
 * @property description The description of the phone number.
 * @property prefix The phone number prefix.
 * @property sourcePhoneNumberArn The source phone number arn.
 * @property tags One or more tags.
 * @property targetArn The ARN of the target the phone number is claimed to.
 * @property type The phone number type
 */
public data class PhoneNumberArgs(
    public val countryCode: Output? = null,
    public val description: Output? = null,
    public val prefix: Output? = null,
    public val sourcePhoneNumberArn: Output? = null,
    public val tags: Output>? = null,
    public val targetArn: Output? = null,
    public val type: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.connect.PhoneNumberArgs =
        com.pulumi.awsnative.connect.PhoneNumberArgs.builder()
            .countryCode(countryCode?.applyValue({ args0 -> args0 }))
            .description(description?.applyValue({ args0 -> args0 }))
            .prefix(prefix?.applyValue({ args0 -> args0 }))
            .sourcePhoneNumberArn(sourcePhoneNumberArn?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .targetArn(targetArn?.applyValue({ args0 -> args0 }))
            .type(type?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [PhoneNumberArgs].
 */
@PulumiTagMarker
public class PhoneNumberArgsBuilder internal constructor() {
    private var countryCode: Output? = null

    private var description: Output? = null

    private var prefix: Output? = null

    private var sourcePhoneNumberArn: Output? = null

    private var tags: Output>? = null

    private var targetArn: Output? = null

    private var type: Output? = null

    /**
     * @param value The phone number country code.
     */
    @JvmName("dbyllnsymnuwdtme")
    public suspend fun countryCode(`value`: Output) {
        this.countryCode = value
    }

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

    /**
     * @param value The phone number prefix.
     */
    @JvmName("wvausbfptyfxejch")
    public suspend fun prefix(`value`: Output) {
        this.prefix = value
    }

    /**
     * @param value The source phone number arn.
     */
    @JvmName("djfxvnndppiohwht")
    public suspend fun sourcePhoneNumberArn(`value`: Output) {
        this.sourcePhoneNumberArn = value
    }

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

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

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

    /**
     * @param value The ARN of the target the phone number is claimed to.
     */
    @JvmName("htoaxfphqtikfded")
    public suspend fun targetArn(`value`: Output) {
        this.targetArn = value
    }

    /**
     * @param value The phone number type
     */
    @JvmName("gfhbpsafyjuwhqla")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value The phone number country code.
     */
    @JvmName("djnwbmnsgnovbpkh")
    public suspend fun countryCode(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.countryCode = mapped
    }

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

    /**
     * @param value The phone number prefix.
     */
    @JvmName("vbbthwgppsssydmh")
    public suspend fun prefix(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.prefix = mapped
    }

    /**
     * @param value The source phone number arn.
     */
    @JvmName("ngjtugkmnxidbdhj")
    public suspend fun sourcePhoneNumberArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sourcePhoneNumberArn = mapped
    }

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

    /**
     * @param value The ARN of the target the phone number is claimed to.
     */
    @JvmName("tkejyhqecrclkfer")
    public suspend fun targetArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.targetArn = mapped
    }

    /**
     * @param value The phone number type
     */
    @JvmName("dqpkvbyqdfmxllcq")
    public suspend fun type(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): PhoneNumberArgs = PhoneNumberArgs(
        countryCode = countryCode,
        description = description,
        prefix = prefix,
        sourcePhoneNumberArn = sourcePhoneNumberArn,
        tags = tags,
        targetArn = targetArn,
        type = type,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy