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

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

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

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



public class GetCaseResponse private constructor(builder: Builder) {
    /**
     * A list of detailed field information.
     */
    public val fields: List = requireNotNull(builder.fields) { "A non-null value must be provided for fields" }
    /**
     * The token for the next set of results. This is null if there are no more results to return.
     */
    public val nextToken: kotlin.String? = builder.nextToken
    /**
     * A map of of key-value pairs that represent tags on a resource. Tags are used to organize, track, or control access for this resource.
     */
    public val tags: Map? = builder.tags
    /**
     * A unique identifier of a template.
     */
    public val templateId: kotlin.String = requireNotNull(builder.templateId) { "A non-null value must be provided for templateId" }

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

    override fun toString(): kotlin.String = buildString {
        append("GetCaseResponse(")
        append("fields=$fields,")
        append("nextToken=$nextToken,")
        append("tags=$tags,")
        append("templateId=$templateId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = fields.hashCode()
        result = 31 * result + (nextToken?.hashCode() ?: 0)
        result = 31 * result + (tags?.hashCode() ?: 0)
        result = 31 * result + (templateId.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 GetCaseResponse

        if (fields != other.fields) return false
        if (nextToken != other.nextToken) return false
        if (tags != other.tags) return false
        if (templateId != other.templateId) return false

        return true
    }

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

    public class Builder {
        /**
         * A list of detailed field information.
         */
        public var fields: List? = null
        /**
         * The token for the next set of results. This is null if there are no more results to return.
         */
        public var nextToken: kotlin.String? = null
        /**
         * A map of of key-value pairs that represent tags on a resource. Tags are used to organize, track, or control access for this resource.
         */
        public var tags: Map? = null
        /**
         * A unique identifier of a template.
         */
        public var templateId: kotlin.String? = null

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy