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

com.pulumi.awsnative.quicksight.kotlin.inputs.TemplateDateTimeFormatConfigurationArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.quicksight.kotlin.inputs

import com.pulumi.awsnative.quicksight.inputs.TemplateDateTimeFormatConfigurationArgs.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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property dateTimeFormat Determines the `DateTime` format.
 * @property nullValueFormatConfiguration The options that determine the null value format configuration.
 * @property numericFormatConfiguration The formatting configuration for numeric `DateTime` fields.
 */
public data class TemplateDateTimeFormatConfigurationArgs(
    public val dateTimeFormat: Output? = null,
    public val nullValueFormatConfiguration: Output? = null,
    public val numericFormatConfiguration: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.quicksight.inputs.TemplateDateTimeFormatConfigurationArgs =
        com.pulumi.awsnative.quicksight.inputs.TemplateDateTimeFormatConfigurationArgs.builder()
            .dateTimeFormat(dateTimeFormat?.applyValue({ args0 -> args0 }))
            .nullValueFormatConfiguration(
                nullValueFormatConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 -> args0.toJava() })
                }),
            )
            .numericFormatConfiguration(
                numericFormatConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [TemplateDateTimeFormatConfigurationArgs].
 */
@PulumiTagMarker
public class TemplateDateTimeFormatConfigurationArgsBuilder internal constructor() {
    private var dateTimeFormat: Output? = null

    private var nullValueFormatConfiguration: Output? = null

    private var numericFormatConfiguration: Output? = null

    /**
     * @param value Determines the `DateTime` format.
     */
    @JvmName("sfowakbhdbdibqtc")
    public suspend fun dateTimeFormat(`value`: Output) {
        this.dateTimeFormat = value
    }

    /**
     * @param value The options that determine the null value format configuration.
     */
    @JvmName("nrbeqotwhuagqxwx")
    public suspend fun nullValueFormatConfiguration(`value`: Output) {
        this.nullValueFormatConfiguration = value
    }

    /**
     * @param value The formatting configuration for numeric `DateTime` fields.
     */
    @JvmName("fqndcvwpoblpwpju")
    public suspend fun numericFormatConfiguration(`value`: Output) {
        this.numericFormatConfiguration = value
    }

    /**
     * @param value Determines the `DateTime` format.
     */
    @JvmName("jcevfarhgcbtmeaw")
    public suspend fun dateTimeFormat(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dateTimeFormat = mapped
    }

    /**
     * @param value The options that determine the null value format configuration.
     */
    @JvmName("padwembiusvtanbu")
    public suspend fun nullValueFormatConfiguration(`value`: TemplateNullValueFormatConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.nullValueFormatConfiguration = mapped
    }

    /**
     * @param argument The options that determine the null value format configuration.
     */
    @JvmName("gnmwosypdijqqsbt")
    public suspend fun nullValueFormatConfiguration(argument: suspend TemplateNullValueFormatConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = TemplateNullValueFormatConfigurationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.nullValueFormatConfiguration = mapped
    }

    /**
     * @param value The formatting configuration for numeric `DateTime` fields.
     */
    @JvmName("wmbmkoatgjdpgofb")
    public suspend fun numericFormatConfiguration(`value`: TemplateNumericFormatConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.numericFormatConfiguration = mapped
    }

    /**
     * @param argument The formatting configuration for numeric `DateTime` fields.
     */
    @JvmName("udwdphttlkwaospo")
    public suspend fun numericFormatConfiguration(argument: suspend TemplateNumericFormatConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = TemplateNumericFormatConfigurationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.numericFormatConfiguration = mapped
    }

    internal fun build(): TemplateDateTimeFormatConfigurationArgs =
        TemplateDateTimeFormatConfigurationArgs(
            dateTimeFormat = dateTimeFormat,
            nullValueFormatConfiguration = nullValueFormatConfiguration,
            numericFormatConfiguration = numericFormatConfiguration,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy