
commonMain.aws.sdk.kotlin.services.connectcases.model.GetCaseEventConfigurationResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.connectcases.model
public class GetCaseEventConfigurationResponse private constructor(builder: Builder) {
/**
* Configuration to enable EventBridge case event delivery and determine what data is delivered.
*/
public val eventBridge: aws.sdk.kotlin.services.connectcases.model.EventBridgeConfiguration? = builder.eventBridge
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.connectcases.model.GetCaseEventConfigurationResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetCaseEventConfigurationResponse(")
append("eventBridge=$eventBridge")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = eventBridge?.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 GetCaseEventConfigurationResponse
if (eventBridge != other.eventBridge) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.connectcases.model.GetCaseEventConfigurationResponse = Builder(this).apply(block).build()
public class Builder {
/**
* Configuration to enable EventBridge case event delivery and determine what data is delivered.
*/
public var eventBridge: aws.sdk.kotlin.services.connectcases.model.EventBridgeConfiguration? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.connectcases.model.GetCaseEventConfigurationResponse) : this() {
this.eventBridge = x.eventBridge
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.connectcases.model.GetCaseEventConfigurationResponse = GetCaseEventConfigurationResponse(this)
/**
* construct an [aws.sdk.kotlin.services.connectcases.model.EventBridgeConfiguration] inside the given [block]
*/
public fun eventBridge(block: aws.sdk.kotlin.services.connectcases.model.EventBridgeConfiguration.Builder.() -> kotlin.Unit) {
this.eventBridge = aws.sdk.kotlin.services.connectcases.model.EventBridgeConfiguration.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy