com.pulumi.awsnative.quicksight.kotlin.outputs.ThemeVersion.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.ThemeResourceStatus
import kotlin.Double
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
* A version of a theme.
* @property arn The Amazon Resource Name (ARN) of the resource.
* @property baseThemeId The Amazon QuickSight-defined ID of the theme that a custom theme inherits from. All
* themes initially inherit from a default Amazon QuickSight theme.
* @property configuration The theme configuration, which contains all the theme display properties.
* @property createdTime The date and time that this theme version was created.
* @property description The description of the theme.
* @property errors Errors associated with the theme.
* @property status The status of the theme version.
* @property versionNumber The version number of the theme.
*/
public data class ThemeVersion(
public val arn: String? = null,
public val baseThemeId: String? = null,
public val configuration: ThemeConfiguration? = null,
public val createdTime: String? = null,
public val description: String? = null,
public val errors: List? = null,
public val status: ThemeResourceStatus? = null,
public val versionNumber: Double? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.quicksight.outputs.ThemeVersion): ThemeVersion = ThemeVersion(
arn = javaType.arn().map({ args0 -> args0 }).orElse(null),
baseThemeId = javaType.baseThemeId().map({ args0 -> args0 }).orElse(null),
configuration = javaType.configuration().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.quicksight.kotlin.outputs.ThemeConfiguration.Companion.toKotlin(args0)
})
}).orElse(null),
createdTime = javaType.createdTime().map({ args0 -> args0 }).orElse(null),
description = javaType.description().map({ args0 -> args0 }).orElse(null),
errors = javaType.errors().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.quicksight.kotlin.outputs.ThemeError.Companion.toKotlin(args0)
})
}),
status = javaType.status().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.quicksight.kotlin.enums.ThemeResourceStatus.Companion.toKotlin(args0)
})
}).orElse(null),
versionNumber = javaType.versionNumber().map({ args0 -> args0 }).orElse(null),
)
}
}