
com.pulumi.awsnative.quicksight.kotlin.outputs.TemplatePeriodToDateComputation.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.outputs
import com.pulumi.awsnative.quicksight.kotlin.enums.TemplateTimeGranularity
import kotlin.String
import kotlin.Suppress
/**
*
* @property computationId The ID for a computation.
* @property name The name of a computation.
* @property periodTimeGranularity The time granularity setup of period to date computation. Choose from the following options:
* - YEAR: Year to date.
* - MONTH: Month to date.
* @property time The time field that is used in a computation.
* @property value The value field that is used in a computation.
*/
public data class TemplatePeriodToDateComputation(
public val computationId: String,
public val name: String? = null,
public val periodTimeGranularity: TemplateTimeGranularity? = null,
public val time: TemplateDimensionField? = null,
public val `value`: TemplateMeasureField? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.quicksight.outputs.TemplatePeriodToDateComputation): TemplatePeriodToDateComputation = TemplatePeriodToDateComputation(
computationId = javaType.computationId(),
name = javaType.name().map({ args0 -> args0 }).orElse(null),
periodTimeGranularity = javaType.periodTimeGranularity().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.quicksight.kotlin.enums.TemplateTimeGranularity.Companion.toKotlin(args0)
})
}).orElse(null),
time = javaType.time().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.quicksight.kotlin.outputs.TemplateDimensionField.Companion.toKotlin(args0)
})
}).orElse(null),
`value` = javaType.`value`().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.quicksight.kotlin.outputs.TemplateMeasureField.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy