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

aws.sdk.kotlin.services.pinpoint.model.InAppTemplateRequest.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.pinpoint.model



/**
 * InApp Template Request.
 */
class InAppTemplateRequest private constructor(builder: Builder) {
    /**
     * The content of the message, can include up to 5 modals. Each modal must contain a message, a header, and background color. ImageUrl and buttons are optional.
     */
    val content: List? = builder.content
    /**
     * Custom config to be sent to client.
     */
    val customConfig: Map? = builder.customConfig
    /**
     * The layout of the message.
     */
    val layout: aws.sdk.kotlin.services.pinpoint.model.Layout? = builder.layout
    /**
     * A string-to-string map of key-value pairs that defines the tags to associate with the message template. Each tag consists of a required tag key and an associated tag value.
     */
    val tags: Map? = builder.tags
    /**
     * The description of the template.
     */
    val templateDescription: kotlin.String? = builder.templateDescription

    companion object {
        operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.pinpoint.model.InAppTemplateRequest = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("InAppTemplateRequest(")
        append("content=$content,")
        append("customConfig=$customConfig,")
        append("layout=$layout,")
        append("tags=$tags,")
        append("templateDescription=$templateDescription)")
    }

    override fun hashCode(): kotlin.Int {
        var result = content?.hashCode() ?: 0
        result = 31 * result + (customConfig?.hashCode() ?: 0)
        result = 31 * result + (layout?.hashCode() ?: 0)
        result = 31 * result + (tags?.hashCode() ?: 0)
        result = 31 * result + (templateDescription?.hashCode() ?: 0)
        return result
    }

    override fun equals(other: kotlin.Any?): kotlin.Boolean {
        if (this === other) return true
        if (other == null || this::class != other::class) return false

        other as InAppTemplateRequest

        if (content != other.content) return false
        if (customConfig != other.customConfig) return false
        if (layout != other.layout) return false
        if (tags != other.tags) return false
        if (templateDescription != other.templateDescription) return false

        return true
    }

    inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.pinpoint.model.InAppTemplateRequest = Builder(this).apply(block).build()

    class Builder {
        /**
         * The content of the message, can include up to 5 modals. Each modal must contain a message, a header, and background color. ImageUrl and buttons are optional.
         */
        var content: List? = null
        /**
         * Custom config to be sent to client.
         */
        var customConfig: Map? = null
        /**
         * The layout of the message.
         */
        var layout: aws.sdk.kotlin.services.pinpoint.model.Layout? = null
        /**
         * A string-to-string map of key-value pairs that defines the tags to associate with the message template. Each tag consists of a required tag key and an associated tag value.
         */
        var tags: Map? = null
        /**
         * The description of the template.
         */
        var templateDescription: kotlin.String? = null

        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.pinpoint.model.InAppTemplateRequest) : this() {
            this.content = x.content
            this.customConfig = x.customConfig
            this.layout = x.layout
            this.tags = x.tags
            this.templateDescription = x.templateDescription
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.pinpoint.model.InAppTemplateRequest = InAppTemplateRequest(this)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy