
commonMain.aws.sdk.kotlin.services.connectcases.model.SearchCasesResponseItem.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.connectcases.model
/**
* A list of items that represent cases.
*/
public class SearchCasesResponseItem private constructor(builder: Builder) {
/**
* A unique identifier of the case.
*/
public val caseId: kotlin.String = requireNotNull(builder.caseId) { "A non-null value must be provided for caseId" }
/**
* List of case field values.
*/
public val fields: List = requireNotNull(builder.fields) { "A non-null value must be provided for fields" }
/**
* 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.SearchCasesResponseItem = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SearchCasesResponseItem(")
append("caseId=$caseId,")
append("fields=$fields,")
append("tags=$tags,")
append("templateId=$templateId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = caseId.hashCode()
result = 31 * result + (fields.hashCode())
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 SearchCasesResponseItem
if (caseId != other.caseId) return false
if (fields != other.fields) 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.SearchCasesResponseItem = Builder(this).apply(block).build()
public class Builder {
/**
* A unique identifier of the case.
*/
public var caseId: kotlin.String? = null
/**
* List of case field values.
*/
public var fields: List? = 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.SearchCasesResponseItem) : this() {
this.caseId = x.caseId
this.fields = x.fields
this.tags = x.tags
this.templateId = x.templateId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.connectcases.model.SearchCasesResponseItem = SearchCasesResponseItem(this)
internal fun correctErrors(): Builder {
if (caseId == null) caseId = ""
if (fields == null) fields = emptyList()
if (templateId == null) templateId = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy