
commonMain.aws.sdk.kotlin.services.connectcases.model.EventBridgeConfiguration.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.connectcases.model
/**
* Configuration to enable EventBridge case event delivery and determine what data is delivered.
*/
public class EventBridgeConfiguration private constructor(builder: Builder) {
/**
* Indicates whether the to broadcast case event data to the customer.
*/
public val enabled: kotlin.Boolean = requireNotNull(builder.enabled) { "A non-null value must be provided for enabled" }
/**
* Details of what case and related item data is published through the case event stream.
*/
public val includedData: aws.sdk.kotlin.services.connectcases.model.EventIncludedData? = builder.includedData
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.connectcases.model.EventBridgeConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("EventBridgeConfiguration(")
append("enabled=$enabled,")
append("includedData=$includedData")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = enabled.hashCode()
result = 31 * result + (includedData?.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 EventBridgeConfiguration
if (enabled != other.enabled) return false
if (includedData != other.includedData) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.connectcases.model.EventBridgeConfiguration = Builder(this).apply(block).build()
public class Builder {
/**
* Indicates whether the to broadcast case event data to the customer.
*/
public var enabled: kotlin.Boolean? = null
/**
* Details of what case and related item data is published through the case event stream.
*/
public var includedData: aws.sdk.kotlin.services.connectcases.model.EventIncludedData? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.connectcases.model.EventBridgeConfiguration) : this() {
this.enabled = x.enabled
this.includedData = x.includedData
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.connectcases.model.EventBridgeConfiguration = EventBridgeConfiguration(this)
/**
* construct an [aws.sdk.kotlin.services.connectcases.model.EventIncludedData] inside the given [block]
*/
public fun includedData(block: aws.sdk.kotlin.services.connectcases.model.EventIncludedData.Builder.() -> kotlin.Unit) {
this.includedData = aws.sdk.kotlin.services.connectcases.model.EventIncludedData.invoke(block)
}
internal fun correctErrors(): Builder {
if (enabled == null) enabled = false
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy