com.pulumi.awsnative.quicksight.kotlin.inputs.TopicDefaultFormattingArgs.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.quicksight.kotlin.inputs
import com.pulumi.awsnative.quicksight.inputs.TopicDefaultFormattingArgs.builder
import com.pulumi.awsnative.quicksight.kotlin.enums.TopicDisplayFormat
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.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property displayFormat The display format. Valid values for this structure are `AUTO` , `PERCENT` , `CURRENCY` , `NUMBER` , `DATE` , and `STRING` .
* @property displayFormatOptions The additional options for display formatting.
*/
public data class TopicDefaultFormattingArgs(
public val displayFormat: Output? = null,
public val displayFormatOptions: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.quicksight.inputs.TopicDefaultFormattingArgs =
com.pulumi.awsnative.quicksight.inputs.TopicDefaultFormattingArgs.builder()
.displayFormat(displayFormat?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.displayFormatOptions(
displayFormatOptions?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [TopicDefaultFormattingArgs].
*/
@PulumiTagMarker
public class TopicDefaultFormattingArgsBuilder internal constructor() {
private var displayFormat: Output? = null
private var displayFormatOptions: Output? = null
/**
* @param value The display format. Valid values for this structure are `AUTO` , `PERCENT` , `CURRENCY` , `NUMBER` , `DATE` , and `STRING` .
*/
@JvmName("ogmhxpvkihkhcqwu")
public suspend fun displayFormat(`value`: Output) {
this.displayFormat = value
}
/**
* @param value The additional options for display formatting.
*/
@JvmName("jixrpjwqpiwnhqpa")
public suspend fun displayFormatOptions(`value`: Output) {
this.displayFormatOptions = value
}
/**
* @param value The display format. Valid values for this structure are `AUTO` , `PERCENT` , `CURRENCY` , `NUMBER` , `DATE` , and `STRING` .
*/
@JvmName("muowyhqrtymqqymc")
public suspend fun displayFormat(`value`: TopicDisplayFormat?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.displayFormat = mapped
}
/**
* @param value The additional options for display formatting.
*/
@JvmName("svvnseeksapcjghy")
public suspend fun displayFormatOptions(`value`: TopicDisplayFormatOptionsArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.displayFormatOptions = mapped
}
/**
* @param argument The additional options for display formatting.
*/
@JvmName("uexdlcmkrdhbxcqb")
public suspend fun displayFormatOptions(argument: suspend TopicDisplayFormatOptionsArgsBuilder.() -> Unit) {
val toBeMapped = TopicDisplayFormatOptionsArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.displayFormatOptions = mapped
}
internal fun build(): TopicDefaultFormattingArgs = TopicDefaultFormattingArgs(
displayFormat = displayFormat,
displayFormatOptions = displayFormatOptions,
)
}