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

commonMain.aws.sdk.kotlin.services.chimesdkmeetings.model.NotificationsConfiguration.kt Maven / Gradle / Ivy

There is a newer version: 1.3.35
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.chimesdkmeetings.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * The configuration for resource targets to receive notifications when meeting and attendee events occur.
 */
public class NotificationsConfiguration private constructor(builder: Builder) {
    /**
     * The ARN of the Amazon Web Services Lambda function in the notifications configuration.
     */
    public val lambdaFunctionArn: kotlin.String? = builder.lambdaFunctionArn
    /**
     * The ARN of the SNS topic.
     */
    public val snsTopicArn: kotlin.String? = builder.snsTopicArn
    /**
     * The ARN of the SQS queue.
     */
    public val sqsQueueArn: kotlin.String? = builder.sqsQueueArn

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

    override fun toString(): kotlin.String = buildString {
        append("NotificationsConfiguration(")
        append("lambdaFunctionArn=*** Sensitive Data Redacted ***,")
        append("snsTopicArn=*** Sensitive Data Redacted ***,")
        append("sqsQueueArn=*** Sensitive Data Redacted ***")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = lambdaFunctionArn?.hashCode() ?: 0
        result = 31 * result + (snsTopicArn?.hashCode() ?: 0)
        result = 31 * result + (sqsQueueArn?.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 NotificationsConfiguration

        if (lambdaFunctionArn != other.lambdaFunctionArn) return false
        if (snsTopicArn != other.snsTopicArn) return false
        if (sqsQueueArn != other.sqsQueueArn) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The ARN of the Amazon Web Services Lambda function in the notifications configuration.
         */
        public var lambdaFunctionArn: kotlin.String? = null
        /**
         * The ARN of the SNS topic.
         */
        public var snsTopicArn: kotlin.String? = null
        /**
         * The ARN of the SQS queue.
         */
        public var sqsQueueArn: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.chimesdkmeetings.model.NotificationsConfiguration) : this() {
            this.lambdaFunctionArn = x.lambdaFunctionArn
            this.snsTopicArn = x.snsTopicArn
            this.sqsQueueArn = x.sqsQueueArn
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy