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

commonMain.aws.sdk.kotlin.services.bedrockdataautomationruntime.model.NotificationConfiguration.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.bedrockdataautomationruntime.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Notification configuration.
 */
public class NotificationConfiguration private constructor(builder: Builder) {
    /**
     * Event bridge configuration.
     */
    public val eventBridgeConfiguration: aws.sdk.kotlin.services.bedrockdataautomationruntime.model.EventBridgeConfiguration? = builder.eventBridgeConfiguration

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

    override fun toString(): kotlin.String = buildString {
        append("NotificationConfiguration(")
        append("eventBridgeConfiguration=$eventBridgeConfiguration")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = eventBridgeConfiguration?.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 NotificationConfiguration

        if (eventBridgeConfiguration != other.eventBridgeConfiguration) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Event bridge configuration.
         */
        public var eventBridgeConfiguration: aws.sdk.kotlin.services.bedrockdataautomationruntime.model.EventBridgeConfiguration? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.bedrockdataautomationruntime.model.NotificationConfiguration) : this() {
            this.eventBridgeConfiguration = x.eventBridgeConfiguration
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.bedrockdataautomationruntime.model.EventBridgeConfiguration] inside the given [block]
         */
        public fun eventBridgeConfiguration(block: aws.sdk.kotlin.services.bedrockdataautomationruntime.model.EventBridgeConfiguration.Builder.() -> kotlin.Unit) {
            this.eventBridgeConfiguration = aws.sdk.kotlin.services.bedrockdataautomationruntime.model.EventBridgeConfiguration.invoke(block)
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy