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

com.pulumi.awsnative.pinpoint.kotlin.outputs.InAppTemplateDefaultButtonConfiguration.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.11.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

import com.pulumi.awsnative.pinpoint.kotlin.enums.InAppTemplateButtonAction
import kotlin.Int
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property backgroundColor The background color of a button, expressed as a hex color code (such as #000000 for black).
 * @property borderRadius The border radius of a button.
 * @property buttonAction The action that occurs when a recipient chooses a button in an in-app message. You can specify one of the following:
 * - `LINK` – A link to a web destination.
 * - `DEEP_LINK` – A link to a specific page in an application.
 * - `CLOSE` – Dismisses the message.
 * @property link The destination (such as a URL) for a button.
 * @property text The text that appears on a button in an in-app message.
 * @property textColor The color of the body text in a button, expressed as a hex color code (such as #000000 for black).
 */
public data class InAppTemplateDefaultButtonConfiguration(
    public val backgroundColor: String? = null,
    public val borderRadius: Int? = null,
    public val buttonAction: InAppTemplateButtonAction? = null,
    public val link: String? = null,
    public val text: String? = null,
    public val textColor: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.pinpoint.outputs.InAppTemplateDefaultButtonConfiguration): InAppTemplateDefaultButtonConfiguration = InAppTemplateDefaultButtonConfiguration(
            backgroundColor = javaType.backgroundColor().map({ args0 -> args0 }).orElse(null),
            borderRadius = javaType.borderRadius().map({ args0 -> args0 }).orElse(null),
            buttonAction = javaType.buttonAction().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.pinpoint.kotlin.enums.InAppTemplateButtonAction.Companion.toKotlin(args0)
                })
            }).orElse(null),
            link = javaType.link().map({ args0 -> args0 }).orElse(null),
            text = javaType.text().map({ args0 -> args0 }).orElse(null),
            textColor = javaType.textColor().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy