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

com.pulumi.awsnative.quicksight.kotlin.outputs.DashboardDateTimeParameterDeclaration.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.quicksight.kotlin.outputs

import com.pulumi.awsnative.quicksight.kotlin.enums.DashboardTimeGranularity
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property defaultValues The default values of a parameter. If the parameter is a single-value parameter, a maximum of one default value can be provided.
 * @property mappedDataSetParameters
 * @property name The name of the parameter that is being declared.
 * @property timeGranularity The level of time precision that is used to aggregate `DateTime` values.
 * @property valueWhenUnset The configuration that defines the default value of a `DateTime` parameter when a value has not been set.
 */
public data class DashboardDateTimeParameterDeclaration(
    public val defaultValues: DashboardDateTimeDefaultValues? = null,
    public val mappedDataSetParameters: List? = null,
    public val name: String,
    public val timeGranularity: DashboardTimeGranularity? = null,
    public val valueWhenUnset: DashboardDateTimeValueWhenUnsetConfiguration? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.quicksight.outputs.DashboardDateTimeParameterDeclaration): DashboardDateTimeParameterDeclaration = DashboardDateTimeParameterDeclaration(
            defaultValues = javaType.defaultValues().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.quicksight.kotlin.outputs.DashboardDateTimeDefaultValues.Companion.toKotlin(args0)
                })
            }).orElse(null),
            mappedDataSetParameters = javaType.mappedDataSetParameters().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.quicksight.kotlin.outputs.DashboardMappedDataSetParameter.Companion.toKotlin(args0)
                })
            }),
            name = javaType.name(),
            timeGranularity = javaType.timeGranularity().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.quicksight.kotlin.enums.DashboardTimeGranularity.Companion.toKotlin(args0)
                })
            }).orElse(null),
            valueWhenUnset = javaType.valueWhenUnset().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.quicksight.kotlin.outputs.DashboardDateTimeValueWhenUnsetConfiguration.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy