
commonMain.aws.sdk.kotlin.services.bedrockdataautomationruntime.model.EventBridgeConfiguration.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
/**
* Event bridge configuration.
*/
public class EventBridgeConfiguration private constructor(builder: Builder) {
/**
* Event bridge flag.
*/
public val eventBridgeEnabled: kotlin.Boolean = requireNotNull(builder.eventBridgeEnabled) { "A non-null value must be provided for eventBridgeEnabled" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.bedrockdataautomationruntime.model.EventBridgeConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("EventBridgeConfiguration(")
append("eventBridgeEnabled=$eventBridgeEnabled")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = eventBridgeEnabled.hashCode()
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 EventBridgeConfiguration
if (eventBridgeEnabled != other.eventBridgeEnabled) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.bedrockdataautomationruntime.model.EventBridgeConfiguration = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Event bridge flag.
*/
public var eventBridgeEnabled: kotlin.Boolean? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.bedrockdataautomationruntime.model.EventBridgeConfiguration) : this() {
this.eventBridgeEnabled = x.eventBridgeEnabled
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.bedrockdataautomationruntime.model.EventBridgeConfiguration = EventBridgeConfiguration(this)
internal fun correctErrors(): Builder {
if (eventBridgeEnabled == null) eventBridgeEnabled = false
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy