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

commonMain.aws.sdk.kotlin.services.chimesdkmessaging.model.PushNotificationConfiguration.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.chimesdkmessaging.model



/**
 * The push notification configuration of the message.
 */
public class PushNotificationConfiguration private constructor(builder: Builder) {
    /**
     * The body of the push notification.
     */
    public val body: kotlin.String? = builder.body
    /**
     * The title of the push notification.
     */
    public val title: kotlin.String? = builder.title
    /**
     * Enum value that indicates the type of the push notification for a message. `DEFAULT`: Normal mobile push notification. `VOIP`: VOIP mobile push notification.
     */
    public val type: aws.sdk.kotlin.services.chimesdkmessaging.model.PushNotificationType? = builder.type

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

    override fun toString(): kotlin.String = buildString {
        append("PushNotificationConfiguration(")
        append("body=*** Sensitive Data Redacted ***,")
        append("title=*** Sensitive Data Redacted ***,")
        append("type=$type")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = body?.hashCode() ?: 0
        result = 31 * result + (title?.hashCode() ?: 0)
        result = 31 * result + (type?.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 PushNotificationConfiguration

        if (body != other.body) return false
        if (title != other.title) return false
        if (type != other.type) return false

        return true
    }

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

    public class Builder {
        /**
         * The body of the push notification.
         */
        public var body: kotlin.String? = null
        /**
         * The title of the push notification.
         */
        public var title: kotlin.String? = null
        /**
         * Enum value that indicates the type of the push notification for a message. `DEFAULT`: Normal mobile push notification. `VOIP`: VOIP mobile push notification.
         */
        public var type: aws.sdk.kotlin.services.chimesdkmessaging.model.PushNotificationType? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.chimesdkmessaging.model.PushNotificationConfiguration) : this() {
            this.body = x.body
            this.title = x.title
            this.type = x.type
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.chimesdkmessaging.model.PushNotificationConfiguration = PushNotificationConfiguration(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy