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

com.pulumi.awsnative.pinpoint.kotlin.outputs.InAppTemplateBodyConfig.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.pinpoint.kotlin.outputs

import com.pulumi.awsnative.pinpoint.kotlin.enums.InAppTemplateAlignment
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property alignment The text alignment of the main body text of the message. Acceptable values: `LEFT` , `CENTER` , `RIGHT` .
 * @property body The main body text of the message.
 * @property textColor The color of the body text, expressed as a hex color code (such as #000000 for black).
 */
public data class InAppTemplateBodyConfig(
    public val alignment: InAppTemplateAlignment? = null,
    public val body: String? = null,
    public val textColor: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.pinpoint.outputs.InAppTemplateBodyConfig): InAppTemplateBodyConfig = InAppTemplateBodyConfig(
            alignment = javaType.alignment().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.pinpoint.kotlin.enums.InAppTemplateAlignment.Companion.toKotlin(args0)
                })
            }).orElse(null),
            body = javaType.body().map({ args0 -> args0 }).orElse(null),
            textColor = javaType.textColor().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy