com.pulumi.awsnative.quicksight.kotlin.inputs.TemplateFormatConfigurationArgs.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.TemplateFormatConfigurationArgs.builder
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 dateTimeFormatConfiguration Formatting configuration for `DateTime` fields.
* @property numberFormatConfiguration Formatting configuration for number fields.
* @property stringFormatConfiguration Formatting configuration for string fields.
*/
public data class TemplateFormatConfigurationArgs(
public val dateTimeFormatConfiguration: Output? = null,
public val numberFormatConfiguration: Output? = null,
public val stringFormatConfiguration: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.quicksight.inputs.TemplateFormatConfigurationArgs =
com.pulumi.awsnative.quicksight.inputs.TemplateFormatConfigurationArgs.builder()
.dateTimeFormatConfiguration(
dateTimeFormatConfiguration?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.numberFormatConfiguration(
numberFormatConfiguration?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.stringFormatConfiguration(
stringFormatConfiguration?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [TemplateFormatConfigurationArgs].
*/
@PulumiTagMarker
public class TemplateFormatConfigurationArgsBuilder internal constructor() {
private var dateTimeFormatConfiguration: Output? = null
private var numberFormatConfiguration: Output? = null
private var stringFormatConfiguration: Output? = null
/**
* @param value Formatting configuration for `DateTime` fields.
*/
@JvmName("cftwwrqhxqgdijoh")
public suspend fun dateTimeFormatConfiguration(`value`: Output) {
this.dateTimeFormatConfiguration = value
}
/**
* @param value Formatting configuration for number fields.
*/
@JvmName("kmwbesmxcycqabgh")
public suspend fun numberFormatConfiguration(`value`: Output) {
this.numberFormatConfiguration = value
}
/**
* @param value Formatting configuration for string fields.
*/
@JvmName("otvcalibwwfacrsp")
public suspend fun stringFormatConfiguration(`value`: Output) {
this.stringFormatConfiguration = value
}
/**
* @param value Formatting configuration for `DateTime` fields.
*/
@JvmName("aosxrrhbpltlalai")
public suspend fun dateTimeFormatConfiguration(`value`: TemplateDateTimeFormatConfigurationArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.dateTimeFormatConfiguration = mapped
}
/**
* @param argument Formatting configuration for `DateTime` fields.
*/
@JvmName("oslmbwfvfnoaeovv")
public suspend fun dateTimeFormatConfiguration(argument: suspend TemplateDateTimeFormatConfigurationArgsBuilder.() -> Unit) {
val toBeMapped = TemplateDateTimeFormatConfigurationArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.dateTimeFormatConfiguration = mapped
}
/**
* @param value Formatting configuration for number fields.
*/
@JvmName("dusvfhwxerllvvil")
public suspend fun numberFormatConfiguration(`value`: TemplateNumberFormatConfigurationArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.numberFormatConfiguration = mapped
}
/**
* @param argument Formatting configuration for number fields.
*/
@JvmName("lwntckxyfuhgnfgx")
public suspend fun numberFormatConfiguration(argument: suspend TemplateNumberFormatConfigurationArgsBuilder.() -> Unit) {
val toBeMapped = TemplateNumberFormatConfigurationArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.numberFormatConfiguration = mapped
}
/**
* @param value Formatting configuration for string fields.
*/
@JvmName("wpuelctweweqfrhd")
public suspend fun stringFormatConfiguration(`value`: TemplateStringFormatConfigurationArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.stringFormatConfiguration = mapped
}
/**
* @param argument Formatting configuration for string fields.
*/
@JvmName("txebyvdhmbeiqepv")
public suspend fun stringFormatConfiguration(argument: suspend TemplateStringFormatConfigurationArgsBuilder.() -> Unit) {
val toBeMapped = TemplateStringFormatConfigurationArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.stringFormatConfiguration = mapped
}
internal fun build(): TemplateFormatConfigurationArgs = TemplateFormatConfigurationArgs(
dateTimeFormatConfiguration = dateTimeFormatConfiguration,
numberFormatConfiguration = numberFormatConfiguration,
stringFormatConfiguration = stringFormatConfiguration,
)
}