All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.connectcases.model.CaseEventIncludedData.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.connectcases.model



/**
 * Details of what case data is published through the case event stream.
 */
public class CaseEventIncludedData private constructor(builder: Builder) {
    /**
     * List of field identifiers.
     */
    public val fields: List = requireNotNull(builder.fields) { "A non-null value must be provided for fields" }

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.connectcases.model.CaseEventIncludedData = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("CaseEventIncludedData(")
        append("fields=$fields")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = fields.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 CaseEventIncludedData

        if (fields != other.fields) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.connectcases.model.CaseEventIncludedData = Builder(this).apply(block).build()

    public class Builder {
        /**
         * List of field identifiers.
         */
        public var fields: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.connectcases.model.CaseEventIncludedData) : this() {
            this.fields = x.fields
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.connectcases.model.CaseEventIncludedData = CaseEventIncludedData(this)

        internal fun correctErrors(): Builder {
            if (fields == null) fields = emptyList()
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy