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

commonMain.aws.sdk.kotlin.services.rolesanywhere.model.NotificationSettingKey.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.rolesanywhere.model



/**
 * A notification setting key to reset. A notification setting key includes the event and the channel.
 */
public class NotificationSettingKey private constructor(builder: Builder) {
    /**
     * The specified channel of notification.
     */
    public val channel: aws.sdk.kotlin.services.rolesanywhere.model.NotificationChannel? = builder.channel
    /**
     * The notification setting event to reset.
     */
    public val event: aws.sdk.kotlin.services.rolesanywhere.model.NotificationEvent? = builder.event

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

    override fun toString(): kotlin.String = buildString {
        append("NotificationSettingKey(")
        append("channel=$channel,")
        append("event=$event")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = channel?.hashCode() ?: 0
        result = 31 * result + (event?.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 NotificationSettingKey

        if (channel != other.channel) return false
        if (event != other.event) return false

        return true
    }

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

    public class Builder {
        /**
         * The specified channel of notification.
         */
        public var channel: aws.sdk.kotlin.services.rolesanywhere.model.NotificationChannel? = null
        /**
         * The notification setting event to reset.
         */
        public var event: aws.sdk.kotlin.services.rolesanywhere.model.NotificationEvent? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.rolesanywhere.model.NotificationSettingKey) : this() {
            this.channel = x.channel
            this.event = x.event
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy