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

com.pulumi.awsnative.pinpoint.kotlin.InAppTemplateArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.pinpoint.kotlin

import com.pulumi.awsnative.pinpoint.InAppTemplateArgs.builder
import com.pulumi.awsnative.pinpoint.kotlin.enums.InAppTemplateLayout
import com.pulumi.awsnative.pinpoint.kotlin.inputs.InAppTemplateInAppMessageContentArgs
import com.pulumi.awsnative.pinpoint.kotlin.inputs.InAppTemplateInAppMessageContentArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Any
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Resource Type definition for AWS::Pinpoint::InAppTemplate
 * @property content An object that contains information about the content of an in-app message, including its title and body text, text colors, background colors, images, buttons, and behaviors.
 * @property customConfig Custom data, in the form of key-value pairs, that is included in an in-app messaging payload.
 * Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::Pinpoint::InAppTemplate` for more information about the expected schema for this property.
 * @property layout A string that determines the appearance of the in-app message. You can specify one of the following:
 * - `BOTTOM_BANNER` – a message that appears as a banner at the bottom of the page.
 * - `TOP_BANNER` – a message that appears as a banner at the top of the page.
 * - `OVERLAYS` – a message that covers entire screen.
 * - `MOBILE_FEED` – a message that appears in a window in front of the page.
 * - `MIDDLE_BANNER` – a message that appears as a banner in the middle of the page.
 * - `CAROUSEL` – a scrollable layout of up to five unique messages.
 * @property tags An array of key-value pairs to apply to this resource.
 * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
 * Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::Pinpoint::InAppTemplate` for more information about the expected schema for this property.
 * @property templateDescription An optional description of the in-app template.
 * @property templateName The name of the in-app message template.
 */
public data class InAppTemplateArgs(
    public val content: Output>? = null,
    public val customConfig: Output? = null,
    public val layout: Output? = null,
    public val tags: Output? = null,
    public val templateDescription: Output? = null,
    public val templateName: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.pinpoint.InAppTemplateArgs =
        com.pulumi.awsnative.pinpoint.InAppTemplateArgs.builder()
            .content(
                content?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .customConfig(customConfig?.applyValue({ args0 -> args0 }))
            .layout(layout?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .tags(tags?.applyValue({ args0 -> args0 }))
            .templateDescription(templateDescription?.applyValue({ args0 -> args0 }))
            .templateName(templateName?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [InAppTemplateArgs].
 */
@PulumiTagMarker
public class InAppTemplateArgsBuilder internal constructor() {
    private var content: Output>? = null

    private var customConfig: Output? = null

    private var layout: Output? = null

    private var tags: Output? = null

    private var templateDescription: Output? = null

    private var templateName: Output? = null

    /**
     * @param value An object that contains information about the content of an in-app message, including its title and body text, text colors, background colors, images, buttons, and behaviors.
     */
    @JvmName("makcvghxsrjnjjym")
    public suspend fun content(`value`: Output>) {
        this.content = value
    }

    @JvmName("ugxklktishpypawp")
    public suspend fun content(vararg values: Output) {
        this.content = Output.all(values.asList())
    }

    /**
     * @param values An object that contains information about the content of an in-app message, including its title and body text, text colors, background colors, images, buttons, and behaviors.
     */
    @JvmName("fkwosouxwimbsnvi")
    public suspend fun content(values: List>) {
        this.content = Output.all(values)
    }

    /**
     * @param value Custom data, in the form of key-value pairs, that is included in an in-app messaging payload.
     * Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::Pinpoint::InAppTemplate` for more information about the expected schema for this property.
     */
    @JvmName("kujqnakaxtmqtbap")
    public suspend fun customConfig(`value`: Output) {
        this.customConfig = value
    }

    /**
     * @param value A string that determines the appearance of the in-app message. You can specify one of the following:
     * - `BOTTOM_BANNER` – a message that appears as a banner at the bottom of the page.
     * - `TOP_BANNER` – a message that appears as a banner at the top of the page.
     * - `OVERLAYS` – a message that covers entire screen.
     * - `MOBILE_FEED` – a message that appears in a window in front of the page.
     * - `MIDDLE_BANNER` – a message that appears as a banner in the middle of the page.
     * - `CAROUSEL` – a scrollable layout of up to five unique messages.
     */
    @JvmName("pqdcoydgfomfplvm")
    public suspend fun layout(`value`: Output) {
        this.layout = value
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
     * Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::Pinpoint::InAppTemplate` for more information about the expected schema for this property.
     */
    @JvmName("sibpxyjlnvpsdlpm")
    public suspend fun tags(`value`: Output) {
        this.tags = value
    }

    /**
     * @param value An optional description of the in-app template.
     */
    @JvmName("ktfnjdnmdbhyuksm")
    public suspend fun templateDescription(`value`: Output) {
        this.templateDescription = value
    }

    /**
     * @param value The name of the in-app message template.
     */
    @JvmName("kxsolurrbhutjjai")
    public suspend fun templateName(`value`: Output) {
        this.templateName = value
    }

    /**
     * @param value An object that contains information about the content of an in-app message, including its title and body text, text colors, background colors, images, buttons, and behaviors.
     */
    @JvmName("iebdlpomppdjtjby")
    public suspend fun content(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.content = mapped
    }

    /**
     * @param argument An object that contains information about the content of an in-app message, including its title and body text, text colors, background colors, images, buttons, and behaviors.
     */
    @JvmName("ervctfgbsjyqcolr")
    public suspend fun content(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            InAppTemplateInAppMessageContentArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.content = mapped
    }

    /**
     * @param argument An object that contains information about the content of an in-app message, including its title and body text, text colors, background colors, images, buttons, and behaviors.
     */
    @JvmName("uabjudxqwbdwefri")
    public suspend fun content(vararg argument: suspend InAppTemplateInAppMessageContentArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            InAppTemplateInAppMessageContentArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.content = mapped
    }

    /**
     * @param argument An object that contains information about the content of an in-app message, including its title and body text, text colors, background colors, images, buttons, and behaviors.
     */
    @JvmName("kfdalbehdstvowex")
    public suspend fun content(argument: suspend InAppTemplateInAppMessageContentArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            InAppTemplateInAppMessageContentArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.content = mapped
    }

    /**
     * @param values An object that contains information about the content of an in-app message, including its title and body text, text colors, background colors, images, buttons, and behaviors.
     */
    @JvmName("jtkdbuhhaikiyicq")
    public suspend fun content(vararg values: InAppTemplateInAppMessageContentArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.content = mapped
    }

    /**
     * @param value Custom data, in the form of key-value pairs, that is included in an in-app messaging payload.
     * Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::Pinpoint::InAppTemplate` for more information about the expected schema for this property.
     */
    @JvmName("snskrvugvpritnfy")
    public suspend fun customConfig(`value`: Any?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.customConfig = mapped
    }

    /**
     * @param value A string that determines the appearance of the in-app message. You can specify one of the following:
     * - `BOTTOM_BANNER` – a message that appears as a banner at the bottom of the page.
     * - `TOP_BANNER` – a message that appears as a banner at the top of the page.
     * - `OVERLAYS` – a message that covers entire screen.
     * - `MOBILE_FEED` – a message that appears in a window in front of the page.
     * - `MIDDLE_BANNER` – a message that appears as a banner in the middle of the page.
     * - `CAROUSEL` – a scrollable layout of up to five unique messages.
     */
    @JvmName("xakocsuymasckvtx")
    public suspend fun layout(`value`: InAppTemplateLayout?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.layout = mapped
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
     * Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::Pinpoint::InAppTemplate` for more information about the expected schema for this property.
     */
    @JvmName("wjtcxeganoyrirsa")
    public suspend fun tags(`value`: Any?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value An optional description of the in-app template.
     */
    @JvmName("gtbsunqjwqknuugs")
    public suspend fun templateDescription(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.templateDescription = mapped
    }

    /**
     * @param value The name of the in-app message template.
     */
    @JvmName("pueskjnbsqnpvtkv")
    public suspend fun templateName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.templateName = mapped
    }

    internal fun build(): InAppTemplateArgs = InAppTemplateArgs(
        content = content,
        customConfig = customConfig,
        layout = layout,
        tags = tags,
        templateDescription = templateDescription,
        templateName = templateName,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy