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

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

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

import kotlin.String
import kotlin.Suppress

/**
 *
 * @property backgroundColor The background color for an in-app message banner, expressed as a hex color code (such as #000000 for black).
 * @property bodyConfig An object that contains configuration information about the header or title text of the in-app message.
 * @property headerConfig An object that contains configuration information about the header or title text of the in-app message.
 * @property imageUrl The URL of the image that appears on an in-app message banner.
 * @property primaryBtn An object that contains configuration information about the primary button in an in-app message.
 * @property secondaryBtn An object that contains configuration information about the secondary button in an in-app message.
 */
public data class InAppTemplateInAppMessageContent(
    public val backgroundColor: String? = null,
    public val bodyConfig: InAppTemplateBodyConfig? = null,
    public val headerConfig: InAppTemplateHeaderConfig? = null,
    public val imageUrl: String? = null,
    public val primaryBtn: InAppTemplateButtonConfig? = null,
    public val secondaryBtn: InAppTemplateButtonConfig? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.pinpoint.outputs.InAppTemplateInAppMessageContent): InAppTemplateInAppMessageContent = InAppTemplateInAppMessageContent(
            backgroundColor = javaType.backgroundColor().map({ args0 -> args0 }).orElse(null),
            bodyConfig = javaType.bodyConfig().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.pinpoint.kotlin.outputs.InAppTemplateBodyConfig.Companion.toKotlin(args0)
                })
            }).orElse(null),
            headerConfig = javaType.headerConfig().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.pinpoint.kotlin.outputs.InAppTemplateHeaderConfig.Companion.toKotlin(args0)
                })
            }).orElse(null),
            imageUrl = javaType.imageUrl().map({ args0 -> args0 }).orElse(null),
            primaryBtn = javaType.primaryBtn().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.pinpoint.kotlin.outputs.InAppTemplateButtonConfig.Companion.toKotlin(args0)
                })
            }).orElse(null),
            secondaryBtn = javaType.secondaryBtn().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.pinpoint.kotlin.outputs.InAppTemplateButtonConfig.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy