
commonMain.aws.sdk.kotlin.services.connectcases.model.PutCaseEventConfigurationRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.connectcases.model
public class PutCaseEventConfigurationRequest private constructor(builder: Builder) {
/**
* The unique identifier of the Cases domain.
*/
public val domainId: kotlin.String = requireNotNull(builder.domainId) { "A non-null value must be provided for domainId" }
/**
* 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.PutCaseEventConfigurationRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PutCaseEventConfigurationRequest(")
append("domainId=$domainId,")
append("eventBridge=$eventBridge")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = domainId.hashCode()
result = 31 * 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 PutCaseEventConfigurationRequest
if (domainId != other.domainId) return false
if (eventBridge != other.eventBridge) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.connectcases.model.PutCaseEventConfigurationRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The unique identifier of the Cases domain.
*/
public var domainId: kotlin.String? = null
/**
* 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.PutCaseEventConfigurationRequest) : this() {
this.domainId = x.domainId
this.eventBridge = x.eventBridge
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.connectcases.model.PutCaseEventConfigurationRequest = PutCaseEventConfigurationRequest(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 {
if (domainId == null) domainId = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy