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