
com.pulumi.awsnative.connect.kotlin.PhoneNumberArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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
© 2015 - 2025 Weber Informatics LLC | Privacy Policy